From: Jeff Godin Date: Fri, 13 Apr 2012 21:20:29 +0000 (-0400) Subject: GRPL-style more/less info button in rdetail X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=aa9ab942ad4aa6be850c88cf618de19331e7c7b5;p=evergreen%2Ftadl.git GRPL-style more/less info button in rdetail Add GRPL-style more/less info button in rdetail view. Signed-off-by: Jeff Godin --- diff --git a/Open-ILS/web/opac/skin/tadlv3/css/tadl_layout.css b/Open-ILS/web/opac/skin/tadlv3/css/tadl_layout.css index b06bb6f385..3c6fa95695 100644 --- a/Open-ILS/web/opac/skin/tadlv3/css/tadl_layout.css +++ b/Open-ILS/web/opac/skin/tadlv3/css/tadl_layout.css @@ -33,3 +33,8 @@ a[name="item_title"] { font-size: 1.5em; } text-decoration: none; display: inline-block; } + +/* support for GRPL style more/less info button */ +.less { visibility: hidden; display:none; } +.more { visibility: visible; } +.more_info { border: solid 1px black; } diff --git a/Open-ILS/web/opac/skin/tadlv3/xml/rdetail/rdetail_summary.xml b/Open-ILS/web/opac/skin/tadlv3/xml/rdetail/rdetail_summary.xml index 90dd95eb8a..91f1bf19cf 100644 --- a/Open-ILS/web/opac/skin/tadlv3/xml/rdetail/rdetail_summary.xml +++ b/Open-ILS/web/opac/skin/tadlv3/xml/rdetail/rdetail_summary.xml @@ -46,12 +46,12 @@ - + &common.isbn; - + &common.edition; @@ -61,17 +61,17 @@ - + &common.publisher; - + Series - + &common.physical; @@ -91,7 +91,7 @@ - + &rdetail.summary.subjects; + + + + + + + + + + + + + + + &rdetail.summary.issues_held; @@ -234,7 +257,14 @@ while (getDepth() < findOrgDepth(here)) here = findOrgUnit( here.parent_ou() ); } - + + dojo.require('dojo.cookie'); + if (dojo.cookie('moreORless') == 'more') { + dojo.query('.less').addClass('more'); dojo.query('.less').removeClass('less'); + dojo.query('#more_info_button').addClass('hide_me'); + dojo.query('#less_info_button').removeClass('hide_me'); + } + dojo.require('openils.BibTemplate'); new openils.BibTemplate({ record : new CGI().param('r'), org_unit : here.shortname() }).render(); }, 0);