Hi everybody,
I've been trying to get a plugin written that would allow using Northwestern's Origami tiled image viewer with omeka. I've been borrowing heavily from existing plugins to get a general feel for what needs to be done. But I've got a few questions.
But first, a few disorganized thoughts on how I imagine this could work. I've created an Origami Image item type in omeka admin. Origami expects to be given a directory containing the image tiles. So what I would like to do is just store that directory name in the database instead of a file name. Then, when an item of "Origami Image" type is requested the thumbnail would link to a Origami viewer page, possibly with the image directory passed as and GET query or something. As for getting the images up there, I'd like to be able to have the user upload a jpg, and run the tiler on the server.
For launching Origami's tiler, I was looking at the after_file_upload hook. When exactly is that fired? Can I assume that when that hook is fired, the file has been uploaded successfully, but not inserted into the database yet?
In the pdfmenot and ipaper plugins, they define a filetype array. Is that used to compare to the file extension? Or does it look at file's mime type or something. If it looks at the file extension, I was thinking I could just give the image tile directory an extension of .origami or something like that.
I thought I had a couple more things I was stuck on (I should remember to write this stuff down as I think of it.) but that's all the questions I can think of now.