From: Jeff Godin Date: Wed, 25 Jul 2012 19:23:26 +0000 (-0400) Subject: Hide Place Hold for, show link to ezproxy uris X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=79dc30861f2a7ff1f2e10ea169bdf9b070bd437d;p=evergreen%2Ftadl.git Hide Place Hold for, show link to ezproxy uris For records with uris that match TADL's ezproxy host: In the search results page: - Hide the Place Hold link - Show a link to the first uri on the bib In the record summary page: - Hide the Place Hold link More styling would be good, and potentially putting something where the "Place Hold" div was in the search results, so that those rows don't become tiny when the record has no cover art available. Signed-off-by: Jeff Godin --- diff --git a/templates_tadlskin/opac/parts/misc_util.tt2 b/templates_tadlskin/opac/parts/misc_util.tt2 index 2a9a8ea79a..2c25de9e07 100644 --- a/templates_tadlskin/opac/parts/misc_util.tt2 +++ b/templates_tadlskin/opac/parts/misc_util.tt2 @@ -200,6 +200,9 @@ res.link = uri.getAttribute('label'); res.note = uri.getAttribute('use_restriction'); args.uris.push(res); + IF res.href.match('^http://via.tadl.org/'); + args.ezproxy = 1; + END; END; NEXT; ELSE; diff --git a/templates_tadlskin/opac/parts/record/summary.tt2 b/templates_tadlskin/opac/parts/record/summary.tt2 index 840cae204a..eb41726e29 100644 --- a/templates_tadlskin/opac/parts/record/summary.tt2 +++ b/templates_tadlskin/opac/parts/record/summary.tt2 @@ -23,12 +23,14 @@
+ [% IF !args.ezproxy %] + [% END %]
[%- operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add"; diff --git a/templates_tadlskin/opac/parts/result/table.tt2 b/templates_tadlskin/opac/parts/result/table.tt2 index 2ef88485cf..c473758970 100644 --- a/templates_tadlskin/opac/parts/result/table.tt2 +++ b/templates_tadlskin/opac/parts/result/table.tt2 @@ -75,6 +75,13 @@ [% args.holdings.0.label | html %] [% END %] + [% IF args.ezproxy %] + + + [% args.uris.0.link %] + + + [% END %] [% IF CGI.param('detail_record_view') %] @@ -216,6 +223,7 @@
+ [% IF !args.ezproxy %] + [% END %]
[% operation = ctx.mylist.grep(rec.id).size ? "delete" : "add";