From fdbdd5f937fa69ad65de507a9e4981f76cf39918 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 17 Mar 2008 15:07:36 -0500 Subject: [PATCH] Working on styling browse features, similar items. Signed-off-by: Joshua Ferraro --- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 57 +++++- .../jquery/plugins/jquery.tablesorter.min.js | 2 + .../prog/en/modules/opac-detail.tmpl | 180 ++++++++---------- 3 files changed, 131 insertions(+), 108 deletions(-) create mode 100644 koha-tmpl/opac-tmpl/prog/en/lib/jquery/plugins/jquery.tablesorter.min.js diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index 56638a1520..4e12f626a5 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -1231,7 +1231,7 @@ div#menu li.active a:hover { } -#export,#further { +#export,#further,#similars { margin-top : .5em; background-color : #F3F3F3; border : 1px solid #E8E8E8; @@ -1258,27 +1258,57 @@ div#menu li.active a:hover { } #similars { - text-align : left; + background-color : #FFF; + text-align : center; font-size : 95%; - padding : 3px 3px .5em 1em; + padding : 0 3px 3px 3px; +} + +#similars ul { + margin : 0; + padding : 0; +} + +#similars li { + list-style : none; + margin : 0; + padding : 0; +} + +#similars li a { + display : block; } +#amazonreviews h4 { + font-size : 90%; + margin : 0; + padding : 0; +} +#amazonreviews h3 { + font-size : 100%; + margin : 0; + padding : 0; +} span.starFull { - background: url(../../images/bluestars.png) top left no-repeat; - height: 25px; + background: url(../../images/star-ratings.gif) top left no-repeat; + display : block; + height: 10px; margin: 0; padding: 0; } span.starMT { - background: url(../../images/emptystars.png) top left no-repeat; - height: 25px; - margin: 0 3px 0 30px; + background: url(../../images/star-ratings-empty.gif) top left no-repeat; + display : block; + height: 10px; + margin: 0 10px 0 10px; padding: 0; position: relative; - width: 100px; + width: 50px; } + + #cartmenulink, #listsmenulink { display : block; position : relative; @@ -1505,3 +1535,12 @@ a#MARCview, a#ISBDview, a#Normalview { background-color : #F3F3F3; border-left : 1px solid #E8E8E8; } + +#shelfbrowser dl {text-align:center;font-size:.85em;margin-top:0;float:left;} +#shelfbrowser dt,dd {width:10.5em;float:left;} +#shelfbrowser dt {margin-bottom:3.5em;} +#shelfbrowser dd {margin:90px 0 0 -10.5em;} +#shelfbrowser dl img {vertical-align:bottom;padding:2px;background:#fff;margin-top:0;} +#shelfbrowser em {display:block;font-weight:bold;margin-bottom:5px;font-style:normal;} +#shelfbrowser dl div {float:left;} +#shelfbrowser img {margin-top:3.5em;} \ No newline at end of file diff --git a/koha-tmpl/opac-tmpl/prog/en/lib/jquery/plugins/jquery.tablesorter.min.js b/koha-tmpl/opac-tmpl/prog/en/lib/jquery/plugins/jquery.tablesorter.min.js new file mode 100644 index 0000000000..af74fe33ac --- /dev/null +++ b/koha-tmpl/opac-tmpl/prog/en/lib/jquery/plugins/jquery.tablesorter.min.js @@ -0,0 +1,2 @@ + +(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:'.',debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms");}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s);}else{alert(s);}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug="";}var rows=table.tBodies[0].rows;if(table.tBodies[0].rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i1){arr=arr.concat(checkCellColSpan(table,headerArr,row++));}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell);}}}return arr;};function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true;};return false;}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true;};return false;}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i');$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($('').css('width',$(this).width()));});$(table).prepend(colgroup);};}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;ib)?1:0));};function sortTextDesc(a,b){return((ba)?1:0));};function sortNumeric(a,b){return a-b;};function sortNumericDesc(a,b){return b-a;};function getCachedSortType(parsers,i){return parsers[i].type;};this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies)return;var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){$this.trigger("sortStart");var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){var $cell=$(this);var i=this.column;this.order=this.count++%2;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j0){$this.trigger("sorton",[config.sortList]);}applyWidget(this);});};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i - @@ -149,75 +138,6 @@ - - -
- - - - - -
-
- - " /> -
- - -
-

Similar Items

-
    - - -
  • img.01._SS50_.jpg" /> ">
  • - - -
-
- - -
- - - + +
+ + + + +
+

Similar Items

+ +
+ + + + +
+
+ + " /> +
+
+ +
-- 2.39.5