[% series_tags = ['440', '490', '800', '810', '811', '830', '694']; loc = CGI.param('loc'); %] [% BLOCK render_series; results = []; FOR tag IN series_tags; FOR node IN ctx.marc_xml.findnodes('//*[@tag="' _ tag _ '"]/*'); node_uri = node.textContent | uri; node_html = node.textContent | html; IF !loop.first; results.last = result.last _ ''; END; results.push('' _ node_html _ '' ); END; END; END; %] [%- series_anchors = PROCESS render_series; IF series_anchors.length > 0; %] [%- END %]