Daniel-KM / Omeka-S-module-UniversalViewer

Module for Omeka S that adds the IIIF specifications in order to act like an IIPImage server, and the UniversalViewer, a unified online player for any file. It can display books, images, maps, audio, movies, pdf, 3D views, and anything else as long as the appropriate extensions are installed.
Other
7 stars 5 forks source link

Problems to disaplay UV when array_length is greater than 600 #14

Closed m-art-in closed 4 years ago

m-art-in commented 4 years ago

In the documentation is an example how to integrate the Universalviewer into Omeka S theme. Background: I get from a parent item all other items that are set with dcterm:hasPart. This works fine and I call it like in the example:

    // Display multiple resources (items and/or item sets). 
    echo $this->universalViewer($resources);

if the array $resources is greater than 600 uv is not loaded anymore. I suspect that the URL might be too long. Apache gives a warning (File Size to long). So I suspect that a URL call like this

http://MYADRESS.COM/omeka-s/iiif/collection/10757,10787,10790,10793, [n+1]... [n+599] simply cannot work if the number of items is to great.

I suppose apache would accept a URL that would look something like this:

http://MYADRESS.COM/omeka-s/iiif/collection/showItems?10757&10787&10790&10793&[n+1]&[n+599]

instead of comma separated. So maybe it's more an issue of Omeka-S-module-IiifServer?

Daniel-KM commented 4 years ago

Ok, it's interesting. I'm currently integrating iiif api v3, so I'll take care of this.

Daniel-KM commented 4 years ago

Note that this url is not standard in iiif, but it's useful to create random manifest (dynamic collection).

Daniel-KM commented 4 years ago

In fact, an url like /iiif/set?10757&10787&… or the more url friendly /iiif/set?id[]=10757&id[]=10787&… will be preferable to avoid to mix iiif and this hack.