changeset 1130:f523a1c8edaa

make frontend page for digilibUrl action configurable.
author robcast
date Mon, 12 Nov 2012 13:04:58 +0100
parents 9e85efcfbb0c
children c1e7821d3c68
files webapp/src/main/webapp/jquery/jquery.digilib.js
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.js	Fri Nov 09 20:10:51 2012 +0100
+++ b/webapp/src/main/webapp/jquery/jquery.digilib.js	Mon Nov 12 13:04:58 2012 +0100
@@ -45,6 +45,8 @@
         'homeUrl' : 'http://digilib.berlios.de',
         // base URL to digilib (e.g. 'http://digilib.mpiwg-berlin.mpg.de/digitallibrary')
         'digilibBaseUrl' : null,
+        // path to digilib frontend page (inside digilibBaseUrl)
+        'digilibFrontendPath' : '/jquery/digilib.html',
         // base URL to Scaler servlet (usually digilibBaseUrl+'/servlet/Scaler')
         'scalerBaseUrl' : null,
         // prefix of digilib classes in CSS styles
@@ -521,7 +523,7 @@
          * @param mode
          */
         digilibUrl : function (data, mode) {
-            var url = getDigilibUrl(data, '/jquery/digilib.html');
+            var url = getDigilibUrl(data, data.settings.digilibFrontendPath);
             if (mode === 'open') {
                 // redirect
                 window.location = url;