Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-2124

Replicate IAV solr altering in PDF.js viewer

    Details

      Description

      Currently, when the PDF.js viewer is set for book objects, the Solr result urls don't pass the page number or search term to the viewer.

      PR: https://github.com/Islandora/islandora_pdfjs/pull/31

      --Use Case--
      Replicate IAV Solr search result behaviour in the PDF.js viewer.

      --Technical Approach--
      Adds "page" and "search" params to Solr result url and passes said params to the PDF.js viewer. The viewer will highlight the search term in the document and will take the user to the page that corresponds to the Solr result.

      --Test Case--
      Update the PDF.js library to the latest code.
      Clear browser cache
      Ensure book objects have a PDF datastream
      Set book viewer to PDF.js
      Search for the term that exists in book object PDF
      When navigating to the book from the search result, the search term should be highlighted in the PDF.
      When navigating to the page from the search result. the search term should be highlighted in the PDF AND and the viewer should be opened to the page that corresponds to the Solr result.


      Nelson Hart
      Developer
      DGI

        Attachments

          Activity

            People

            • Assignee:
              nhart Nelson Hart
              Reporter:
              nhart Nelson Hart
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: