# HG changeset patch # User robcast # Date 1331074402 -3600 # Node ID c75858ee44523a2ae0c546a51a3e16a610794476 # Parent 4ee43243a6a0861e9d2442cd91c4a04b57b3c2c1 more fiddling with regions. use map and area tags (can be changed by regionContentSelector). new autoZoomRegionLinks and fullRegionLinks. diff -r 4ee43243a6a0 -r c75858ee4452 webapp/src/main/webapp/jquery/jquery.digilib.css --- a/webapp/src/main/webapp/jquery/jquery.digilib.css Tue Mar 06 21:32:20 2012 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.css Tue Mar 06 23:53:22 2012 +0100 @@ -67,6 +67,11 @@ filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30); } +div.dl-digilib div.dl-region a:link, +div.dl-digilib div.dl-region a:visited { + color: white; +} + div.dl-digilib div.dl-region:hover { background-color: transparent; border: 2px solid red; @@ -87,7 +92,7 @@ display: inline-block; } -div.dl-digilib div.dl-regioncontent { +div.dl-digilib map.dl-regioncontent { display: none; } diff -r 4ee43243a6a0 -r c75858ee4452 webapp/src/main/webapp/jquery/jquery.digilib.regions.js --- a/webapp/src/main/webapp/jquery/jquery.digilib.regions.js Tue Mar 06 21:32:20 2012 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.regions.js Tue Mar 06 23:53:22 2012 +0100 @@ -5,11 +5,11 @@ If hasRegionInfo=true reads regions from page HTML. Element with regions has to be in digilib element, e.g. -
- MPI fuer Wissenschaftsgeschichte - Bibliotheca Hertziana - -
+ + MPI fuer Wissenschaftsgeschichte + Bibliotheca Hertziana + + */ @@ -54,9 +54,11 @@ // is there region content in the page? 'hasRegionContent' : false, // turn any region into a clickable link to its detail view - 'autoRegionLinks' : false, - // class name for content divs (must additionally be marked with class "keep") - 'regionContentSelector' : 'div.dl-regioncontent', + 'autoZoomRegionLinks' : false, + // use full region as klickable link (instead of only number and text) + 'fullRegionLinks' : false, + // css selector for area elements (should additionally be marked with class "keep") + 'regionContentSelector' : 'map.dl-regioncontent area', // buttonset of this plugin 'regionSet' : ['regions', 'addregion', 'delregion', 'regionhtml', 'lessoptions'], // url param for regions @@ -266,30 +268,39 @@ // add a region to data.$elem var addRegionDiv = function (data, index, attributes) { - var cssPrefix = data.settings.cssPrefix; + var settings = data.settings; + var cssPrefix = settings.cssPrefix; var nr = index + 1; // we count regions from 1 var $regionDiv = $('