Skip to content

Commit

Permalink
Remove references to Mirador
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed Nov 21, 2023
1 parent 93bef5e commit 7795a57
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion apps/readux/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def test_page_detail_context(self):
assert isinstance(data['page'], Canvas)
assert isinstance(data['user_annotation_page_count'], int)
assert isinstance(data['user_annotation_count'], int)
assert data['mirador_url'] == settings.MIRADOR_URL

def test_page_detail_context_with_no_page_in_kwargs(self):
factory = RequestFactory()
Expand Down
3 changes: 1 addition & 2 deletions apps/readux/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ def get_context_data(self, **kwargs):
).filter(
canvas__manifest__id=manifest.id
).count()
context['mirador_url'] = settings.MIRADOR_URL

user_annotation_index = UserAnnotation.objects.all()

Expand Down Expand Up @@ -417,7 +416,7 @@ def get_queryset(self):
"multi_match", query=search_query, fields=self.query_search_fields
)
queries.append(multimatch_query)

if scope in ["all", "text"]:
# query for nested fields (i.e. canvas position and text)
nested_query = Q(
Expand Down

0 comments on commit 7795a57

Please sign in to comment.