4 label => l('General Note: '),
5 xpath => '//*[@tag="500"]'
7 label => l('With Note: '),
8 xpath => '//*[@tag="501"]'
10 label => l('Dissertation Note: '),
11 xpath => '//*[@tag="502"]'
13 label => l('Bibliography, etc. Note: '),
14 xpath => '//*[@tag="504"]'
16 label => l('Formatted Contents Note: '),
17 xpath => '//*[@tag="505"]'
19 label => l('Restrictions on Access Note: '),
20 xpath => '//*[@tag="506"]'
22 label => l('Scale Note for Graphic Material: '),
23 xpath => '//*[@tag="507"]'
25 label => l('Creation/Production Credits Note: '),
26 xpath => '//*[@tag="508"]'
28 label => l('Citation/References Note: '),
29 xpath => '//*[@tag="510"]'
31 label => l('Participant or Performer Note: '),
32 xpath => '//*[@tag="511"]'
34 label => l('Type of Report and Period Covered Note: '),
35 xpath => '//*[@tag="513"]'
37 label => l('Data Quality Note: '),
38 xpath => '//*[@tag="514"]'
40 label => l('Numbering Peculiarities Note: '),
41 xpath => '//*[@tag="515"]'
43 label => l('Type of Computer File or Data Note: '),
44 xpath => '//*[@tag="516"]'
46 label => l('Date/Time and Place of an Event Note: '),
47 xpath => '//*[@tag="518"]'
49 label => l('Summary, etc.: '),
50 xpath => '//*[@tag="520"]'
52 label => l('Target Audience Note: '),
53 xpath => '//*[@tag="521"]'
55 label => l('Geographic Coverage Note: '),
56 xpath => '//*[@tag="522"]'
58 label => l('Preferred Citation of Described Materials Note: '),
59 xpath => '//*[@tag="524"]'
61 label => l('Supplement Note: '),
62 xpath => '//*[@tag="525"]'
64 label => l('Study Program Information Note: '),
65 xpath => '//*[@tag="526"]'
67 label => l('Additional Physical Form available Note: '),
68 xpath => '//*[@tag="530"]'
70 label => l('Reproduction Note: '),
71 xpath => '//*[@tag="533"]'
73 label => l('Original Version Note: '),
74 xpath => '//*[@tag="534"]'
76 label => l('Location of Originals/Duplicates Note: '),
77 xpath => '//*[@tag="535"]'
79 label => l('Funding Information Note: '),
80 xpath => '//*[@tag="536"]'
82 label => l('System Details Note: '),
83 xpath => '//*[@tag="538"]'
85 label => l('Terms Governing Use and Reproduction Note: '),
86 xpath => '//*[@tag="540"]'
88 label => l('Immediate Source of Acquisition Note: '),
89 xpath => '//*[@tag="541"]'
91 label => l('Information Relating to Copyright Status: '),
92 xpath => '//*[@tag="542"]'
94 label => l('Location of Other Archival Materials Note: '),
95 xpath => '//*[@tag="544"]'
97 label => l('Biographical or Historical Data: '),
98 xpath => '//*[@tag="545"]'
100 label => l('Language Note: '),
101 xpath => '//*[@tag="546"]'
103 label => l('Former Title Complexity Note: '),
104 xpath => '//*[@tag="547"]'
106 label => l('Issuing Body Note: '),
107 xpath => '//*[@tag="550"]'
109 label => l('Entity and Attribute Information Note: '),
110 xpath => '//*[@tag="552"]'
112 label => l('Cumulative Index/Finding Aids Note: '),
113 xpath => '//*[@tag="555"]'
115 label => l('Information About Documentation Note: '),
116 xpath => '//*[@tag="556"]'
118 label => l('Ownership and Custodial History: '),
119 xpath => '//*[@tag="561"]'
121 label => l('Copy and Version Identification Note: '),
122 xpath => '//*[@tag="562"]'
124 label => l('Binding Information: '),
125 xpath => '//*[@tag="563"]'
127 label => l('Case File Characteristics Note: '),
128 xpath => '//*[@tag="565"]'
130 label => l('Methodology Note: '),
131 xpath => '//*[@tag="567"]'
133 label => l('Linking Entry Complexity Note: '),
134 xpath => '//*[@tag="580"]'
136 label => l('Publications About Described Materials Note: '),
137 xpath => '//*[@tag="581"]'
139 label => l('Action Note: '),
140 xpath => '//*[@tag="583"]'
142 label => l('Accumulation and Frequency of Use Note: '),
143 xpath => '//*[@tag="584"]'
145 label => l('Exhibitions Note: '),
146 xpath => '//*[@tag="585"]'
148 label => l('Awards Note: '),
149 xpath => '//*[@tag="586"]'
151 label => l('Source of Description Note: '),
152 xpath => '//*[@tag="588"]'
156 BLOCK render_contents;
157 xpath = xpath || '//*[starts-with(@tag,"5")]';
158 FOR node IN ctx.marc_xml.findnodes(xpath);
160 FOR subfield IN node.childNodes;
161 NEXT UNLESS subfield.nodeName == "subfield";
162 code = subfield.getAttribute('code');
163 NEXT UNLESS code.match('[a-z]');
164 all_content.push(subfield.textContent);
165 total_contents = all_content.join(" ").replace('\s+$', '');
166 %] [% total_contents %][%- END;
167 IF all_terms.size; "<br/>"; END;
172 [% BLOCK render_all_contents;
173 FOREACH cont IN contents;
174 content = PROCESS render_contents(xpath=cont.xpath);
175 IF content.match('\S');
177 <table class='rdetail_content'>
180 <td class='rdetail_content_type'>[% cont.label %]</td>
181 <td class='rdetail_content_value' itemprop='keywords'>[% content %]</td>
189 [%- content_html = PROCESS render_all_contents;
190 IF content_html.length > 0;
192 <h2 class='rdetail_contents'>[% l('Content descriptions') %]</h2>