1 | creator [email protected]
|
---|
2 | maintainer [email protected]
|
---|
3 | public true
|
---|
4 |
|
---|
5 | subcollection commentaries Filename/\.commentary$/
|
---|
6 | subcollection abstracts Filename/\.abstract$/
|
---|
7 | subcollection papers !Filename/\.(abstract|commentary)$/
|
---|
8 | indexsubcollections papers,commentaries,abstracts papers commentaries abstracts
|
---|
9 | defaultsubcollection papers,commentaries,abstracts
|
---|
10 |
|
---|
11 | indexes section:text
|
---|
12 | defaultindex section:text
|
---|
13 |
|
---|
14 | plugin GAPlug
|
---|
15 | plugin NPPlug -create_log
|
---|
16 | plugin ArcPlug
|
---|
17 | plugin RecPlug
|
---|
18 |
|
---|
19 | classify NPepaList
|
---|
20 | classify NPDateList
|
---|
21 |
|
---|
22 | format AllowExtendedOptions true
|
---|
23 |
|
---|
24 | format SearchVList "<td valign=top>[link][icon][/link]</td><td>{If}{[parent:Series],[parent:Series],[Series]}: {If}{[parent(All': '):Title],[parent(All': '):Title]: }[link][Title][/link]</td>"
|
---|
25 |
|
---|
26 | # [link] is overridden for CL1VList in this collection (to include links/icons to abstracts as well as papers)
|
---|
27 | format CL1VList "
|
---|
28 | <td valign=middle>
|
---|
29 | {If}{[doctype] eq 'Commentary',[link]_document:iconcommentary_[/link]}
|
---|
30 | {If}{[doctype] eq 'doc',<!-- then -->
|
---|
31 | {If}{[abstract],<a href='_httpdocumentnogg_&d=[DocOID]abstract&gg=text'>_document:iconabstract_</a>}
|
---|
32 | }
|
---|
33 | </td>
|
---|
34 | <td valign=top>
|
---|
35 | {If}{[doctype] ne 'Commentary',[link][icon][/link]}
|
---|
36 | </td>
|
---|
37 | <td valign=top>
|
---|
38 | [Title]{If}{[numleafdocs], <i>(_numissues_([numleafdocs]))</i>}
|
---|
39 | </td>
|
---|
40 | <td valign=top>{If}{[Date],[Date]}</td>"
|
---|
41 |
|
---|
42 | format CL2DateList "<td valign=top>{If}{[abstract],<a href=_httpdocumentnogg_&cl=_cgiargcl_&d=[abstract]&gg=text>_document:iconabstract_}[link][icon][/link]</td><td>[Series]: [Title]</td><td>[Date]</td>"
|
---|
43 |
|
---|
44 |
|
---|
45 | format DocumentHeading "
|
---|
46 | <script language='JavaScript'>
|
---|
47 |
|
---|
48 | function news\_start\_url (docid) \{
|
---|
49 | var cutat=docid.indexOf('.');
|
---|
50 | var news\_start = docid;
|
---|
51 | if (cutat<0) \{
|
---|
52 | var newslen = news\_start.length;
|
---|
53 | if (newslen>8) \{
|
---|
54 | var abtail = news\_start.substr(newslen-8,8);
|
---|
55 | if (abtail == \"abstract\") \{
|
---|
56 | news\_start = news\_start.substr(0,newslen-8);
|
---|
57 | \}
|
---|
58 | \}
|
---|
59 | \}
|
---|
60 | else \{
|
---|
61 | news\_start = docid.substr(0,cutat);
|
---|
62 | \}
|
---|
63 | document.location = \"_httpdocumentnogg_&gg=prev&d=\"+news\_start;
|
---|
64 | \}
|
---|
65 |
|
---|
66 | function commentary\_url (docid) \{
|
---|
67 | var cutat=docid.indexOf('_');
|
---|
68 | var series = docid.substr(0,cutat);
|
---|
69 | var commentary = \"_httpdocumentnogg_&gg=text&d=\" + series + \"commentary\";
|
---|
70 | document.location = commentary
|
---|
71 | \}
|
---|
72 |
|
---|
73 | function series\_imgtag (docid) \{
|
---|
74 | var cutat=docid.indexOf('c');
|
---|
75 | var series = docid.substr(0,cutat);
|
---|
76 | var imgtag = \"<img src='_httpcollection_/index/assoc/\" + series + \".dir/coveron.gif'\";
|
---|
77 | document.write(imgtag)
|
---|
78 | \}
|
---|
79 |
|
---|
80 | function view\_abstract (docid) \{
|
---|
81 | var cutat=docid.indexOf('.');
|
---|
82 | var news\_start\_abstract = docid.substr(0,cutat) + \"abstract\";
|
---|
83 |
|
---|
84 | var aburlstart = \"_escdocbutton_(_httpdocumentnogg_&gg=text&cl=_cgiargcl_&d=\";
|
---|
85 | var aburlend = \",_document:textabstract_,_document:texticonabstract_)\";
|
---|
86 |
|
---|
87 | var aburl = aburlstart + news\_start\_abstract + aburlend;
|
---|
88 | document.write(aburl);
|
---|
89 | \}
|
---|
90 |
|
---|
91 | function view\_newspaper (docid) \{
|
---|
92 | var doclen = docid.length;
|
---|
93 | news\_start = docid.substr(0,doclen-8);
|
---|
94 |
|
---|
95 | var nsurlstart = \"_escdocbutton_(_httpdocumentnogg_&gg=text&cl=_cgiargcl_&d=\";
|
---|
96 | var nsurlend = \",_document:textviewpaper_,_document:texticonviewpaper_)\";
|
---|
97 |
|
---|
98 | var nsurl = nsurlstart + news\_start + nsurlend;
|
---|
99 | document.write(nsurl);
|
---|
100 | \}
|
---|
101 |
|
---|
102 | function commentary\_banner (docid) \{
|
---|
103 | var cutat=docid.indexOf('_');
|
---|
104 | var series = docid.substr(0,cutat);
|
---|
105 | var commentary = \"_httpdocumentnogg_&gg=text&d=\" + series + \"commentary\";
|
---|
106 | var imgbase = \"_httpcollection_/index/assoc/\" + series + \".dir/cover\";
|
---|
107 | var imgon = imgbase + \"on.gif\";
|
---|
108 | var imgof = imgbase + \"of.gif\";
|
---|
109 | var comurlstart = \"_escgsimage_(\";
|
---|
110 | var comurlend = \",\"+imgof+\",\"+imgon+\",comm,_document:texticoncommentary_)\";
|
---|
111 | var comurl = comurlstart + commentary + comurlend;
|
---|
112 | document.write(comurl);
|
---|
113 | \}
|
---|
114 |
|
---|
115 | function commentary\_image (docid) \{
|
---|
116 | var cutat=docid.indexOf('_');
|
---|
117 | var series = docid.substr(0,cutat);
|
---|
118 | var imgbase = \"_httpcollection_/index/assoc/\" + series + \".dir/cover\";
|
---|
119 | var imgon = imgbase + \"on.gif\";
|
---|
120 | var imgtag = \"<img src='\" + imgon + \"'>\";
|
---|
121 | document.write(imgtag);
|
---|
122 | \}
|
---|
123 |
|
---|
124 | </script>
|
---|
125 |
|
---|
126 |
|
---|
127 | <center><table width='_pagewidth_'><tr><td>
|
---|
128 |
|
---|
129 | <!-- ##### Commentary ##### -->
|
---|
130 | {If}{[doctype] eq 'Commentary',
|
---|
131 | <table border=0 cellspacing=0 cellpadding=0>
|
---|
132 | <tr>
|
---|
133 | <td colspan='3'>
|
---|
134 | <h3>
|
---|
135 | [Title]
|
---|
136 | </h3>
|
---|
137 | </td>
|
---|
138 | </tr>
|
---|
139 | <tr>
|
---|
140 | <td colspan='3'>
|
---|
141 | <nobr>[DocumentButtonDetach][DocumentButtonHighlight]</nobr>
|
---|
142 | </td>
|
---|
143 | </tr>
|
---|
144 | </table>
|
---|
145 |
|
---|
146 | </td><td align=right>
|
---|
147 |
|
---|
148 | <table border=0 cellspacing=0 cellpadding=0>
|
---|
149 | <tr>
|
---|
150 | <td align=right>
|
---|
151 | <script>series\_imgtag(\"[DocOID]\")</script>
|
---|
152 | </td>
|
---|
153 | </tr>
|
---|
154 | </table>
|
---|
155 | }
|
---|
156 |
|
---|
157 | <!-- ##### Abstract ##### -->
|
---|
158 | {If}{[doctype] eq 'Description',
|
---|
159 | <table border=0 cellspacing=0 cellpadding=0>
|
---|
160 | <tr>
|
---|
161 | <td colspan='3'>
|
---|
162 | <h3>
|
---|
163 | _abstract_
|
---|
164 | <a href='javascript:news\_start\_url(\"[DocOID]\")'><!--
|
---|
165 | -->{If}{[parent(Top):Title], [parent(Top):Title], [Title]}<br>
|
---|
166 | {If}{[parent(Top):Date], [parent(Top):Date], [Date]}
|
---|
167 | </a>
|
---|
168 | </h3>
|
---|
169 | </td>
|
---|
170 | </tr>
|
---|
171 | <tr>
|
---|
172 | <td colspan='3'>
|
---|
173 | <nobr>_document:imageabstractintro_<script>view\_newspaper(\"[DocOID]\")</script></nobr>
|
---|
174 | <nobr>[DocumentButtonDetach][DocumentButtonHighlight]</nobr>
|
---|
175 | </td>
|
---|
176 | </tr>
|
---|
177 | </table>
|
---|
178 |
|
---|
179 | </td><td align=right>
|
---|
180 |
|
---|
181 | <table border=0 cellspacing=0 cellpadding=0>
|
---|
182 | <tr>
|
---|
183 | <td align=right>
|
---|
184 | {If}{[parent(Top):hascom] eq '1',
|
---|
185 | <script>commentary\_banner(\"[DocOID]\")</script>
|
---|
186 | <br>
|
---|
187 | <small><a href='javascript:commentary\_url(\"[DocOID]\")'>_document:texticoncommentary_</a></small>
|
---|
188 | ,<!-- else -->
|
---|
189 | <script>commentary\_image(\"[DocOID]\")</script>
|
---|
190 | }<!-- endif -->
|
---|
191 | </td>
|
---|
192 | </tr>
|
---|
193 | </table>
|
---|
194 | }
|
---|
195 |
|
---|
196 | <!-- ##### Basic Newspaper Document ##### -->
|
---|
197 | {If}{[doctype] eq 'doc',
|
---|
198 | <table border=0 cellspacing=0 cellpadding=0>
|
---|
199 | <tr>
|
---|
200 | <td colspan='3'>
|
---|
201 | <h3>
|
---|
202 | <a href='javascript:news\_start\_url(\"[DocOID]\")'><!--
|
---|
203 | -->{If}{[parent(Top):Title], [parent(Top):Title], [Title]}<br>
|
---|
204 | {If}{[parent(Top):Date], [parent(Top):Date], [Date]}
|
---|
205 | </a>
|
---|
206 | </h3>
|
---|
207 | </td>
|
---|
208 | </tr>
|
---|
209 | <tr>
|
---|
210 | <td colspan='3'>
|
---|
211 | <center><b>_page_ [Title]</b> _document:textnumpages_(_numpages_)</center>
|
---|
212 | </td>
|
---|
213 | </tr>
|
---|
214 |
|
---|
215 | <tr valign=middle>
|
---|
216 | <td align=right>{If}{_document:prevarrow_,_document:prevarrow_}</td>
|
---|
217 | <td align=center valign=top>_document:gotoform_</td>
|
---|
218 | <td align=left>{If}{_document:nextarrow_,_document:nextarrow_}</td>
|
---|
219 | </tr>
|
---|
220 | <tr>
|
---|
221 | <td colspan='3'>
|
---|
222 | {If}{_cgiarggg_ eq 'full',
|
---|
223 | <nobr>
|
---|
224 | {If}{[hastxt] eq '1',_document:imageviewtext_}
|
---|
225 | {If}{[hasprevimg] eq '1',_document:imageprevimage_}
|
---|
226 | {If}{[parent(Top):abstract],<script>view\_abstract(\"[DocOID]\")</script>}
|
---|
227 | </nobr>
|
---|
228 | }
|
---|
229 | {If}{_cgiarggg_ eq 'prev',
|
---|
230 | <nobr>
|
---|
231 | {If}{[hastxt] eq '1',_document:imageviewtext_}
|
---|
232 | {If}{[hasimg] eq '1',_document:imagefullimage_}
|
---|
233 | {If}{[parent(Top):abstract],<script>view\_abstract(\"[DocOID]\")</script>}
|
---|
234 | </nobr>
|
---|
235 | }
|
---|
236 | {If}{_cgiarggg_ eq 'text',
|
---|
237 | <nobr>
|
---|
238 | {If}{[hastxt] eq '1',
|
---|
239 | {If}{[hasimg] eq '1',_document:imagefullimage_}
|
---|
240 | {If}{[hasprevimg] eq '1',_document:imageprevimage_}
|
---|
241 | {If}{[parent(Top):abstract],<script>view\_abstract(\"[DocOID]\")</script>}
|
---|
242 | , <!-- else -->
|
---|
243 | {If}{[hasimg] eq '1',_document:imagefullimage_}
|
---|
244 | {If}{[parent(Top):abstract],<script>view\_abstract(\"[DocOID]\")</script>}
|
---|
245 | }
|
---|
246 | </nobr>
|
---|
247 | }
|
---|
248 | {If}{_cgiarggg_,,
|
---|
249 | <nobr>
|
---|
250 | {If}{[hastxt] eq '1',
|
---|
251 | {If}{[hasimg] eq '1',_document:imagefullimage_}
|
---|
252 | {If}{[hasprevimg] eq '1',_document:imageprevimage_}
|
---|
253 | {If}{[parent(Top):abstract],<script>view\_abstract(\"[DocOID]\")</script>}
|
---|
254 | , <!-- else -->
|
---|
255 | {If}{[hasimg] eq '1',_document:imagefullimage_}
|
---|
256 | {If}{[parent(Top):abstract],<script>view\_abstract(\"[DocOID]\")</script>}
|
---|
257 | }
|
---|
258 | </nobr>
|
---|
259 | }
|
---|
260 | <br><nobr>[DocumentButtonDetach]{If}{[hastxt] eq '1',[DocumentButtonHighlight]}</nobr>
|
---|
261 | </td>
|
---|
262 | </tr>
|
---|
263 | </table>
|
---|
264 |
|
---|
265 | </td><td align=right>
|
---|
266 |
|
---|
267 | <table border=0 cellspacing=0 cellpadding=0>
|
---|
268 | <tr>
|
---|
269 | <td align=right>
|
---|
270 | {If}{[parent(Top):hascom] eq '1',
|
---|
271 | <script>commentary\_banner(\"[DocOID]\")</script>
|
---|
272 | <br>
|
---|
273 | <small><a href='javascript:commentary\_url(\"[DocOID]\")'>_document:texticoncommentary_</a></small>
|
---|
274 | ,<!-- else -->
|
---|
275 | <script>commentary\_image(\"[DocOID]\")</script>
|
---|
276 | }<!-- endif -->
|
---|
277 | </td>
|
---|
278 | </tr>
|
---|
279 | </table>
|
---|
280 | }
|
---|
281 |
|
---|
282 | </td></tr></table><br>_iconblankbar_</center>
|
---|
283 |
|
---|
284 | {If}{[doctype] eq 'doc',
|
---|
285 | {If}{[hastxt] eq '0',
|
---|
286 | <center><table width=_pagewidth_>
|
---|
287 | <table width=_pagewidth_>
|
---|
288 | <tr><td align=center>
|
---|
289 | {If}{[hasimg] eq '0',
|
---|
290 | _missingtext_,
|
---|
291 | {If}{_cgiarggg_ eq 'full',<p><img src='_httpcollection_/index/assoc/_thisOID_/[Source].gif'}
|
---|
292 | {If}{_cgiarggg_ eq 'prev',<p><img src='_httpcollection_/index/assoc/_thisOID_/[Source]_p.gif'}
|
---|
293 | {If}{_cgiarggg_ eq 'text',<p><img src='_httpcollection_/index/assoc/_thisOID_/[Source]_p.gif'}
|
---|
294 | {If}{_cgiarggg_,,<p><img src='_httpcollection_/index/assoc/_thisOID_/[Source]_p.gif'}
|
---|
295 | }
|
---|
296 | </td></tr>
|
---|
297 | </table>
|
---|
298 | </center>}
|
---|
299 | }
|
---|
300 | <!-- end -->"
|
---|
301 |
|
---|
302 | format DocumentText "
|
---|
303 | <center><table width=_pagewidth_>
|
---|
304 | <table width=_pagewidth_>
|
---|
305 | <tr><td>
|
---|
306 | {If}{[doctype] eq 'doc',
|
---|
307 | {If}{_cgiarggg_ eq 'full',<p><img src='_httpcollection_/index/assoc/_thisOID_/[Source].gif'}
|
---|
308 | {If}{_cgiarggg_ eq 'prev',<p><img src='_httpcollection_/index/assoc/_thisOID_/[Source]_p.gif'}
|
---|
309 | {If}{_cgiarggg_ eq 'text',[Text]}
|
---|
310 | {If}{_cgiarggg_,,[Text]}
|
---|
311 | ,<!-- else -->
|
---|
312 | [Text]
|
---|
313 | }
|
---|
314 | </td></tr>
|
---|
315 | </table>
|
---|
316 | </center>"
|
---|
317 |
|
---|
318 | # add this line not because we have a custom receptionist, but because we
|
---|
319 | # want the default language to be Maori.
|
---|
320 | receptionist _gwcgi_?a=p&p=about&c=niupepa&l=mi&nw=utf-8
|
---|
321 |
|
---|
322 | collectionmeta collectionname "Niupepa: Maori Newspapers"
|
---|
323 | collectionmeta iconcollection "_httpprefix_/collect/niupepa/images/niupepa.gif"
|
---|
324 | collectionmeta iconcollectionsmall "_httpprefix_/collect/niupepa/images/niupepsm.gif"
|
---|
325 |
|
---|
326 |
|
---|
327 |
|
---|