root/gsdl/trunk/macros/deposit.dm @ 14718

Revision 14718, 16.7 KB (checked in by anna, 12 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
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>Select the collection to which you would like to add a new
133document. </em>
134
135<p>_fullnamemenu_<br><br>
136<div class="divbar">&nbsp;</div>
137</td></tr>
138</table>
139</center>
140</form>
141}
142
143
144#######################################################################
145# step 1
146#######################################################################
147
148#here goes the "memorization" macros for each form field. 
149_di1md.dc.Title_ {_If_("_:cgiargdi1md.dc.Title_" eq  "_cgiargdi1md.dc.Title_",_cgiargdi1md.dc.Title_,)}
150_di1md.dc.Creator_ {_If_("_:cgiargdi1md.dc.Creator_" eq  "_cgiargdi1md.dc.Creator_",_cgiargdi1md.dc.Creator_,)}
151_di1md.dc.Description_ {_If_("_:cgiargdi1md.dc.Description_" eq  "_cgiargdi1md.dc.Description_",_cgiargdi1md.dc.Description_,)}
152
153_step1scriptextra_ {
154
155function check\_submit (gotopage) \{
156  var form = document.depositorform;
157  form.p.value = gotopage;
158  form.submit();
159\}
160}
161
162_step1content_ {
163
164<form name="depositorform" method=post action="_gwcgi_" enctype="multipart/form-data">
165
166<input type=hidden name="e" value="_decodedcompressedoptions_">
167<input type=hidden name="p" value="_cgiargp_">
168
169<center>
170<table width=_pagewidth_>
171<tr><td>
172<div class="divbar">&nbsp;</div>
173<center>
174<h2>_textstep1_</h2>
175<p>_textdepositorblurb_
176</center>
177<div class="divbar">&nbsp;</div>
178<ul>
179
180<!--input goes here-->
181<p><table>
182<tr>
183  <td>_textTitle_:</td>
184  <td> <input type=text name=di1md.dc.Title value="_di1md.dc.Title_" size=74></td>
185</tr>
186<tr>
187  <td>_textCreator_:</td>
188  <td><input type=text name=di1md.dc.Creator value = "_di1md.dc.Creator_" size=74></td>
189</tr>
190<tr>
191  <td>_textDescription_:</td>
192  <td> <textarea rows=5 cols=40 name=di1md.dc.Description>_di1md.dc.Description_</textarea></td>
193
194</tr>
195</table>
196
197<!--
198<BR>
199<BR>
200<p>_textDescription_: <textarea rows=5 cols=20 name=di1md.dc.Description>_di1md.dc.Description_</textarea></p>
201</ul>
202-->
203
204<div class="divbar">&nbsp;</div>
205</td></tr>
206<tr><td>_depositorbar_</td></tr>
207</table></center>
208
209</form>
210
211}
212
213#######################################################################
214# step 2
215#######################################################################
216
217_userfile_ {_If_("_:cgiargdi1userfile_" eq  "_cgiargdi1userfile_",_cgiargdi1userfile_,)}
218
219_step2scriptextra_ {
220
221function check\_submit (gotopage) \{
222  var form = document.depositorform;
223  form.p.value = gotopage;
224  form.submit();
225\}
226}
227
228_step2content_ {
229<form name="depositorform" method=post action="_gwcgi_" enctype="multipart/form-data">
230<input type=hidden name="e" value="_decodedcompressedoptions_">
231<input type=hidden name="p" value="_cgiargp_">
232<center>
233<table width=_pagewidth_>
234<tr><td>
235<div class="divbar">&nbsp;</div>
236<center><h2>_textstep2_</h2></center>
237<div class="divbar">&nbsp;</div>
238<p>Filename: <input type=file name=di1userfileinfo value="_userfile_"></p>
239<div class="divbar">&nbsp;</div>
240</td></tr>
241<tr><td>_depositorbar_</td></tr>
242</table>
243</center>
244</form>
245}
246
247#######################################################################
248# step 3
249#######################################################################
250
251#here goes the "memorization" macros for each form field. 
252#_di1_ {_If_("_:cgiargdi1md.dc.Title_" eq  "_cgiargdi1md.dc.Title_",_cgiargdi1md.dc.Title_,)}
253#_di1md.dc.Creator_ {_If_("_:cgiargdi1md.dc.Creator_" eq  "_cgiargdi1md.dc.Creator_",_cgiargdi1md.dc.Creator_,)}
254
255_step3scriptextra_ {
256
257function check\_submit (gotopage) \{
258  var form = document.depositorform;
259  form.p.value = gotopage;
260  form.submit();
261\}
262}
263
264_step3content_ {
265<form name="depositorform" method=post action="_gwcgi_" enctype="multipart/form-data">
266<input type=hidden name="e" value="_decodedcompressedoptions_">
267<input type=hidden name="p" value="_cgiargp_">
268<center>
269<table width=_pagewidth_>
270<tr><td>
271<div class="divbar">&nbsp;</div>
272<center><h2>_textstep3_</h2></center>
273<div class="divbar">&nbsp;</div>
274<p>Filename: _di1userfile_ </p>
275<p>Filesize: _di1userfilesize_ </p> 
276<div class="divbar">&nbsp;</div>
277</td></tr>
278<tr><td>_depositorbar_</td></tr>
279</table>
280</center>
281</form>
282}
283
284#######################################################################
285# bild (main frameset for build page)
286#######################################################################
287
288_bildcontent_ {
289<html>
290<head>
291<!--
292<script>
293function check\_submit (gotopage) \{
294  var form = document.depositorform;
295  form.p.value = gotopage;
296  form.submit();
297\}
298</script>
299-->
300</head>
301
302<form name="depositorform" method=post action="_gwcgi_">
303<input type=hidden name="e" value="_decodedcompressedoptions_">
304<input type=hidden name="p" value="_cgiargp_">
305
306<frameset rows="*,160" border=0>
307  <noframes><body bgcolor="#ffffff">
308  <p>You must have a frame enabled browser to obtain feedback
309  on how the building process is progressing. The collection <i>will</i>
310  continue to build as normal however.</p>
311
312  <table>
313  <tr valign=center><td>
314  To stop the building process at any time, click here.
315  <br>The collection you are working on will remain intact.
316  </td>
317  <td><input type="submit" value="stop building"></td>
318  </table>
319
320  </body>
321  </noframes>
322  <frame src="_gwcgi_?e=_compressedoptions_&p=bildframe1">
323  <frame src="_gwcgi_?e=_compressedoptions_&p=bildstatus">
324</frameset>
325</html>
326}
327
328#######################################################################
329# bildframe1
330#######################################################################
331
332# header overridden to allow base target to be set
333
334_bildframe1header_ {_cgihead_
335<html>
336<head>
337<base target=_top>
338<title>_pagetitle_</title>
339_globalscripts_
340_cssheader_
341</head>
342<body bgcolor="\#ffffff" text="\#000000" link="\#006666"
343      alink="\#cc9900" vlink="\#666633" background="_httpiconchalk_">
344_startspacer__pagebanner_
345}
346
347
348_bildframe1header_[v=1] {_cgihead_
349<html>
350<head>
351<base target=_top>
352<title>_pagetitle_</title>
353_globalscripts_
354</head>
355<body bgcolor="\#ffffff" text="\#000000" link="\#006666"
356      alink="\#cc9900" vlink="\#666633" background="_httpiconchalk_">
357_pagebanner_
358}
359
360_bildframe1scriptextra_ {}
361
362_bildframe1content_ {
363<form name="depositorform" method=post action="_gwcgi_">
364<input type=hidden name="e" value="_decodedcompressedoptions_">
365<input type=hidden name="p" value="bildcancel">
366
367<center>
368<table width=_pagewidth_>
369<tr><td>
370<div class="divbar">&nbsp;</div>
371<center>
372<h2>_textbild_</h2>
373</center>
374<div class="divbar">&nbsp;</div>
375<p>
376_depositor:textbild1_
377<p>
378
379<table>
380<tr valign=center><td>
381_depositor:textbild2_
382</td>
383<td><input type="submit" value="_depositor:textstopbuild_"></td>
384</table>
385
386<p>
387_depositor:textbild3_
388</td></tr>
389</table></center>
390</form>
391}
392
393
394#######################################################################
395# bildcancel
396#######################################################################
397
398_bildcancelscriptextra_ {
399function check\_submit (gotopage) \{
400  var form = document.depositorform;
401  form.p.value = gotopage;
402  form.submit();
403\}
404}
405_bildcancelcontent_ {
406<form name="depositorform" method=post action="_gwcgi_">
407<input type=hidden name="e" value="_decodedcompressedoptions_">
408<input type=hidden name="p" value="_cgiargp_">
409
410</form>
411<center>
412<table width=_pagewidth_>
413<tr><td>
414<div class="divbar">&nbsp;</div>
415<center>
416<h2>_depositor:textbuildcancelled_</h2>
417</center>
418<div class="divbar">&nbsp;</div>
419<p>
420_depositor:textbildcancel1_
421<p><center>
422_depositorbar_
423</center>
424
425</td></tr>
426</table></center>
427}
428
429
430#######################################################################
431# bildstatus
432#######################################################################
433
434# special header for status page
435_bildstatusheader_ {_cgihead_
436_htmlhead_(background="_httpiconchalk_" onLoad="initialize();")_startspacer_
437}
438_bildstatusheader_[v=1] {_cgihead_
439_htmlhead_(onLoad="initialize();")
440}
441
442_bildstatusscriptextra_ {
443var timer = 5;
444function initialize() \{
445  setTimeout("count_down()",1000);
446\}
447
448function count_down() \{
449  if (timer==0) \{
450    window.status = "";
451    document.depositorform.submit();
452  \} else \{
453    if (timer==1) \{
454    window.status = "_textbsupdate1_";
455    \} else \{
456    window.status = "_textbsupdate2_ "+timer+" _textseconds_";
457    \}
458    timer--;
459    setTimeout("count_down()",1000);
460  \}   
461\}
462}
463
464_bildstatuscontent_ {
465<form name="depositorform" method=post action="_gwcgi_">
466<input type=hidden name="e" value="_decodedcompressedoptions_">
467
468<center>
469<table width=_pagewidth_>
470<tr><td><center>
471_statusline_
472</center>
473</td></tr>
474</table></center>
475</form>
476}
477
478
479#######################################################################
480# bilddone
481#######################################################################
482
483_bilddoneheader_ {_cgihead_
484_htmlhead_(background="_httpiconchalk_")_startspacer_
485}
486_bilddonescriptextra_ {
487
488function check\_submit (gotopage) \{
489  var form = document.depositorform;
490  form.p.value = gotopage;
491  form.submit();
492\}
493
494}
495
496
497_bilddonecontent_ {
498<center>
499<table width=_pagewidth_>
500<tr><td>
501<p>_textbildsuc_
502
503<p>_textviewbildsummary_
504
505<p><center>
506_depositorbar_
507</center>
508
509</td></tr>
510</table></center>
511}
512
513
514#######################################################################
515# bildfail
516#######################################################################
517
518_bildfailheader_ {_cgihead_
519_htmlhead_(background="_httpiconchalk_")_startspacer_
520}
521_bildfailscriptextra_ {
522function check\_submit (gotopage) \{
523  var form = document.depositorform;
524  form.p.value = gotopage;
525  form.submit();
526\}
527}
528_bildfailcontent_ {
529<form name="depositorform" method=post action="_gwcgi_">
530<input type=hidden name="e" value="_decodedcompressedoptions_">
531<input type=hidden name="p" value="_cgiargp_">
532
533</form>
534
535<table width=_pagewidth_>
536<tr><td>
537_textfailmsg_
538</td></tr>
539<tr><td>
540</td></tr>
541</table></center>
542}
543
544# _textfailmsg_ will be set to one of the following macros from within
545# the server
546
547_textfailmsg1_ {
548_textfailmsg11_
549<p><center>
550_depositorbar_
551</center>
552}
553
554_textfailmsg6_ {_textfailmsg1_}
555
556_textfailmsg2_ {
557_textfailmsg21_
558<p>_textblcont_
559<p>_faillog_
560<p>_texttryagain_
561}
562
563_textfailmsg3_ {
564_textfailmsg31_
565<p>_textblcont_
566<p>_faillog_
567<p>_texttryagain_
568}
569
570_textfailmsg4_ {
571_textfailmsg41_
572<p>_textblcont_
573<p>_faillog_
574}
575
576_textfailmsg5_ {_textfailmsg4_}
577
578_textfailmsg7_ {
579_textfailmsg71_
580<p>_texttryagain_
581}
582
583#######################################################################
584# Error and message pages
585#######################################################################
586
587_messagehead_ {
588<form name="depositorform" method=post action="_gwcgi_">
589<input type=hidden name="e" value="_decodedcompressedoptions_">
590
591<center>
592<table width=_pagewidth_>
593<tr><td>
594<div class="divbar">&nbsp;</div>
595}
596
597_messagefoot_ {
598<p>
599<a href="javascript:document.depositorform.submit();">_textretcoll_</a>
600<div class="divbar">&nbsp;</div>
601</td></tr>
602</table></center>
603</form>
604}
605
606_messagefootnolink_ {
607<div class="divbar">&nbsp;</div>
608</td></tr>
609</table></center>
610</form>
611}
612
613#_delpermissioncontent_ {
614#_messagehead_
615#<p>
616#_textdelperm_
617#_messagefoot_
618#}
619
620#_delinvalidcontent_ {
621#_messagehead_
622#<p>
623#_textdelinv_
624#_messagefoot_
625#}
626
627#_delsuccesscontent_ {
628#_messagehead_
629#<p>
630#_textdelsuc_
631#_messagefoot_
632#}
633
634#_clonefailcontent_ {
635#_messagehead_
636#<input type=hidden name="bc1clone" value="0">
637#<p>_textclonefail_
638#_messagefoot_
639#}
640
641_genericcontent_ {
642_messagehead_
643<p>_textcolerr_
644_messagefoot_
645}
646
647_tmpfailcontent_ {
648_messagehead_
649<p>
650_texttmpfail_
651_messagefoot_
652}
653
654#_mkcolfailcontent_ {
655#_messagehead_
656#<p>_textmkcolfail_
657#_messagefoot_
658#}
659
660_nocollectioncontent_ {
661_messagehead_
662<p>_textnocontent_
663<br><a href="_httppagedepositor_">_textrestart_</a>
664<p>
665_messagefootnolink_
666}
667
668#_reloaderrorcontent_ {
669#_messagehead_
670#<p>_textreloaderror_
671#<br><a href="_httppagedepositor_">_textrestart_</a>
672#<p>
673#_messagefootnolink_
674#}
675
676_exptscriptextra_ {}
677
678#_exptsuccesscontent_ {
679#_messagehead_
680#<input type=hidden name=p value=existing>
681#<p>_textexptsuc_
682#_messagefoot_
683#}
684
685#_exptfailcontent_ {
686#_messagehead_
687#<input type=hidden name=p value=existing>
688#_textexptfail_
689#_messagefoot_
690#}
691
692#######################################################################
693# depositonly
694#######################################################################
695
696_depositonlyscriptextra_ {}
697
698_depositonlycontent_ {
699
700<center>
701<em>Thanks for using the Depositor! Cick <a href="_gwcgi_">here</a> to return to the Greenstone home page. </em>
702<table width=_pagewidth_>
703<tr><td>
704<div class="divbar">&nbsp;</div>
705<center><h2>_textstep3_</h2></center>
706<div class="divbar">&nbsp;</div>
707<p>Filename: _di1userfile_ </p>
708<p>Filesize: _di1userfilesize_ </p> 
709<div class="divbar">&nbsp;</div>
710</td></tr>
711<tr><td></td></tr>
712</table>
713</center>
714
715}
716
717###################################################
718## text macros that are defined by another package
719###################################################
720
721
722_textbsupdate1_ {_wizard:textbsupdate1_}
723_textbsupdate2_ {_wizard:textbsupdate2_}
724_textseconds_ {_wizard:textseconds_}
725
726_textbildsuc_ {_wizard:textbildsuc_}
727_textviewbildsummary_ {_wizard:textviewbildsummary_}
728
729_textview_ {_wizard:textview_}
730_textbild1_ {_wizard:textbild1_}
731
732_textbild2_ {_wizard:textbild2_}
733
734_textstopbuild_ {_wizard:textstopbuild_}
735
736_textbild3_ {_wizard:textbild3_}
737
738_textbuildcancelled_ {_wizard:textbuildcancelled_}
739
740_textbildcancel1_ {_wizard:textbildcancel1_}
741
742_textfailmsg11_ {_wizard:textfailmsg11_}
743_textfailmsg21_ {_wizard:textfailmsg21_}
744_textblcont_ {_wizard:textblcont_}
745
746_textfailmsg31_ {_wizard:textfailmsg31_}
747_textfailmsg41_ {_wizard:textfailmsg41_}
748_textfailmsg71_ {_wizard:textfailmsg71_}
Note: See TracBrowser for help on using the browser.