2 series_tags = ['440', '490', '800', '810', '811', '830', '694'];
3 loc = CGI.param('loc');
6 [% BLOCK render_series;
8 FOR tag IN series_tags;
9 FOR node IN ctx.marc_xml.findnodes('//*[@tag="' _ tag _ '"]/*');
10 node_uri = node.textContent | uri;
11 node_html = node.textContent | html;
13 results.last = result.last _ '<span>—</span>';
15 results.push('<a href="' _ ctx.opac_root
16 _ '/results?qtype=series&query=' _ node_uri _ '&loc='
17 _ loc _ '">' _ node_html _ '</a>'
24 [%- series_anchors = PROCESS render_series;
25 IF series_anchors.length > 0; %]
26 <h2 class='rdetail_related_series'>[% l('Search for related items by series') %]</h2>
28 [%- FOR entry IN series_anchors %]
29 <li class='rdetail_series_value'>[% entry %]</li>