From: Bill Erickson Date: Wed, 10 Aug 2011 19:01:58 +0000 (-0400) Subject: Added support for series display in ttopac record details X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7b6053867f06ea4b38890e20b181006503a37c87;p=contrib%2FConifer.git Added support for series display in ttopac record details Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/web/templates/default/opac/parts/record/extras.tt2 b/Open-ILS/web/templates/default/opac/parts/record/extras.tt2 index 95333a1762..b4ea965af8 100644 --- a/Open-ILS/web/templates/default/opac/parts/record/extras.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/record/extras.tt2 @@ -18,7 +18,7 @@ {name => 'summaryplus', label => l('Summaries & More'), hide => hide_summary}, {name => 'content', label => l('Contents'), hide => 1}, # ToC {name => 'authors', label => l('Authors')}, - {name => 'series', label => l('Series'), hide => 1}, + {name => 'series', label => l('Series')}, {name => 'subjects', label => l('Subject')}, {name => 'annotation', label => l('Annotation'), hide => 1}, {name => 'awards', label => l('Awards, Reviews, & Suggested Reads')}, diff --git a/Open-ILS/web/templates/default/opac/parts/record/series.tt2 b/Open-ILS/web/templates/default/opac/parts/record/series.tt2 new file mode 100644 index 0000000000..cdfe588f08 --- /dev/null +++ b/Open-ILS/web/templates/default/opac/parts/record/series.tt2 @@ -0,0 +1,16 @@ +[% + series_tags = ['440', '490', '800', '810', '811', '830', '694']; + loc = CGI.param('loc'); +%] + +
+ + [% FOR tag IN series_tags; %] +
+ [% FOR node IN ctx.marc_xml.findnodes('//*[@tag="' _ tag _ '"]/*') %] + [% IF !loop.first %] [% END %] + [% node.textContent | html %] + [% END %] + [% END; %] +
+