# HG changeset patch # User hertzhaft # Date 1299486655 -3600 # Node ID 5922c444cd119c3d137f0e737682427325e72b57 # Parent 47a6b93bde43cd5e88bdbe0ad916452d52110e5d fixed region position bug in embedded mode, sigh diff -r 47a6b93bde43 -r 5922c444cd11 client/digitallibrary/jquery/jquery.digilib.css --- a/client/digitallibrary/jquery/jquery.digilib.css Mon Mar 07 00:38:20 2011 +0100 +++ b/client/digitallibrary/jquery/jquery.digilib.css Mon Mar 07 09:30:55 2011 +0100 @@ -66,14 +66,22 @@ opacity: 0.5; } -div.region a { +div.region { + color: white; + font-size: 80%; +} + +div.region a.regionnumber { color: white; text-decoration: none; - font-size: 11px; + font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; - height: 15px; - width: 16px; - margin: 3px; + font-size: 11px; + text-align: center; + padding: 0px 2px; + margin-right: 4px; + border: 1px solid white; + display: inline-block; } div.regioncontent { diff -r 47a6b93bde43 -r 5922c444cd11 client/digitallibrary/jquery/jquery.digilib.js --- a/client/digitallibrary/jquery/jquery.digilib.js Mon Mar 07 00:38:20 2011 +0100 +++ b/client/digitallibrary/jquery/jquery.digilib.js Mon Mar 07 09:30:55 2011 +0100 @@ -1261,7 +1261,7 @@ var mark = marks[i]; if (data.zoomArea.containsPosition(mark)) { var mpos = data.imgTrafo.transform(mark); - console.debug("renderMarks: mpos=",mpos); + console.debug("renderMarks: pos=",mpos); // create mark var html = '
'+(i+1)+'
'; var $mark = $(html); diff -r 47a6b93bde43 -r 5922c444cd11 client/digitallibrary/jquery/jquery.digilib.regions.js --- a/client/digitallibrary/jquery/jquery.digilib.regions.js Mon Mar 07 00:38:20 2011 +0100 +++ b/client/digitallibrary/jquery/jquery.digilib.regions.js Mon Mar 07 09:30:55 2011 +0100 @@ -59,7 +59,7 @@ // buttonset of this plugin 'regionSet' : ['regions', 'addregion', 'delregion', 'regionhtml', 'lessoptions'], // url param for regions - 'rg' : null, + 'rg' : null }; var actions = { @@ -192,45 +192,38 @@ }; // add a region to data.$elem - var addRegionDiv = function (data, index) { + var addRegionDiv = function (data, index, url) { var nr = index + 1; // we count regions from 1 // create a digilib URL for this detail - var regionUrl = getRegionUrl(data, index); + url = url || getRegionUrl(data, index); var $regionDiv = $('