Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moving labs API iiif catalog to prod service #67

Merged
merged 6 commits into from
Sep 29, 2024

Conversation

mekarpeles
Copy link
Member

This PR has been hacked together as a proof of concept and not tested but should be useful in closing:

iiify/resolver.py Outdated Show resolved Hide resolved
@glenrobson
Copy link
Collaborator

The two times we use the getids method is:

@app.route('/iiif/')
def index():
    """Lists all available book and image items on Archive.org"""
    cursor = request.args.get('cursor', '')
    q = request.args.get('q', '')
    return jsonify(getids(q, cursor=cursor))

@app.route('/iiif/collection.json')
def catalog():
    cursor = request.args.get('cursor', '')
    q = request.args.get('q', '')
    domain = purify_domain(request.args.get('domain', request.url_root))
    return ldjsonify(collection(domain, getids(q, limit, cursor)['ids']))

@glenrobson
Copy link
Collaborator

@glenrobson
Copy link
Collaborator

@glenrobson
Copy link
Collaborator

Need to point this to the spring-2024 branch and get the fix deployed for testing.

@mekarpeles
Copy link
Member Author

https://iiif.archive.org/iiif/ and https://iiif.archivelab.org/iiif/ both work for me, this may have been an ephemeral issue.

https://iiif.archivelab.org/iiif/collection.json definitely seems broken and needs investigation

@mekarpeles mekarpeles merged commit fa018e3 into main Sep 29, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants