pulibrary / ib

Image Browser -- Browse A filesystem containing JPEG 2000 images.
2 stars 0 forks source link

Add Content Negotiation #21

Open sdellis opened 9 years ago

sdellis commented 9 years ago

I am tinkering with IIIF image "discovery" for my manifest editor and was wondering if we can add content negotiation to the ib app to easily find/add images from the image server.

When ib gets a json request via accept header... HEADER Accept: application/json Serve up a directory as a Presentation API "Collection Document". Each image gets wrapped as an individual manifest, or all loose images get wrapped in one manifest. Directories are wrapped in as collections. Additional collection information can be stored in the SQLite db.

Thoughts @jpstroop ???

jpstroop commented 9 years ago

I think any directory with images should be a manifest, and all others should be collections, no? But finding a way to do this from the pudl would be better, I think, because images in are sometimes duplicated or left out, or out of order, or whatever. Plus you could add ranges for all of the structural metadata.

-Js

Sent via mobile. Please excuse typos, brevity, etc. On Apr 10, 2015 10:15 PM, "Shaun Ellis" notifications@github.com wrote:

I am tinkering with "discovery" and was wondering if we can add content negotiation to the ib app.

When ib gets a json request via accept header... HEADER Accept: application/json Serve up a directory as a Presentation API "Collection Document". Each image gets wrapped as an individual manifest, or all loose images get wrapped in one manifest. Directories are wrapped in as collections. Additional collection information can be stored in the SQLite db.

Thoughts @jpstroop https://github.com/jpstroop ???

— Reply to this email directly or view it on GitHub https://github.com/pulibrary/ib/issues/21.

sdellis commented 9 years ago

Hmm... I don't think I was clear enough. I am just looking for a way to browse the image server and select images for inclusion when creating a manifest. Some images(like for exhibitions) are not in the pudl, which is why I thought the ib might be best. Anyway, let's discuss when you get back... perhaps I can mock up a demo of what I'm thinking.