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 display_field => 'toc',
17 label => l('Formatted Contents Note: '),
18 xpath => '//*[@tag="505"]'
20 label => l('Restrictions on Access Note: '),
21 xpath => '//*[@tag="506"]'
23 label => l('Scale Note for Graphic Material: '),
24 xpath => '//*[@tag="507"]'
26 label => l('Creation/Production Credits Note: '),
27 xpath => '//*[@tag="508"]'
29 label => l('Citation/References Note: '),
30 xpath => '//*[@tag="510"]'
32 label => l('Participant or Performer Note: '),
33 xpath => '//*[@tag="511"]'
35 label => l('Type of Report and Period Covered Note: '),
36 xpath => '//*[@tag="513"]'
38 label => l('Data Quality Note: '),
39 xpath => '//*[@tag="514"]'
41 label => l('Numbering Peculiarities Note: '),
42 xpath => '//*[@tag="515"]'
44 label => l('Type of Computer File or Data Note: '),
45 xpath => '//*[@tag="516"]'
47 label => l('Date/Time and Place of an Event Note: '),
48 xpath => '//*[@tag="518"]'
50 display_field => 'abstract',
51 label => l('Summary, etc.: '),
52 xpath => '//*[@tag="520"]'
54 label => l('Target Audience Note: '),
55 xpath => '//*[@tag="521"]'
57 label => l('Geographic Coverage Note: '),
58 xpath => '//*[@tag="522"]'
60 label => l('Preferred Citation of Described Materials Note: '),
61 xpath => '//*[@tag="524"]'
63 label => l('Supplement Note: '),
64 xpath => '//*[@tag="525"]'
66 label => l('Study Program Information Note: '),
67 xpath => '//*[@tag="526"]'
69 label => l('Additional Physical Form available Note: '),
70 xpath => '//*[@tag="530"]'
72 label => l('Reproduction Note: '),
73 xpath => '//*[@tag="533"]'
75 label => l('Original Version Note: '),
76 xpath => '//*[@tag="534"]'
78 label => l('Location of Originals/Duplicates Note: '),
79 xpath => '//*[@tag="535"]'
81 label => l('Funding Information Note: '),
82 xpath => '//*[@tag="536"]'
84 label => l('System Details Note: '),
85 xpath => '//*[@tag="538"]'
87 label => l('Terms Governing Use and Reproduction Note: '),
88 xpath => '//*[@tag="540"]'
90 label => l('Immediate Source of Acquisition Note: '),
91 xpath => '//*[@tag="541"]'
93 label => l('Information Relating to Copyright Status: '),
94 xpath => '//*[@tag="542"]'
96 label => l('Location of Other Archival Materials Note: '),
97 xpath => '//*[@tag="544"]'
99 label => l('Biographical or Historical Data: '),
100 xpath => '//*[@tag="545"]'
102 label => l('Language Note: '),
103 xpath => '//*[@tag="546"]'
105 label => l('Former Title Complexity Note: '),
106 xpath => '//*[@tag="547"]'
108 label => l('Issuing Body Note: '),
109 xpath => '//*[@tag="550"]'
111 label => l('Entity and Attribute Information Note: '),
112 xpath => '//*[@tag="552"]'
114 label => l('Cumulative Index/Finding Aids Note: '),
115 xpath => '//*[@tag="555"]'
117 label => l('Information About Documentation Note: '),
118 xpath => '//*[@tag="556"]'
120 label => l('Ownership and Custodial History: '),
121 xpath => '//*[@tag="561"]'
123 label => l('Copy and Version Identification Note: '),
124 xpath => '//*[@tag="562"]'
126 label => l('Binding Information: '),
127 xpath => '//*[@tag="563"]'
129 label => l('Case File Characteristics Note: '),
130 xpath => '//*[@tag="565"]'
132 label => l('Methodology Note: '),
133 xpath => '//*[@tag="567"]'
135 label => l('Linking Entry Complexity Note: '),
136 xpath => '//*[@tag="580"]'
138 label => l('Publications About Described Materials Note: '),
139 xpath => '//*[@tag="581"]'
141 label => l('Action Note: '),
142 xpath => '//*[@tag="583"]'
144 label => l('Accumulation and Frequency of Use Note: '),
145 xpath => '//*[@tag="584"]'
147 label => l('Exhibitions Note: '),
148 xpath => '//*[@tag="585"]'
150 label => l('Awards Note: '),
151 xpath => '//*[@tag="586"]'
153 label => l('Source of Description Note: '),
154 xpath => '//*[@tag="588"]'
158 BLOCK render_contents;
159 xpath = xpath || '//*[starts-with(@tag,"5")]';
160 FOR node IN ctx.marc_xml.findnodes(xpath);
163 FOR subfield IN node.childNodes;
164 NEXT UNLESS subfield.nodeName == "subfield";
165 code = subfield.getAttribute('code');
167 linked_fields = [subfield.textContent()];
168 target_field = node.getAttribute('tag');
171 NEXT UNLESS code.match('[a-z]');
172 all_content.push(subfield.textContent);
174 total_contents = all_content.join(" ").replace('\s+$', '');
175 %] [% total_contents;
176 IF total_contents.size; "<br/>"; END;
177 FOREACH link880 IN graphics;
178 '<div class="graphic880"' _ link880.dir _ '>';
179 link880.value | html;
185 BLOCK render_all_contents;
186 FOREACH cont IN contents;
188 df = cont.display_field;
189 IF df AND attrs.hl.$df.size;
190 content = attrs.hl.$df.join('<br/>');
192 content = PROCESS render_contents(xpath=cont.xpath);
194 IF content.match('\S');
197 <td class='rdetail_content_type'>[% cont.label %]</td>
198 <td class='rdetail_content_value' property='keywords'>[% content %]</td>
204 [%- content_html = PROCESS render_all_contents;
205 IF content_html.length > 0;
207 <h2 class='rdetail_contents'>[% l('Content descriptions') %]</h2>
208 <table class='rdetail_content'>