From ad0d08ef33085667b47e6ac945ea39d2d5fba818 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Wed, 23 Apr 2008 16:00:46 -0500 Subject: [PATCH] Improvements to the results display in the OPAC, merging style between the XSL and non-XSL stuff. Refining style of tags display, adding back links to place hold, add to list, and add to cart on results page --- C4/Auth.pm | 2 + admin/systempreferences.pl | 1 + koha-tmpl/opac-tmpl/prog/en/css/opac.css | 26 ++- .../prog/en/modules/opac-detail.tmpl | 4 +- .../prog/en/modules/opac-results.tmpl | 181 ++++++++---------- .../prog/en/xslt/MARC21slim2OPACResults.xsl | 38 ++-- 6 files changed, 120 insertions(+), 132 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index cfe9e80c0e..cc29d8a6cb 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -259,6 +259,7 @@ sub get_template_and_user { noItemTypeImages => C4::Context->preference("noItemTypeImages"), singleBranchMode => C4::Context->preference("singleBranchMode"), TagsEnabled => C4::Context->preference("TagsEnabled"), + GoogleJackets => C4::Context->preference("GoogleJackets"), ); } else { @@ -318,6 +319,7 @@ sub get_template_and_user { XSLTResultsDisplay => C4::Context->preference("XSLTResultsDisplay"), XSLTDetailsDisplay => C4::Context->preference("XSLTDetailsDisplay"), TagsEnabled => C4::Context->preference("TagsEnabled"), + GoogleJackets => C4::Context->preference("GoogleJackets"), ); } $template->param(listloop=>[{shelfname=>"Freelist", shelfnumber=>110}]); diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index 5b7793d4c6..76a08d27e2 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -227,6 +227,7 @@ my %tabsysprefs; $tabsysprefs{TagsShowOnDetail} = 'EnhancedContent'; $tabsysprefs{TagsShowOnList} = 'EnhancedContent'; $tabsysprefs{TagsModeration} = 'EnhancedContent'; + $tabsysprefs{GoogleJackets} = 'EnhancedContent'; # OPAC $tabsysprefs{BiblioDefaultView}="OPAC"; diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index 297af59dcf..8cc8a5a7fd 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -359,8 +359,7 @@ p.availability { /* style for search terms in catalogsearch */ .term { - background-color : #ffffe0; - color : #990033; + color : blue; } a .term { @@ -1024,13 +1023,18 @@ width: 100%; * html .clearfix {height: 1%;} /* End hide from IE-mac */ -.searchhighlightblob { - font-size : 85%; -} .results_summary { + display: block; + font-size : 85%; + color: #707070; + padding : 0 0 .5em 0; +} - font-size: 95%; - color: grey; +.results_summary .label { + color: #202020; +} +.results_summary a { + font-weight: normal; } .dialog { border: 1px solid #bcbcbc; @@ -1100,6 +1104,14 @@ div.message { border-color : #b8d0e6; } +.selectcol { + vertical-align: top; + width: 10px; +} +.itypecol { + vertical-align: top; + width: 10px; +} #container { color : #000; } diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl index e76f905100..78c2c6a4c7 100755 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -488,8 +488,8 @@ -
Tags: +
Tags:
  • &q="> ()
  • @@ -505,9 +505,9 @@ " class="tagstatus" style="display:none;"> Tag status here. -
+
"> diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl index 168e20eaea..f823640222 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl @@ -171,57 +171,37 @@ $(document).ready(function(){ - - " name="biblionumber" value="" title="Click to add to cart" /> - . + + " name="biblionumber" value="" title="Click to add to cart" /> + . + + + + " title="" alt="" /> + + + + + + - - "> - .01.TZZZZZZZ.jpg" alt="" class="thumbnail" /> -
" id="" class="gbs-thumbnail">
- - -

Match:

- - - - ">.01.TZZZZZZZ.jpg" alt="" class="thumbnail" /> - - - - - " title="" /> - - - "> - See Baker & Taylor" /> - - - (No clean ISBN.) - - - " title="" /> - - - - - - - . " title="View details for this title"> " title="View details for this title"> " title="View details for this title"> by " title="Search for works by this author">  -

- - - - - , - , - (modified on ) -

- -

-

- - Copies available: - + + " title="View details for this title"> " title="View details for this title"> " title="View details for this title"> by " title="Search for works by this author">  + Publication: + + + - + , + , + (modified on ) + + Date: + + + Availability: + + Copies available: + @@ -229,64 +209,67 @@ $(document).ready(function(){ - + [">] - (), - - - - No items available: - - - On loan (), - Withdrawn (), - Lost (), - Damaged (), - On order (), - -

+ (), + + + + No items available: + + + On loan (), + Withdrawn (), + Lost (), + Damaged (), + On order (), + + -

">Place Hold - - " name="biblionumber" value="" title="Click to add to cart" /> - - - - "> -

+ Actions: + ">Place Hold - - + " onclick="Dopop('opac-addbybiblionumber.pl?biblionumber='); return false;">Save to Lists + + '); return false;">Add to Cart + + + + Call Number: + - -
- - Tags: - - - -
" method="post" action="/cgi-bin/koha/opac-tags.pl"> - - " id="newtag" maxlength="100" /> - -
-
- " class="tagstatus" style="display:none;"> - Tag status here. + + + + Tags: + + + +
" method="post" action="/cgi-bin/koha/opac-tags.pl"> + + " id="newtag" maxlength="100" /> + +
+ " class="tagstatus" style="display:none;"> + Tag status here. + +
- -
- - + + Match: + + "> + .01.TZZZZZZZ.jpg" alt="" class="thumbnail" /> +
" id="" class="gbs-thumbnail">
+
+ ">See Baker & Taylor" /> + diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl index d8ba11b59e..6b49e7900c 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl @@ -372,16 +372,7 @@ --> - - - - ab - - .; - - - - /cgi-bin/koha/opac-detail.pl?biblionumber= + /cgi-bin/koha/opac-detail.pl?biblionumber= @@ -801,26 +792,25 @@ -
+ + Publisher: bcg - + - - ; Library of Congress Classification: - . - - - -
- + + Availability: + + No copies available + + - Copies available at: + Copies available at: @@ -831,7 +821,8 @@ . , - + + On loan ( @@ -863,8 +854,7 @@ ) -
- + -- 2.39.5