Add search button to Universal Viewer?

Hi all, bothering you again with, I hope, one last question. I’d like to add a button to search text within my PDF documents, but after a few days looking around the web and trying to figure this out on my own (and with the help of our Lab fellows) I am still unable to do so.

In short: this is what I have

And this is what I’d like to have

I’ve looked at a number of Omeka sites and it seems like many of them have different configurations, but I can’t seem to figure out where I need to be making these changes. I was able to hide the footer by editing the config.json file that I uploaded in my theme’s assets’ folder, but I can’t seem to be able to do anything else from there. What I really need is the search button, but it wouldn’t hurt to figure out how to make other changes as well. I tried to look for documentation and reverse-engineer those other websites but have been unable to find anything helpful – their config file seems similar to mine. The only thing I can think of, is that the IIIF server plugin somehow processes the file differently? Any heads up? This is the last thing holding me up before I can finally launch the site (I decided to wait to deal with theming for now).

Bonus question: What do the Force base of url (from) and (to) settings in the IIIF Server Module do, exactly?

Many thanks, again.

  • Stefano

To use search inside Universal Viewer, see the module IiifSearch.
The force from/to allows to manage complex configuration, where the server is behind a proxy or a network tool. It allows to have only https url only too, that are required in many cases (mix https with http doesn’t work in all cases).

Hi Daniel! Many thanks for your suggestion and your clarification.

I tried to follow the installation instructions for IiifSearch, but I was unable to get it to work. The instructions seem to require that I add the following url: http://yourdomain/omeka-s/iiif-search/ to the “IIIF Search Url” field in the IIIF Server’s settings, however, I can’t find such thing in my settings. Any heads up?

1 Like

(I must also add that all my PDF are already OCR’d and contain text, not sure if that makes any difference, but thought I’d say it just in case)

1 Like

Yes, this module requires another module, ExtractOcr, so it allows to copy the text of your ocrized pdf inside a property, so it is available for search by Omeka and the iiif server.

Ok, good to know. I was able to install both. Just trying to figure out where that “IIIF Search URL” it’s supposed to go now, since it’s nowhere to be found. Maybe it’s not compatible with the latest version of the IIIF Server plugin?

I tried to open a ticket on the IIIF Search GitHub page

All I’m really trying to do at this time is to have searchable PDFs on my site. I don’t NEED to use the Universal Viewer. Would I be able to achieve that by using your PDFViewer module instead? Would I be able to get something like this?

If so, I can ask the server admins if they can install pdf.js and use that until I can figure out the UniversalViewer conundrum.

The search is not a feature I use currently, so I can’t answer you more. Wait for an answer on github.
The Pdf Viewer module is an integration of the mozilla pdf.js inside a module. Else, you can use the default module too (PdfEmbed).

I can’t find the module IiifSearch on Github any more. The user bubdxm is not registered there any longer?! Where/How can I get this module?

Would be great to have a solution to integrate full text within the UniversialViewer.

Yes, the bubdxm account (library of the Université de Bordeaux) was just removed. I’m contacting the admin to get some modules I don’t have.

Daniel is right, I have been doing some cleaning on our (bubdxm) github account as part of our move from omeka classic to omeka-s. I will republish all what is needed in the next few weeks, sorry for the inconvenience.


Thank you for the fast response! Would be great to have this feature back for omeka-s and UniversialViewser soon.


I’m trying to add the search capability to universal viewer. I’d like to use the iiifSearch module and extractOCR module (I work with searchable pdf). Do you know when this module will become available ?

Thanks a lot for all this work on omeka-s :smiley:


Hi symac! I’m really interested in testing your module Iiif-search ¿When will it be available? Thank you so much!

1 Like

It’s been a long time but I have put back online the two modules on github :

I am still figuring out if everything works fine with the latest version of omeka-S but it should be usable.

Thanks for your update!

Thank you! I will test asap.