Adding local content to Mirador?...

438 views
Skip to first unread message

Jay Gattuso

unread,
Nov 6, 2013, 3:56:52 PM11/6/13
to iiif-d...@googlegroups.com
Hi All,

I *think* I'm just about in the position to try and add my own local content to an instance of Mirador... and I wondered if there was any "how to" docs I'm missing?..

I have:-

Setup a tested working instance of Mirador
Setup a local image server (many thanks to Jon S for his patient tech support!)
Obtained a few different sets of source images to test
Created jp2 images for all the source tifs (for the size and jp2000 scaling loveliness)
Created IIIF manifest.json files for the test sets (I write a very dumb IIIF manifest creator tool in python that crawls a folder and spits out (hopefully valid!) IIIF json per folder - happy to share if there is an interest)

Now I need to join the Mirador instance with my content, but I can't see how that's achieved. I put the manifest files in the /data folder, but not sure what to do next?...

Any tips or pointers? especially if I've missed things!

J

Robert Sanderson

unread,
Nov 6, 2013, 4:00:49 PM11/6/13
to iiif-d...@googlegroups.com

Hi Jay,

I'm happy to help with the manifest.json files, and would love to see the tool you wrote :)

To see the manifests you need to add them to the initialization of Mirador in the index.html file:
Add a new object for each manifest into the data property that gets passed to Mirador.

Minimally:
{
  manifestUri :"data/path/to/manifest.json",
  widgets: []
}

Then see if they appear in the dropdown list in the UI.

HTH!

Rob



--
-- You received this message because you are subscribed to the IIIF-Discuss Google group. To post to this group, send email to iiif-d...@googlegroups.com. To unsubscribe from this group, send email to iiif-discuss...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/iiif-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "IIIF Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iiif-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Jay Gattuso

unread,
Nov 7, 2013, 2:44:00 PM11/7/13
to iiif-d...@googlegroups.com
Hey Rob,

Thanks for the suggestions.

I thought that the key might lie in the index.html file, and have been been poking around with it to no avail.

I can see from the viewing the source of the page that I am running the amended version of index.html as my new item appears in the source, but there are no changes to the "Load Window" drop down menu. In fact, if I make any changes to the list in index.html (i.e. removing currently listed items), I can not see any changes to the drop down menu, so I suspect that I am either doing something wrong, or I need to kick off another process to get the list to update....

I will throw the IIIF maker someplace public once I can test that its making valid IIIF MD... :)

Thanks,

Jay

Jay Gattuso

unread,
Nov 7, 2013, 9:00:29 PM11/7/13
to iiif-d...@googlegroups.com
A little more on this...

I noted that I can in fact remove all of the contents of "data" so it becomes:-

Mirador({
    "id":"viewer",
    "data": []
});

I see no change in the hover over menu "Load Window", with a drop down containing:-

 -
    Walters MS 688
 Shared Canvas
     Pierpoint Morgan MS.804
 Stanford University
    Walters manuscript W.788, Ethiopian scroll with angels and t...
    Walters MS 34
    Walters MS 522

I can verify that this is in fact the code I running in browser by viewing source.

Its worth also noting that in vanilla index.html file, I can see that  there are 17 "manifestUri" references that are not commented out. As I can see only 4 resources in the drop down, I have further questions about how closely the menu and the index.html are coupled....

Thanks All,

Jay

Rob Sanderson

unread,
Nov 7, 2013, 9:38:19 PM11/7/13
to iiif-d...@googlegroups.com, iiif-d...@googlegroups.com

Ahh, an easy fix. The state is saved in local storage. Go to the right most entry on the menu bar, hover and then clear the saved state. It should reload with the new info from index.html

R

Sent from my iPad
--

Jay Gattuso

unread,
Nov 10, 2013, 6:59:22 PM11/10/13
to iiif-d...@googlegroups.com
Excellent, thanks Rob, that works a treat. '

What doesn't work just yet is my IIIF Manifest, its they are not populating into the menu.

Thats not too surprising given the rough IIIF MD maker I wrote, so I will need to some how figure out whats up with my IIIF-writer.

Are there any IIIF conformance / validity tools kicking around? I'm sure I saw one the other day, but I can't find it now.


Robert Sanderson

unread,
Nov 12, 2013, 11:01:27 AM11/12/13
to iiif-d...@googlegroups.com

HI Jay,

I've attached the validator that I wrote a while back.  It uses json-schema to layout what the file should look like.
On my to do list is to make it into an online service like the image validator.

I've also attached a little module that tries to make it easier to build manifests.


Rob




factory.py
manifest-schema.json
validator-simple.py

Jay Gattuso

unread,
Nov 12, 2013, 5:33:13 PM11/12/13
to iiif-d...@googlegroups.com
Superb! Thanks Rob, thats exactly what I was looking for!

I'll have poke around and jump back in if I run into another wall...

Thanks heaps,

J
Reply all
Reply to author
Forward
0 new messages