Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions iiify/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ def create_collection3(identifier, domain, page=1, rows=MAX_API_LIMIT):
# Get item metadata
metadata = requests.get('%s/metadata/%s' % (ARCHIVE, identifier)).json()

# Used to build up URIs for the manifest
uri = f"{domain}{identifier}/collection.json"
# Write Collection uri with conditional page segment
uri = f"{domain}{identifier}{f'/{page}' if page != 1 else ''}/collection.json"

config.configs['helpers.auto_fields.AutoLang'].auto_lang = "none"
collection = Collection(id=uri, label=metadata["metadata"]["title"])
Expand Down