From 7b6053867f06ea4b38890e20b181006503a37c87 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 10 Aug 2011 15:01:58 -0400 Subject: [PATCH] Added support for series display in ttopac record details Signed-off-by: Bill Erickson --- .../web/templates/default/opac/parts/record/extras.tt2 | 2 +- .../web/templates/default/opac/parts/record/series.tt2 | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/web/templates/default/opac/parts/record/series.tt2 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; %] +
+
-- 2.11.0