Uploaded image for project: 'VuFind'
  1. VuFind
  2. VUFIND-318

Add more configurable settings to Book Previews

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.4
    • Component/s: Record, Search
    • Labels:
      None
    • Environment:
      All

      Description

      Some additional configurable options include:
      - Allow libraries in the United States to include the "pdus" (public domain united states) rights code for the Hathi Trust. It is currently limited to "world" and "pd"
      - Allow configuration of Limited View only or Full View only or Both for Open Library and Google Book Search

      These things are easy to do in the JS functions, but the difficulty is in passing the options specified in config.ini into scripts.js. Some suggestions from Demian:
      1.) Modify the UInterface class and layout.tpl to make some additional global Javascript assignments (maybe even a JS "configArray" variable containing a handful of relevant settings). Main disadvantage: overhead on every single page for something used in only a few places.

      2.) Create an .htaccess file that allows PHP processing of .js files, and inject the settings directly into scripts.js. Main disadvantage: more PHP processing.

      3.) Add new parameters to the relevant functions; pass in the relevant values. Main disadvantage: more complicated function calls in the templates.

      4.) Add some kind of AJAX handler to obtain the settings. Main disadvantage: extra AJAX calls - this is really overkill.

        Attachments

          Activity

            People

            Assignee:
            demiankatz Demian Katz
            Reporter:
            eoghan.ocarragain Eoghan Ó Carragáin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: