source: gsdl/trunk/macros/deposit.dm@ 14738

Last change on this file since 14738 was 14738, checked in by anna, 13 years ago

Move text in depositor.dm to depositor package in english2.dm so that they can be translated.

  • Property svn:keywords set to Author Date Id Revision
File size: 16.6 KB
Line 
1# this file must be UTF-8 encoded
2
3package depositor
4
5_imagethispage_ {<a href="_httppagedepositor_">_textdepositor_</a>}
6
7# _pagescriptextra_ will be set to the appropriate _***scriptextra_
8# macro from within the server
9_pagescriptextra_ {}
10
11# a plain header for those pages that need it (the _pagebanner_ macro
12# will be set to this by the server for those pages.
13_plainbanner_ {}
14
15# dont want links to help" or "preferences" pages from within
16# collector
17_globallinks_ {_homelink_}
18
19#######################################################################
20# steps
21
22_numsteps_ {3}
23
24# clashes with general text (in english2.dm) about what to do at this stage
25# now it doesn't appear in wizard bar, is it needed?
26##_textselect_ {The Depositor}
27_textstep1_ {_textmeta_}
28_textstep2_ {_textintro_}
29_textstep3_ {_textconfirm_}
30
31_laststep_ {bild}
32_textlaststep_ {_textbild_}
33
34
35#######################################################################
36# icons
37
38_iconcross_ {<img src="_httpimg_/cross.gif">}
39_iconcross_ [v=1] {<b>no</b>}
40_icontick_ {<img src="_httpimg_/tick.gif">}
41_icontick_ [v=1] {<b>yes</b>}
42_iconblank_ {<img src="_httpimg_/blank.gif">}
43_iconblank_ [v=1] {}
44
45_imagemore_ {<a href="javascript:more()" onMouseover="roll('more',1);" onMouseOut="roll('more',0);"><img
46name="more" src="_httpimg_/moreof.gif" onLoad="gbutton(this,'_httpimg_/moreon.gif');" border=0 alt="_textmore_"
47title="_textmore_" align=top></a>}
48_imagemore_ [v=1] {_textmore_}
49
50_icongreyarrow_ {<img src="_httpimg_/grarrow.gif">}
51_icongreyuparrow_ {<img src="_httpimg_/guarrow.gif">}
52_iconstop_ {<img src="_httpimg_/stop.gif" border=0>}
53
54
55#######################################################################
56# http macros
57
58_httpinfo_ {_gwcgi_?e=_compressedoptions_&p=info}
59_httpsrce_ {_gwcgi_?e=_compressedoptions_&p=srce}
60_httpconf_ {_gwcgi_?e=_compressedoptions_&p=conf}
61_httpbild_ {_gwcgi_?e=_compressedoptions_&p=bild}
62_httpview_ {_gwcgi_?a=p&p=about&c=_cgiargdi1dirname_}
63_httpdel_ {javascript:do\_delete();}
64_httpexpt_ {_gwcgi_?e=_compressedoptions_&p=expt}
65
66
67#######################################################################
68# select // this really should be intro
69#######################################################################
70
71# _fullnamemenu_ has previous collection selected. Since there is no button
72# on this page to proceed, we reset the drop down box to have no collection
73# selected.
74_selectheader_ {_cgihead_
75_htmlhead_(background="_httpiconchalk_" onLoad="initialize();")_startspacer_
76}
77
78
79_selectscriptextra_ {
80
81function initialize() \{
82 document.depositorform.di1dirname.value = "";
83\}
84
85function check\_submit (gotopage) \{
86 var form = document.depositorform;
87 form.p.value = gotopage;
88
89 // if 'dirname' given, then link to cgiarg c so collection specific macros work
90 if (form.di1dirname) \{
91 form.c.value = form.di1dirname.value;
92 \}
93
94 form.submit();
95\}
96
97function menuchange() \{
98
99 _buildtypearray_
100
101 var form = document.depositorform;
102
103 if (form.di1dirname.value == "") \{
104 alert("Please choose a collection first");
105 \}
106 else \{
107 var pos = form.di1dirname.selectedIndex;
108 var bt = buildtype[pos];
109 if (bt=="") \{ bt = "mg"; \}
110 form.di1buildtype.value = bt;
111
112 check\_submit('step1');
113 \}
114\}
115
116}
117
118_selectcontent_ {
119<form name="depositorform" method=post action="_gwcgi_">
120<input type=hidden name="e" value="_decodedcompressedoptions_">
121<input type=hidden name="p" value="intro">
122<input type=hidden name="c" value="">
123<input type=hidden name="di1buildtype" value="">
124
125<center>
126<table width=_pagewidth_>
127<tr><td>
128<div class="divbar">&nbsp;</div>
129<center><h2>_textselect_</h2></center>
130<div class="divbar">&nbsp;</div>
131
132<p> <em>_textselectcol_</em>
133
134<p>_fullnamemenu_<br><br>
135<div class="divbar">&nbsp;</div>
136</td></tr>
137</table>
138</center>
139</form>
140}
141
142
143#######################################################################
144# step 1
145#######################################################################
146
147#here goes the "memorization" macros for each form field.
148_di1md.dc.Title_ {_If_("_:cgiargdi1md.dc.Title_" eq "_cgiargdi1md.dc.Title_",_cgiargdi1md.dc.Title_,)}
149_di1md.dc.Creator_ {_If_("_:cgiargdi1md.dc.Creator_" eq "_cgiargdi1md.dc.Creator_",_cgiargdi1md.dc.Creator_,)}
150_di1md.dc.Description_ {_If_("_:cgiargdi1md.dc.Description_" eq "_cgiargdi1md.dc.Description_",_cgiargdi1md.dc.Description_,)}
151
152_step1scriptextra_ {
153
154function check\_submit (gotopage) \{
155 var form = document.depositorform;
156 form.p.value = gotopage;
157 form.submit();
158\}
159}
160
161_step1content_ {
162
163<form name="depositorform" method=post action="_gwcgi_" enctype="multipart/form-data">
164
165<input type=hidden name="e" value="_decodedcompressedoptions_">
166<input type=hidden name="p" value="_cgiargp_">
167
168<center>
169<table width=_pagewidth_>
170<tr><td>
171<div class="divbar">&nbsp;</div>
172<center>
173<h2>_textstep1_</h2>
174<p>_textdepositorblurb_
175</center>
176<div class="divbar">&nbsp;</div>
177<ul>
178
179<!--input goes here-->
180<p><table>
181<tr>
182 <td>_textTitle_:</td>
183 <td> <input type=text name=di1md.dc.Title value="_di1md.dc.Title_" size=74></td>
184</tr>
185<tr>
186 <td>_textCreator_:</td>
187 <td><input type=text name=di1md.dc.Creator value = "_di1md.dc.Creator_" size=74></td>
188</tr>
189<tr>
190 <td>_textDescription_:</td>
191 <td> <textarea rows=5 cols=40 name=di1md.dc.Description>_di1md.dc.Description_</textarea></td>
192
193</tr>
194</table>
195
196<!--
197<BR>
198<BR>
199<p>_textDescription_: <textarea rows=5 cols=20 name=di1md.dc.Description>_di1md.dc.Description_</textarea></p>
200</ul>
201-->
202
203<div class="divbar">&nbsp;</div>
204</td></tr>
205<tr><td>_depositorbar_</td></tr>
206</table></center>
207
208</form>
209
210}
211
212#######################################################################
213# step 2
214#######################################################################
215
216_userfile_ {_If_("_:cgiargdi1userfile_" eq "_cgiargdi1userfile_",_cgiargdi1userfile_,)}
217
218_step2scriptextra_ {
219
220function check\_submit (gotopage) \{
221 var form = document.depositorform;
222 form.p.value = gotopage;
223 form.submit();
224\}
225}
226
227_step2content_ {
228<form name="depositorform" method=post action="_gwcgi_" enctype="multipart/form-data">
229<input type=hidden name="e" value="_decodedcompressedoptions_">
230<input type=hidden name="p" value="_cgiargp_">
231<center>
232<table width=_pagewidth_>
233<tr><td>
234<div class="divbar">&nbsp;</div>
235<center><h2>_textstep2_</h2></center>
236<div class="divbar">&nbsp;</div>
237<p>_textfilename_: <input type=file name=di1userfileinfo value="_userfile_"></p>
238<div class="divbar">&nbsp;</div>
239</td></tr>
240<tr><td>_depositorbar_</td></tr>
241</table>
242</center>
243</form>
244}
245
246#######################################################################
247# step 3
248#######################################################################
249
250#here goes the "memorization" macros for each form field.
251#_di1_ {_If_("_:cgiargdi1md.dc.Title_" eq "_cgiargdi1md.dc.Title_",_cgiargdi1md.dc.Title_,)}
252#_di1md.dc.Creator_ {_If_("_:cgiargdi1md.dc.Creator_" eq "_cgiargdi1md.dc.Creator_",_cgiargdi1md.dc.Creator_,)}
253
254_step3scriptextra_ {
255
256function check\_submit (gotopage) \{
257 var form = document.depositorform;
258 form.p.value = gotopage;
259 form.submit();
260\}
261}
262
263_step3content_ {
264<form name="depositorform" method=post action="_gwcgi_" enctype="multipart/form-data">
265<input type=hidden name="e" value="_decodedcompressedoptions_">
266<input type=hidden name="p" value="_cgiargp_">
267<center>
268<table width=_pagewidth_>
269<tr><td>
270<div class="divbar">&nbsp;</div>
271<center><h2>_textstep3_</h2></center>
272<div class="divbar">&nbsp;</div>
273<p>_textfilename_: _di1userfile_ </p>
274<p>_textfilesize_: _di1userfilesize_ </p>
275<div class="divbar">&nbsp;</div>
276</td></tr>
277<tr><td>_depositorbar_</td></tr>
278</table>
279</center>
280</form>
281}
282
283#######################################################################
284# bild (main frameset for build page)
285#######################################################################
286
287_bildcontent_ {
288<html>
289<head>
290<!--
291<script>
292function check\_submit (gotopage) \{
293 var form = document.depositorform;
294 form.p.value = gotopage;
295 form.submit();
296\}
297</script>
298-->
299</head>
300
301<form name="depositorform" method=post action="_gwcgi_">
302<input type=hidden name="e" value="_decodedcompressedoptions_">
303<input type=hidden name="p" value="_cgiargp_">
304
305<frameset rows="*,160" border=0>
306 <noframes><body bgcolor="#ffffff">
307 <p>You must have a frame enabled browser to obtain feedback
308 on how the building process is progressing. The collection <i>will</i>
309 continue to build as normal however.</p>
310
311 <table>
312 <tr valign=center><td>
313 To stop the building process at any time, click here.
314 <br>The collection you are working on will remain intact.
315 </td>
316 <td><input type="submit" value="stop building"></td>
317 </table>
318
319 </body>
320 </noframes>
321 <frame src="_gwcgi_?e=_compressedoptions_&p=bildframe1">
322 <frame src="_gwcgi_?e=_compressedoptions_&p=bildstatus">
323</frameset>
324</html>
325}
326
327#######################################################################
328# bildframe1
329#######################################################################
330
331# header overridden to allow base target to be set
332
333_bildframe1header_ {_cgihead_
334<html>
335<head>
336<base target=_top>
337<title>_pagetitle_</title>
338_globalscripts_
339_cssheader_
340</head>
341<body bgcolor="\#ffffff" text="\#000000" link="\#006666"
342 alink="\#cc9900" vlink="\#666633" background="_httpiconchalk_">
343_startspacer__pagebanner_
344}
345
346
347_bildframe1header_[v=1] {_cgihead_
348<html>
349<head>
350<base target=_top>
351<title>_pagetitle_</title>
352_globalscripts_
353</head>
354<body bgcolor="\#ffffff" text="\#000000" link="\#006666"
355 alink="\#cc9900" vlink="\#666633" background="_httpiconchalk_">
356_pagebanner_
357}
358
359_bildframe1scriptextra_ {}
360
361_bildframe1content_ {
362<form name="depositorform" method=post action="_gwcgi_">
363<input type=hidden name="e" value="_decodedcompressedoptions_">
364<input type=hidden name="p" value="bildcancel">
365
366<center>
367<table width=_pagewidth_>
368<tr><td>
369<div class="divbar">&nbsp;</div>
370<center>
371<h2>_textbild_</h2>
372</center>
373<div class="divbar">&nbsp;</div>
374<p>
375_depositor:textbild1_
376<p>
377
378<table>
379<tr valign=center><td>
380_depositor:textbild2_
381</td>
382<td><input type="submit" value="_depositor:textstopbuild_"></td>
383</table>
384
385<p>
386_depositor:textbild3_
387</td></tr>
388</table></center>
389</form>
390}
391
392
393#######################################################################
394# bildcancel
395#######################################################################
396
397_bildcancelscriptextra_ {
398function check\_submit (gotopage) \{
399 var form = document.depositorform;
400 form.p.value = gotopage;
401 form.submit();
402\}
403}
404_bildcancelcontent_ {
405<form name="depositorform" method=post action="_gwcgi_">
406<input type=hidden name="e" value="_decodedcompressedoptions_">
407<input type=hidden name="p" value="_cgiargp_">
408
409</form>
410<center>
411<table width=_pagewidth_>
412<tr><td>
413<div class="divbar">&nbsp;</div>
414<center>
415<h2>_depositor:textbuildcancelled_</h2>
416</center>
417<div class="divbar">&nbsp;</div>
418<p>
419_depositor:textbildcancel1_
420<p><center>
421_depositorbar_
422</center>
423
424</td></tr>
425</table></center>
426}
427
428
429#######################################################################
430# bildstatus
431#######################################################################
432
433# special header for status page
434_bildstatusheader_ {_cgihead_
435_htmlhead_(background="_httpiconchalk_" onLoad="initialize();")_startspacer_
436}
437_bildstatusheader_[v=1] {_cgihead_
438_htmlhead_(onLoad="initialize();")
439}
440
441_bildstatusscriptextra_ {
442var timer = 5;
443function initialize() \{
444 setTimeout("count_down()",1000);
445\}
446
447function count_down() \{
448 if (timer==0) \{
449 window.status = "";
450 document.depositorform.submit();
451 \} else \{
452 if (timer==1) \{
453 window.status = "_textbsupdate1_";
454 \} else \{
455 window.status = "_textbsupdate2_ "+timer+" _textseconds_";
456 \}
457 timer--;
458 setTimeout("count_down()",1000);
459 \}
460\}
461}
462
463_bildstatuscontent_ {
464<form name="depositorform" method=post action="_gwcgi_">
465<input type=hidden name="e" value="_decodedcompressedoptions_">
466
467<center>
468<table width=_pagewidth_>
469<tr><td><center>
470_statusline_
471</center>
472</td></tr>
473</table></center>
474</form>
475}
476
477
478#######################################################################
479# bilddone
480#######################################################################
481
482_bilddoneheader_ {_cgihead_
483_htmlhead_(background="_httpiconchalk_")_startspacer_
484}
485_bilddonescriptextra_ {
486
487function check\_submit (gotopage) \{
488 var form = document.depositorform;
489 form.p.value = gotopage;
490 form.submit();
491\}
492
493}
494
495
496_bilddonecontent_ {
497<center>
498<table width=_pagewidth_>
499<tr><td>
500<p>_textbildsuc_
501
502<p>_textviewbildsummary_
503
504<p><center>
505_depositorbar_
506</center>
507
508</td></tr>
509</table></center>
510}
511
512
513#######################################################################
514# bildfail
515#######################################################################
516
517_bildfailheader_ {_cgihead_
518_htmlhead_(background="_httpiconchalk_")_startspacer_
519}
520_bildfailscriptextra_ {
521function check\_submit (gotopage) \{
522 var form = document.depositorform;
523 form.p.value = gotopage;
524 form.submit();
525\}
526}
527_bildfailcontent_ {
528<form name="depositorform" method=post action="_gwcgi_">
529<input type=hidden name="e" value="_decodedcompressedoptions_">
530<input type=hidden name="p" value="_cgiargp_">
531
532</form>
533
534<table width=_pagewidth_>
535<tr><td>
536_textfailmsg_
537</td></tr>
538<tr><td>
539</td></tr>
540</table></center>
541}
542
543# _textfailmsg_ will be set to one of the following macros from within
544# the server
545
546_textfailmsg1_ {
547_textfailmsg11_
548<p><center>
549_depositorbar_
550</center>
551}
552
553_textfailmsg6_ {_textfailmsg1_}
554
555_textfailmsg2_ {
556_textfailmsg21_
557<p>_textblcont_
558<p>_faillog_
559<p>_texttryagain_
560}
561
562_textfailmsg3_ {
563_textfailmsg31_
564<p>_textblcont_
565<p>_faillog_
566<p>_texttryagain_
567}
568
569_textfailmsg4_ {
570_textfailmsg41_
571<p>_textblcont_
572<p>_faillog_
573}
574
575_textfailmsg5_ {_textfailmsg4_}
576
577_textfailmsg7_ {
578_textfailmsg71_
579<p>_texttryagain_
580}
581
582#######################################################################
583# Error and message pages
584#######################################################################
585
586_messagehead_ {
587<form name="depositorform" method=post action="_gwcgi_">
588<input type=hidden name="e" value="_decodedcompressedoptions_">
589
590<center>
591<table width=_pagewidth_>
592<tr><td>
593<div class="divbar">&nbsp;</div>
594}
595
596_messagefoot_ {
597<p>
598<a href="javascript:document.depositorform.submit();">_textretcoll_</a>
599<div class="divbar">&nbsp;</div>
600</td></tr>
601</table></center>
602</form>
603}
604
605_messagefootnolink_ {
606<div class="divbar">&nbsp;</div>
607</td></tr>
608</table></center>
609</form>
610}
611
612#_delpermissioncontent_ {
613#_messagehead_
614#<p>
615#_textdelperm_
616#_messagefoot_
617#}
618
619#_delinvalidcontent_ {
620#_messagehead_
621#<p>
622#_textdelinv_
623#_messagefoot_
624#}
625
626#_delsuccesscontent_ {
627#_messagehead_
628#<p>
629#_textdelsuc_
630#_messagefoot_
631#}
632
633#_clonefailcontent_ {
634#_messagehead_
635#<input type=hidden name="bc1clone" value="0">
636#<p>_textclonefail_
637#_messagefoot_
638#}
639
640_genericcontent_ {
641_messagehead_
642<p>_textcolerr_
643_messagefoot_
644}
645
646_tmpfailcontent_ {
647_messagehead_
648<p>
649_texttmpfail_
650_messagefoot_
651}
652
653#_mkcolfailcontent_ {
654#_messagehead_
655#<p>_textmkcolfail_
656#_messagefoot_
657#}
658
659_nocollectioncontent_ {
660_messagehead_
661<p>_textnocontent_
662<br><a href="_httppagedepositor_">_textrestart_</a>
663<p>
664_messagefootnolink_
665}
666
667#_reloaderrorcontent_ {
668#_messagehead_
669#<p>_textreloaderror_
670#<br><a href="_httppagedepositor_">_textrestart_</a>
671#<p>
672#_messagefootnolink_
673#}
674
675_exptscriptextra_ {}
676
677#_exptsuccesscontent_ {
678#_messagehead_
679#<input type=hidden name=p value=existing>
680#<p>_textexptsuc_
681#_messagefoot_
682#}
683
684#_exptfailcontent_ {
685#_messagehead_
686#<input type=hidden name=p value=existing>
687#_textexptfail_
688#_messagefoot_
689#}
690
691#######################################################################
692# depositonly
693#######################################################################
694
695_depositonlyscriptextra_ {}
696
697_depositonlycontent_ {
698
699<center>
700<em>Thanks for using the Depositor! Cick <a href="_gwcgi_">here</a> to return to the Greenstone home page. </em>
701<table width=_pagewidth_>
702<tr><td>
703<div class="divbar">&nbsp;</div>
704<center><h2>_textstep3_</h2></center>
705<div class="divbar">&nbsp;</div>
706<p>_textfilename_: _di1userfile_ </p>
707<p>_textfilesize_: _di1userfilesize_ </p>
708<div class="divbar">&nbsp;</div>
709</td></tr>
710<tr><td></td></tr>
711</table>
712</center>
713
714}
715
716###################################################
717## text macros that are defined by another package
718###################################################
719
720
721_textbsupdate1_ {_wizard:textbsupdate1_}
722_textbsupdate2_ {_wizard:textbsupdate2_}
723_textseconds_ {_wizard:textseconds_}
724
725_textbildsuc_ {_wizard:textbildsuc_}
726_textviewbildsummary_ {_wizard:textviewbildsummary_}
727
728_textview_ {_wizard:textview_}
729_textbild1_ {_wizard:textbild1_}
730
731_textbild2_ {_wizard:textbild2_}
732
733_textstopbuild_ {_wizard:textstopbuild_}
734
735_textbild3_ {_wizard:textbild3_}
736
737_textbuildcancelled_ {_wizard:textbuildcancelled_}
738
739_textbildcancel1_ {_wizard:textbildcancel1_}
740
741_textfailmsg11_ {_wizard:textfailmsg11_}
742_textfailmsg21_ {_wizard:textfailmsg21_}
743_textblcont_ {_wizard:textblcont_}
744
745_textfailmsg31_ {_wizard:textfailmsg31_}
746_textfailmsg41_ {_wizard:textfailmsg41_}
747_textfailmsg71_ {_wizard:textfailmsg71_}
Note: See TracBrowser for help on using the repository browser.