Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
hadro committed Oct 5, 2023
1 parent 6c55382 commit 4d48747
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions iiify/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,18 @@ def documentation():

@app.route('/iiif/helper/<identifier>')
def helper(identifier):
domain = purify_domain(request.args.get('domain', request.url_root))
uri = '%s%s' % (domain, identifier)
# domain = purify_domain(request.args.get('domain', request.url_root))
# uri = '%s%s' % (domain, identifier)
try:
cantaloupe_id = cantaloupe_resolver(identifier)
info_url = f"{image_server}/3/{cantaloupe_id}/info.json"
image_url = f"{image_server}/3/{cantaloupe_id}/full/max/0/default.jpg"
return render_template('helper.html', domain=domain, uri=uri, info_url=info_url, image_url=image_url, identifier=identifier)
return render_template('helper.html',
cantaloupe_id=cantaloupe_id,
# uri=uri,
info_url=info_url,
image_url=image_url,
identifier=identifier)
except ValueError:
abort(404)

Expand Down

0 comments on commit 4d48747

Please sign in to comment.