From e97d149f3146bd8233ed194273837a676f4159df Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 23 May 2012 11:00:17 +0200 Subject: [PATCH 1/2] Bug 5888: opac-detail subject/author links improvements When the user clicks on a subject or an author, the list of subjects (authors) is displayed and the user can choose more than 1 subject (author) to search on. Also added a link to opac-authoritiesdetail.pl when possible. Only affects 'Normal view'. Does not affect XSLT display. --- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 30 ++++ koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 165 ++++++++++++++++++++ 2 files changed, 195 insertions(+) diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index e13c2e2..4344f99 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -2154,6 +2154,36 @@ a.p1:active { div.ft { clear : both; } + +.authorSearch { + position: absolute; + display: none; + z-index: 2; + background-color: white; + border: 1px solid black; + padding: 4px; +} +.authorSearch li { + list-style-type: none; +} +.authorSearch ul { + padding-left: 0px; +} +.subjectSearch { + position: absolute; + display: none; + z-index: 2; + background-color: white; + border: 1px solid black; + padding: 4px; +} +.subjectSearch li { + list-style-type: none; +} +.subjectSearch ul { + padding-left: 0px; +} + #basket td ul li { font-size:90%; list-style:disc outside url(data:image/gif;base64,R0lGODlhBQAHAJECAP///5zD6v///wAAACH5BAEAAAIALAAAAAAFAAcAAAIMjCUGkbvhFGQSmVAAADs=); diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt index f740488..7593323 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -292,6 +292,102 @@ YAHOO.util.Event.onContentReady("furtherm", function () { }); //]]> + + + [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %][% END %][% END %][% END %] @@ -360,10 +456,42 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% IF ( MARCAUTHORS ) %] Additional authors: +
+ Select the item(s) to search : +
    +
  • all
  • +

  • + [% FOREACH MARCAUTHOR IN MARCAUTHORS %] +
  • + [% IF (MARCAUTHOR.authoritylink) %] + + [% ELSE %] + + [% END %] + + [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %] + [% SUBFIELD.value %] + [% END %] +
  • + [% END %] +
+
+ Cancel +  |  + Search +
[% FOREACH MARCAUTHOR IN MARCAUTHORS %] + [% authorsloop = loop %] [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %] [% MARCAUTHOR_SUBFIELDS_LOO.separator %] [% MARCAUTHOR_SUBFIELDS_LOO.value %] [% END %] [% IF (MARCAUTHOR.authoritylink) %] @@ -426,6 +554,43 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% IF ( MARCSUBJCTS ) %] Subject(s): +
+ Select the item(s) to search : +
+ + +
+ [% FOREACH MARCSUBJCT IN MARCSUBJCTS %] + [% subjectsloop = loop %] + [% IF MARCSUBJCT.authoritylink %] +
    + [% ELSE %] +
      + [% END %] + [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %] +
    • + + +
    • + [% END %] +
    +
    + [% END %] +
+ Cancel +  |  + Search +
[% FOREACH MARCSUBJCT IN MARCSUBJCTS %] [% subjectsloop = loop %] [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %] -- 1.7.10.4