VuFind

Add more configurable settings to Book Previews

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.1
  • Fix Version/s: Wishlist
  • 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.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: