6 label => l('Authors: '),
7 xpath => '//*[@tag="100"]|//*[@tag="110"]|//*[@tag="111"]'
10 label => l('Added Authors: '),
11 xpath => '//*[@tag="700"]|//*[@tag="710"]|//*[@tag="711"]'
14 label => l('Credits: '),
15 xpath => '//*[@tag="100"]|//*[@tag="110"]|//*[@tag="111"]'
19 xpath => '//*[@tag="508"]'
22 label => l('Author Notes: '),
23 xpath => '' # Comes from added content...
27 BLOCK build_author_links;
28 FOR node IN ctx.marc_xml.findnodes(xpath);
29 FOR subfield IN node.childNodes;
30 NEXT UNLESS subfield.nodeName == "subfield";
31 code = subfield.getAttribute('code');
32 NEXT UNLESS code.match('[a-z]');
33 term = subfield.textContent | html;
34 '<br/><a href="' _ ctx.opac_root _ '/results?qtype=author&query=' _ term _ '&loc=' _ loc _ '">' _ term _ '</a>';
40 <div id='rdetail_authors_div' class='rdetail_extras_div'>
41 [% FOREACH author IN authors;
42 NEXT UNLESS author.xpath;
43 links = PROCESS build_author_links(xpath=author.xpath);
44 IF links.match('\S') %]
45 <strong>[% author.label %]</strong>
46 <div class='rdetail-author-div'>[% links %]</div>