source: main/trunk/greenstone2/macros/depositdspace.dm@ 27014

Last change on this file since 27014 was 27014, checked in by ak19, 11 years ago

First commit for Dspace Depositor Clone (Institutional Repository) containing minor updates to Dr Bainbridge's code used in puka's custom gsdl-instrep installation (ir collection). The files in this commit work if you use the ds metadata set in your collection (DSpace might not use such a metadata set, and it might have been invented for the gsdl-instrep's ir collection). Turn this depositor on by replacing depositor.dm with depositdspace.dm in etc/main.cfg and depositing to a collection using a custom ds metadata set containing Title, Type, Language, Abstract, Sponsorship, Description, Author, Series, Identifier, Subject.

File size: 57.9 KB
Line 
1package depositor
2
3_imagethispage_ {<a href="_httppagedepositor_">The Depositor</a>}
4
5_httpjavascript_ {_httpprefix_/web/script}
6
7_httpchecksum_ {/greenstone/cgi-bin/checksum.pl}
8
9
10# _pagescriptextra_ will be set to the appropriate _***scriptextra_
11# macro from within the server
12_pagescriptextra_ {}
13
14_pagescriptfileextra_ {
15<script language="JavaScript" src="_httpjavascript_/domcore.js"></script>
16<script language="JavaScript" src="_httpjavascript_/xmlhttp.js"></script>
17
18<script language="JavaScript" src="_httpjavascript_/mimetype.js"></script>
19}
20
21
22_cssfilelinkextra_ {
23<link rel="stylesheet" href="_httpprefix_/web/style/dspacestyle.css">
24}
25
26_collectionspecificstyle_{}
27
28_Ximagecollection_ {<a href""><img
29 alt="Greenstone" src="_httpprefix_/web/images/logogreenstone.gif"
30 style="border: 0px solid ; width: 150px; height: 40px;"></a><a
31 href="http://mcgonagall.cs.waikato.ac.nz:8080/dspace/"><br></a>
32}
33
34_httptmp_ {_httpprefix_/tmp}
35
36_httpdspacehelp_{_gwcgi_?e=_compressedoptions_&a=p&p=dspacehelp}
37
38#######################################################################
39# steps
40
41_numsteps_ {6}
42
43_textstep1_ {Describe-1}
44_textstep2_ {Describe-2}
45_textstep3_ {Upload-1}
46_textstep4_ {Upload-2}
47_textstep5_ {Verify}
48_textstep6_ {License}
49
50_laststep_ {bild}
51_textlaststep_ {_textbild_}
52
53
54
55_textaddmore_ {Add More}
56_textnext_ {Next}
57_textprev_ {Previous}
58
59_textauthor_ {Author}
60_texttitle_ {Title}
61_textseriesrep_ {Series/Report No.}
62_textidentifiers_ {Identifiers}
63_textsubject_ {Subject Keywords}
64_textabstract_ {Abstract}
65_textsponsors_ {Sponsors}
66_textdescription_ {Description}
67
68
69_textlicense_ {
70
71You are free:
72
73 * to copy, distribute, display, and perform the work
74
75Under the following conditions:
76
77 * by Attribution -- you must attribute the work in the manner specified by
78 the author or licensor.
79
80 * Noncommercial -- you may not use this work for commercial purposes.
81
82 * Derivative Works -- You may not alter, transform, or build upon this
83 work without permission from the author or licensor
84
85For any reuse or distribution, you must make clear to others the license
86terms of this work.
87
88Any of these conditions can be waived if you get permission from the
89copyright holder.
90
91Your fair use and other rights are in no way affected by the above.
92
93This is a human-readable summary of the Legal Code (the full license),
94which is available at:
95
96 http://creativecommons.org/licenses/by-nc-nd/2.5/legalcode
97
98}
99
100
101
102_di1ds.Title_ {_If_("_:cgiargdi1ds.Title_" eq "_cgiargdi1ds.Title_",_cgiargdi1ds.Title_,)}
103
104_di1ds.Type_ {_If_("_:cgiargdi1ds.Type_" eq "_cgiargdi1ds.Type_",_cgiargdi1ds.Type_,)}
105
106_di1ds.Language_ {_If_("_:cgiargdi1ds.Language_" eq "_cgiargdi1ds.Language_",_cgiargdi1ds.Language_,)}
107
108_di1ds.Abstract_ {_If_("_:cgiargdi1ds.Abstract_" eq "_cgiargdi1ds.Abstract_",_cgiargdi1ds.Abstract_,)}
109
110_di1ds.Sponsorship_ {_If_("_:cgiargdi1ds.Sponsorship_" eq "_cgiargdi1ds.Sponsorship_",_cgiargdi1ds.Sponsorship_,)}
111
112_di1ds.Description_ {_If_("_:cgiargdi1ds.Description_" eq "_cgiargdi1ds.Description_",_cgiargdi1ds.Description_,)}
113
114
115
116_di1authornum_ {_If_("_:cgiargdi1authornum_" eq "_cgiargdi1authornum_",_cgiargdi1authornum_,)}
117_di1authorsplit_ {_If_("_:cgiargdi1authorsplit_" eq "_cgiargdi1authorsplit_",_cgiargdi1authorsplit_,)}
118_di1authorarray_ {_If_("_:cgiargdi1authorarray_" eq "_cgiargdi1authorarray_",_cgiargdi1authorarray_,)}
119
120_di1seriesrepnum_ {_If_("_:cgiargdi1seriesrepnum_" eq "_cgiargdi1seriesrepnum_",_cgiargdi1seriesrepnum_,)}
121_di1seriesrepsplit_ {_If_("_:cgiargdi1seriesrepsplit_" eq "_cgiargdi1seriesrepsplit_",_cgiargdi1seriesrepsplit_,)}
122_di1seriesreparray_ {_If_("_:cgiargdi1seriesreparray_" eq "_cgiargdi1seriesreparray_",_cgiargdi1seriesreparray_,)}
123
124_di1identifiernum_ {_If_("_:cgiargdi1identifiernum_" eq "_cgiargdi1identifiernum_",_cgiargdi1identifiernum_,)}
125_di1identifiersplit_ {_If_("_:cgiargdi1identifiersplit_" eq "_cgiargdi1identifiersplit_",_cgiargdi1identifiersplit_,)}
126_di1identifierarray_ {_If_("_:cgiargdi1identifierarray_" eq "_cgiargdi1identifierarray_",_cgiargdi1identifierarray_,)}
127
128_di1subjectnum_ {_If_("_:cgiargdi1subjectnum_" eq "_cgiargdi1subjectnum_",_cgiargdi1subjectnum_,)}
129_di1subjectsplit_ {_If_("_:cgiargdi1subjectsplit_" eq "_cgiargdi1subjectsplit_",_cgiargdi1subjectsplit_,)}
130_di1subjectarray_ {_If_("_:cgiargdi1subjectarray_" eq "_cgiargdi1subjectarray_",_cgiargdi1subjectarray_,)}
131
132
133_wizardscript_ {
134
135
136 function dspacehelp(anchor) \{
137
138 //alert("help = " + "_httpdspacehelp_");
139 var popupwin = window.open('_httpdspacehelp_#'+anchor,'dspacepopup','height=600,width=550,resizable,scrollbars');
140 if (window.focus) \{ popupwin.focus(); \}
141 \}
142
143
144
145
146 var addmore = new Array();
147
148 function wizmore(label, fieldid, num, split, width, strcallbacks)
149 \{
150
151 var callbacks = new Array();
152 for (i=0; i<strcallbacks.length; i++) \{
153 callbacks[i] = eval(strcallbacks[i]);
154 // callbacks in str array loose their quotes .. put back in
155 strcallbacks[i] = '"' + strcallbacks[i] + '"';
156 \}
157
158 var fieldtag = document.getElementById(fieldid);
159
160 // dig out enclosing table element
161 var trparent = fieldtag.parentNode;
162 var tabel;
163 if (trparent.nodeName != "TABLE") \{
164 // skip over thead, tbody, tfoot
165 tabel = trparent.parentNode;
166 \}
167 else \{
168 tabel = trparent;
169 \}
170
171 var row = fieldtag.rowIndex;
172
173 var fieldnum = get\_fieldid(fieldid,"num");
174
175 var startnum = fieldnum.value;
176
177 if (startnum == "") \{
178 // first time ever loaded
179 addmore.push(fieldid);
180 startnum = 0;
181 \}
182 else if (startnum >= num) \{
183 // revisiting page, use form recorded number
184 addmore.push(fieldid);
185 num = startnum;
186 startnum = 0;
187 \}
188
189 fieldnum.value = num;
190
191 var fieldsplit = get\_fieldid(fieldid,"split");
192 fieldsplit.value = split;
193
194 for (i=0; i<num; i++) \{
195
196 if (i<startnum) \{
197 // wipe out any exisiting 'more' links
198 var trnodes = trparent.getElementsByTagName('tr');
199 var tr = trnodes[row - startnum + i];
200 var tdnodes = tr.getElementsByTagName('td');
201
202 var td = tdnodes[split+1];
203
204 var tdempty = document.createElement('td');
205
206 tr.replaceChild(tdempty,td);
207
208 continue;
209 \}
210
211 var trel = tabel.insertRow(row - startnum +i);
212
213 if (i==0) \{
214 // Add in label on first line
215 var tdlab = document.createElement('td');
216 tdlab.setAttribute('class','submitFormLabel');
217 var tdlabtext = document.createTextNode(label);
218 tdlab.appendChild(tdlabtext);
219 trel.appendChild(tdlab);
220 \}
221 else \{
222 var tdlab = document.createElement('td');
223 trel.appendChild(tdlab);
224 \}
225
226 for (s=0; s<split; s++) \{
227 var tdform = document.createElement('td');
228 tdform.setAttribute('colspan',split-1);
229 var indiv = document.createElement('div');
230
231 var inform = callbacks[s](fieldid,i,s,width);
232
233 indiv.appendChild(inform);
234 tdform.appendChild(indiv);
235 trel.appendChild(tdform);
236 \}
237
238 if (i==num-1) \{
239 // add in "more" on last line
240 var tdmore = document.createElement('td');
241 trel.appendChild(tdmore);
242
243 var nextnum = parseInt(num)+1;
244 var morejs = 'wizmore("'+label+'","'+fieldid+'",'+nextnum+','+split+','+width+',['+strcallbacks+'])';
245
246 var amorebut = document.createElement('input');
247 amorebut.setAttribute('type','button');
248 amorebut.setAttribute('value','_textaddmore_');
249
250 //workaround for IE 5.x
251 if ((document.all) && (document.getElementById)) \{
252 amorebut.onclick = new Function(morejs);
253 \}
254 else \{
255 //amorebut.setAttribute('onclick',morejs);
256
257 var foo = new Function(morejs);
258
259 amorebut.addEventListener("click", foo ,false);
260
261 \}
262
263 tdmore.appendChild(amorebut);
264
265
266 \}
267 else \{
268 var tdmore = document.createElement('td');
269 trel.appendChild(tdmore);
270 \}
271
272 \}
273
274 \}
275
276
277 function comma\_decode(str)
278 \{
279 var newstr = str.replace(/\\%27/g,"'");
280
281 // the comma was already being decoded for dspace's deposit dm file
282 newstr = newstr.replace(/\\%2C/g,",");
283
284 return eval(newstr);
285 \}
286
287 function prevval(fieldid,row,split)
288 \{
289
290 var val = '';
291
292 var prevarray = get\_fieldid(fieldid,"array");
293 if (prevarray.value) \{
294
295 var prevvalarray = comma\_decode(prevarray.value);
296
297 var fieldnum = get\_fieldid(fieldid,"num");
298
299 var fieldsplit = get\_fieldid(fieldid,"split");
300 var num\_split = fieldsplit.value;
301
302 var pos = row*num\_split + split;
303 if (pos<prevvalarray.length) \{
304 val = prevvalarray[pos];
305 \}
306 \}
307
308 return val;
309 \}
310
311
312 function inputtext(fieldid,row,split,width)
313 \{
314 var inform = document.createElement('input');
315
316 var nameval = 'di1' + fieldid + '_' + row + '_'+split;
317
318 inform.setAttribute('name',nameval);
319 inform.setAttribute('id',nameval);
320
321 inform.setAttribute('size',width);
322 inform.setAttribute('type','text');
323
324 // work out if there are any existings values for input field
325
326 var val = prevval(fieldid,row,split);
327 inform.setAttribute('value',val);
328
329 return inform;
330
331 \}
332
333
334 function wizmoresimple(label, fieldid, num, width)
335 \{
336 var strcallbacks = new Array("inputtext");
337 wizmore(label,fieldid,num,1,width,strcallbacks);
338 \}
339
340
341
342 function wizmorepair(label, fieldid, num, width)
343 \{
344 var strcallbacks = new Array("inputtext", "inputtext");
345 wizmore(label,fieldid,num,2,width,strcallbacks);
346 \}
347
348
349 function wizmorecustompair(label, fieldid, num, width, strcallbacks)
350 \{
351 wizmore(label,fieldid,num,2,width,strcallbacks);
352 \}
353
354
355 function get\_fieldid (fid,suffix) \{
356
357 // dynamic input fields set by id, static input by form name
358 // try dynamic case first
359
360 var fieldstr = "di1"+fid+suffix;
361 var field = document.getElementById(fieldstr);
362
363 if (field == null) \{
364 // have static case ...
365 fieldstr = "document.depositorform.di1"+fid+suffix;
366 var field = eval(fieldstr);
367 \}
368
369 return field;
370 \}
371
372
373
374 function combine\_flat(array,num,split)
375 \{
376 var combine = new Array();
377
378 for (var n=0; n<num; n++) \{
379 for (var s=0; s<split; s++) \{
380 var val = array[n*split + s];
381 if (val != "") \{
382 combine.push(array[n*split + s]);
383 \}
384 \}
385 \}
386
387 return combine;
388 \}
389
390
391
392 function combine\_pair(array,num,split,mid)
393 \{
394 var combine = new Array();
395
396 for (var n=0; n<num; n++) \{
397 var basepos = n*split;
398 var pri = array[basepos];
399 var sec = array[basepos+1];
400
401 if ((pri != "") || (sec != "")) \{
402 var full\_comb = pri;
403 if (full\_comb != "") \{ full\_comb += mid; \}
404 full\_comb += sec;
405
406 combine.push(full\_comb);
407 \}
408 \}
409
410 return combine;
411 \}
412
413
414 function combine\_author(array,num,split)
415 \{
416 return combine\_pair(array,num,split,", ");
417 \}
418
419 function combine\_escauthor(array,num,split)
420 \{
421 return combine\_pair(array,num,split,"%2C ");
422 \}
423
424 function combine\_seriesrep(array,num,split)
425 \{
426 return combine\_pair(array,num,split,": ");
427 \}
428
429
430 function combine\_id(array,num,split)
431 \{
432 var combine = new Array();
433
434 for (var n=0; n<num; n++) \{
435 var basepos = n*split;
436 var prefix = array[basepos];
437 var val = array[basepos+1];
438
439 if (val != "") \{
440 combine.push(prefix + ": " + val);
441 \}
442 \}
443
444 return combine;
445 \}
446
447
448 function present\_combine(combarray)
449 \{
450
451 for (var i=0; i<combarray.length; i++) \{
452 document.write(combarray[i]+'<br>');
453 \}
454 \}
455
456
457 function present\_general(array,num,split,combinefn)
458 \{
459 if (num == "") \{
460 alert("Not multiple type");
461 document.write('<em>None</em>');
462 \}
463 else \{
464 var combarray = combinefn(array,num,split);
465
466 if (combarray.length==0) \{
467 document.write('<em>None</em>');
468 \}
469 else \{
470 present\_combine(combarray);
471 \}
472 \}
473 \}
474
475
476 function check\_submit (gotopage) \{
477
478 for (var i in addmore) \{
479
480 var fid = addmore[i];
481
482 var fieldnum = get\_fieldid(fid,"num");
483 var num = fieldnum.value;
484
485 var fieldsplit = get\_fieldid(fid,"split");
486 var split = fieldsplit.value;
487
488 var arraystr = "new Array(";
489 for (var n=0; n<num; n++) \{
490 for (var s=0; s<split; s++) \{
491 var fidns = get\_fieldid(fid,'_'+n+'_'+s);
492
493 if ((n>0) || (s>0)) \{
494 arraystr += ", ";
495 \}
496 arraystr += "'" + fidns.value + "'";
497 \}
498 \}
499
500 arraystr += ")";
501
502 var fieldarray = get\_fieldid(fid,"array");
503 fieldarray.value = arraystr;
504
505 var arrayval = fieldarray.value;
506
507 \}
508
509 var form = document.depositorform;
510 form.p.value = gotopage;
511 form.submit();
512 \}
513
514
515 function hidden\_field(label,val)
516 \{
517 var form = document.getElementById("depositorform");
518
519 if (val != "") \{
520 var inputel = document.createElement("input");
521 inputel.setAttribute("type","hidden");
522 inputel.setAttribute("name","di1md." + label);
523 inputel.setAttribute("value", val);
524
525 form.appendChild(inputel);
526 \}
527 \}
528
529
530 function hidden\_multifield(label,valarray)
531 \{
532 var form = document.getElementById("depositorform");
533
534 for (var i=0; i<valarray.length; i++) \{
535 var inputel = document.createElement("input");
536 inputel.setAttribute("type","hidden");
537 inputel.setAttribute("name","di1md." + label);
538 inputel.setAttribute("value", valarray[i]);
539
540 form.appendChild(inputel);
541 \}
542
543 \}
544
545}
546
547#######################################################################
548# icons
549
550_iconcross_ {<img src="_httpimg_/cross.gif">}
551_iconcross_ [v=1] {<b>no</b>}
552_icontick_ {<img src="_httpimg_/tick.gif">}
553_icontick_ [v=1] {<b>yes</b>}
554_iconblank_ {<img src="_httpimg_/blank.gif">}
555_iconblank_ [v=1] {}
556
557_imagemore_ {<a href="javascript:more()" onMouseover="roll('more',1);" onMouseOut="roll('more',0);"><img
558name="more" src="_httpimg_/moreof.gif" onLoad="gbutton(this,'_httpimg_/moreon.gif');" border=0 alt="_textmore_"
559title="_textmore_" align=top></a>}
560_imagemore_ [v=1] {_textmore_}
561
562_icongreyarrow_ {<img src="_httpimg_/grarrow.gif">}
563_icongreyuparrow_ {<img src="_httpimg_/guarrow.gif">}
564_iconstop_ {<img src="_httpimg_/stop.gif" border=0>}
565
566
567#######################################################################
568# http macros
569
570#_httpstep1_ {_gwcgi_?e=_compressedoptions_&p=step1}
571#_httpstep2_ {_gwcgi_?e=_compressedoptions_&p=step2}
572
573_httpinfo_ {_gwcgi_?e=_compressedoptions_&p=info}
574_httpsrce_ {_gwcgi_?e=_compressedoptions_&p=srce}
575_httpconf_ {_gwcgi_?e=_compressedoptions_&p=conf}
576_httpbild_ {_gwcgi_?e=_compressedoptions_&p=bild}
577_httpview_ {_gwcgi_?a=p&p=about&c=_cgiargdi1dirname_}
578_httpdel_ {javascript:do\_delete();}
579_httpexpt_ {_gwcgi_?e=_compressedoptions_&p=expt}
580
581#######################################################################
582# select // this really should be intro
583#######################################################################
584
585# _fullnamemenu_ has previous collection selected. Since there is no button
586# on this page to proceed, we reset the drop down box to have no collection
587# selected.
588_selectheader_ {_cgihead_
589_htmlhead_(class="bgimage" onLoad="initialize();")_startspacer_
590}
591
592
593_selectscriptextra_ {
594
595function initialize() \{
596 document.depositorform.di1dirname.value = "";
597\}
598
599function check\_submit (gotopage) \{
600 var form = document.depositorform;
601 form.p.value = gotopage;
602
603 // if 'dirname' given, then link to cgiarg c so collection specific macros work
604 if (form.di1dirname) \{
605 form.c.value = form.di1dirname.value;
606 \}
607
608 form.submit();
609\}
610
611function menuchange() \{
612
613 _buildtypearray_
614
615 var form = document.depositorform;
616
617 if (form.di1dirname.value == "") \{
618 alert("Please choose a collection first");
619 \}
620 else \{
621 var pos = form.di1dirname.selectedIndex;
622 var bt = buildtype[pos];
623 if (bt=="") \{ bt = "mg"; \}
624 form.di1buildtype.value = bt;
625
626 check\_submit('step1');
627 \}
628\}
629
630}
631
632_selectcontent_ {
633<form name="depositorform" method=post action="_gwcgi_">
634<input type=hidden name="e" value="_decodedcompressedoptions_">
635<input type=hidden name="p" value="intro">
636<input type=hidden name="c" value="">
637<input type=hidden name="di1buildtype" value="">
638
639<center>
640<table width=_pagewidth_>
641<tr><td>
642<div class="divbar">&nbsp;</div>
643<center><h2>_textselect_</h2></center>
644<div class="divbar">&nbsp;</div>
645
646<p> <em>_textselectcol_</em>
647
648<p>_fullnamemenu_<br><br>
649<div class="divbar">&nbsp;</div>
650</td></tr>
651</table>
652</center>
653</form>
654}
655
656
657#######################################################################
658# step0
659#######################################################################
660
661_step0scriptextra_ {
662
663_wizardscript_
664
665}
666
667
668_step0content_ {
669<form name="depositorform" method=post action="_gwcgi_" enctype="multipart/form-data">
670<input type=hidden name="e" value="_decodedcompressedoptions_">
671<input type=hidden name="p" value="step1">
672
673 <center>
674 <table class="submitProgressTable" border="0" cellpadding="0"
675 cellspacing="0">
676 <tbody>
677 <tr>
678 _depositorbar_
679 </tr>
680 </tbody>
681 </table>
682 </center>
683 <h1>Submit: Select collection<br>
684 </h1>
685 <p>Please select the collection you wish to submit a document
686to.&nbsp; Through the following sequence of pages, you will be asked to
687describe your document (Title, Author, and so forth), select the
688document in question, and then verify the details entered and whether
689to attach a license or not.<br>
690 </p>
691 <p>In the event the document you plan to submit consists of
692multiple files, please first archive them together with a software tool
693that is convenient to your computer platform (such as <span
694 style="font-style: italic;">zip</span> or <span
695 style="font-style: italic;">tar).</span><br>
696 </p>
697 <p>&nbsp;</p>
698 <input name="workspace_item_id" value="859" type="hidden"> <input
699 name="step" value="0" type="hidden">
700 <center>
701 <table border="0" width="80%">
702 <tbody>
703 <tr>
704 <td width="100%"> &nbsp; </td>
705 <td> <input name="submit_next" onClick="javascript:check\_submit('step1')" value="_textnext_ &gt;" type="button"> </td>
706 <td>&nbsp;&nbsp;&nbsp;</td>
707 </tr>
708 </tbody>
709 </table>
710 </center>
711
712
713
714</form>
715}
716
717#######################################################################
718# step1
719#######################################################################
720
721_step1scriptextra_ {
722
723
724
725 function idmenu(fieldid,row,split,width)
726 \{
727 var selectel = document.createElement('select');
728
729 var nameval = "di1" + fieldid + '_' + row + '_' + split;
730 selectel.setAttribute('name',nameval);
731 selectel.setAttribute('id',nameval);
732
733 var val = prevval(fieldid,row,split);
734
735 var issnopt = document.createElement('option');
736 issnopt.setAttribute('value','issn');
737 if (val == 'issn') \{
738 issnopt.setAttribute('selected','selected');
739 \}
740 var issntext = document.createTextNode('ISSN');
741 issnopt.appendChild(issntext);
742 selectel.appendChild(issnopt);
743
744 var otheropt = document.createElement('option');
745 otheropt.setAttribute('value','other');
746 if (val == 'other') \{
747 otheropt.setAttribute('selected','selected');
748 \}
749 var othertext = document.createTextNode('Other');
750 otheropt.appendChild(othertext);
751 selectel.appendChild(otheropt);
752
753 var ismnopt = document.createElement('option');
754 ismnopt.setAttribute('value','ismn');
755 if (val == 'ismn') \{
756 ismnopt.setAttribute('selected','selected');
757 \}
758 var ismntext = document.createTextNode('ISMN');
759 ismnopt.appendChild(ismntext);
760 selectel.appendChild(ismnopt);
761
762 var govdocopt = document.createElement('option');
763 govdocopt.setAttribute('value','govdoc');
764 if (val == 'govdoc') \{
765 govdocopt.setAttribute('selected','selected');
766 \}
767 var govdoctext = document.createTextNode('Gov\\'t Doc \#');
768 govdocopt.appendChild(govdoctext);
769 selectel.appendChild(govdocopt);
770
771 var uriopt = document.createElement('option');
772 uriopt.setAttribute('value','uri');
773 if (val == 'uri') \{
774 uriopt.setAttribute('selected','selected');
775 \}
776 var uritext = document.createTextNode('URI');
777 uriopt.appendChild(uritext);
778 selectel.appendChild(uriopt);
779
780 var isbnopt = document.createElement('option');
781 isbnopt.setAttribute('value','isbn');
782 if (val == 'isbn') \{
783 isbnopt.setAttribute('selected','selected');
784 \}
785 var isbntext = document.createTextNode('ISBN');
786 isbnopt.appendChild(isbntext);
787 selectel.appendChild(isbnopt);
788
789 return selectel;
790 \}
791
792_wizardscript_
793
794
795
796}
797
798
799_step1content_ {
800<form name="depositorform" method=post action="_gwcgi_" enctype="multipart/form-data">
801<input type=hidden name="e" value="_decodedcompressedoptions_">
802<input type=hidden name="p" value="step1">
803 <center>
804 <table class="submitProgressTable" border="0" cellpadding="0"
805 cellspacing="0">
806 <tbody>
807 <tr>
808 _depositorbar_
809 </tr>
810 </tbody>
811 </table>
812 </center>
813
814 <h1>Submit: Describe Your Item</h1>
815
816 <p>Please fill in the requested information about your
817submission below. In most browsers, you can use the tab key to move the
818cursor to the next input box or button, to save you having to use the
819mouse each time.
820
821 </p>
822 <center>
823 <table>
824 <tbody>
825 <tr>
826
827 <td colspan="4" class="submitFormHelp"> Enter the names
828of the authors of this item below. </td>
829 </tr>
830 <tr>
831 <td width="40%">&nbsp;</td>
832 <td class="submitFormDateLabel" width="5%">Last name<br>
833e.g. <strong>Smith</strong></td>
834 <td class="submitFormDateLabel" width="5%">First name(s)
835+ "Jr"<br>
836e.g. <strong>Donald Jr</strong></td>
837 <td width="40%">&nbsp;</td>
838 </tr>
839 <tr id="author">
840 <input type="hidden" name="di1authornum" value="_di1authornum_">
841 <input type="hidden" name="di1authorsplit" value="_di1authorsplit_">
842 <input type="hidden" name="di1authorarray" value="_di1authorarray_">
843 <script type="text/javascript">
844 wizmorepair("_textauthor_","author",3,23);
845 </script>
846
847 </tr>
848
849 <tr>
850 <td>&nbsp;</td>
851 <td colspan="2" width="5%">&nbsp;</td>
852 <td>&nbsp;</td>
853 </tr>
854 <tr>
855 <td colspan="4" class="submitFormHelp"> Enter the main
856title of the item. </td>
857 </tr>
858 <tr>
859 <td class="submitFormLabel">_texttitle_</td>
860 <td colspan="2"> <input name="di1ds.Title" size="50" value="_di1ds.Title_"
861 type="text"> </td>
862 <td>&nbsp;</td>
863 </tr>
864 <tr>
865 <td colspan="4">&nbsp;</td>
866 </tr>
867
868 <tr>
869 <td colspan="4" class="submitFormHelp"> Enter the series
870and number assigned to this item by your community. </td>
871 </tr>
872 <tr>
873 <td>&nbsp;</td>
874 <td class="submitFormDateLabel">Series Name</td>
875 <td class="submitFormDateLabel">Report or Paper No.</td>
876 <td>&nbsp;</td>
877 </tr>
878 <tr id="seriesrep">
879 <input type="hidden" name="di1seriesrepnum" value="_di1seriesrepnum_">
880 <input type="hidden" name="di1seriesrepsplit" value="_di1seriesrepsplit_">
881 <input type="hidden" name="di1seriesreparray" value="_di1seriesreparray_">
882
883 <script type="text/javascript">
884 wizmorepair("_textseriesrep_","seriesrep",1,23);
885 </script>
886 </tr>
887 <tr>
888 <td colspan="4">&nbsp;</td>
889 </tr>
890 <tr>
891 <td colspan="4" class="submitFormHelp"> If the item has
892any identification numbers or codes associated with it, please enter
893the types and the actual numbers or codes below. </td>
894 </tr>
895
896 <tr id="identifier">
897 <input type="hidden" name="di1identifiernum" value="_di1identifiernum_">
898 <input type="hidden" name="di1identifiersplit" value="_di1identifiersplit_">
899 <input type="hidden" name="di1identifierarray" value="_di1identifierarray_">
900
901 <script type="text/javascript">
902 var strcallbacks = new Array("idmenu", "inputtext");
903 wizmorecustompair("_textidentifiers_","identifier",1,23,strcallbacks);
904 </script>
905 </tr>
906
907
908 <tr>
909 <td colspan="4">&nbsp;</td>
910 </tr>
911 <tr>
912 <td colspan="4" class="submitFormHelp"> Select the
913type(s) of content you are submitting. To select more than one value in
914the list, you may have to hold down the "CTRL" or "Shift" key. </td>
915 </tr>
916 <tr>
917 <td class="submitFormLabel">Type</td>
918 <td colspan="2">
919 <select name="di1ds.Type" size="6" multiple="multiple">
920 <option>Animation</option>
921 <option>Article</option>
922 <option>Book</option>
923 <option>Book chapter</option>
924 <option>Dataset</option>
925 <option>Learning Object</option>
926 <option>Image</option>
927 <option>Image,3-D</option>
928 <option>Map</option>
929 <option>Musical Score</option>
930 <option>Plan or blueprint</option>
931 <option>Preprint</option>
932 <option>Presentation</option>
933 <option>Recording,acoustical</option>
934 <option>Recording,musical</option>
935 <option>Recording,oral</option>
936 <option>Software</option>
937 <option>Technical Report</option>
938 <option>Thesis</option>
939 <option>Video</option>
940 <option>Working Paper</option>
941 <option>Other</option>
942 </select>
943 </td>
944 <td>&nbsp;</td>
945 </tr>
946 <tr>
947 <td colspan="4">&nbsp;</td>
948 </tr>
949 <tr>
950 <td colspan="4" class="submitFormHelp">Select the
951language of the main content of the item. If the language
952does not appear in the list below, please select "Other". If the
953content does not really have a language (for example, if it is a
954dataset or an image) please select "N/A". </td>
955 </tr>
956 <tr>
957 <td class="submitFormLabel">Language</td>
958 <td colspan="2">
959 <select name="di1ds.Language">
960 <option value="">N/A</option>
961 <option value="en_US" _If_("_cgiargdi1ds.Language_" eq "en_US",selected)>English (United States)</option>
962 <option value="en" _If_("_cgiargdi1ds.Language_" eq "en",selected)>English</option>
963 <option value="es" _If_("_cgiargdi1ds.Language_" eq "es",selected)>Spanish</option>
964 <option value="de" _If_("_cgiargdi1ds.Language_" eq "de",selected)>German</option>
965 <option value="fr" _If_("_cgiargdi1ds.Language_" eq "fr",selected)>French</option>
966 <option value="it" _If_("_cgiargdi1ds.Language_" eq "it",selected)>Italian</option>
967 <option value="ja" _If_("_cgiargdi1ds.Language_" eq "ja",selected)>Japanese</option>
968 <option value="zh" _If_("_cgiargdi1ds.Language_" eq "zh",selected)>Chinese</option>
969 <option value="other" _If_("_cgiargdi1ds.Language_" eq "other",selected)>(Other)</option>
970 </select>
971 </td>
972 <td>&nbsp;</td>
973 </tr>
974 </tbody>
975 </table>
976
977
978 </center>
979 <p>&nbsp;</p>
980 <input name="workspace_item_id" value="859" type="hidden"> <input
981 name="step" value="1" type="hidden">
982 <center>
983 <table border="0" width="80%">
984 <tbody>
985 <tr>
986 <td width="100%">&nbsp;</td>
987 <td> <input name="submit_prev" onClick="javascript:check\_submit('select')" value="&lt; _textprev_" type="button"> </td>
988
989 <td> <input name="submit_next" onClick="javascript:check\_submit('step2')" value="_textnext_ &gt;" type="button"> </td>
990
991 <td>&nbsp;&nbsp;&nbsp;</td>
992 </tr>
993 </tbody>
994 </table>
995 </center>
996
997</form>
998}
999
1000
1001
1002
1003#######################################################################
1004# step2
1005#######################################################################
1006
1007_step2scriptextra_ {
1008
1009_wizardscript_
1010
1011}
1012
1013
1014_step2content_ {
1015<form name="depositorform" method=post action="_gwcgi_" enctype="multipart/form-data">
1016<input type=hidden name="e" value="_decodedcompressedoptions_">
1017<input type=hidden name="p" value="step2">
1018
1019 <center>
1020 <table class="submitProgressTable" border="0" cellpadding="0"
1021 cellspacing="0">
1022 <tbody>
1023 <tr>
1024 _depositorbar_
1025 </tr>
1026 </tbody>
1027 </table>
1028 </center>
1029
1030
1031 <h1>Submit: Describe Your Item</h1>
1032 <p>Please fill further information about your submission below.
1033 </p>
1034
1035 <center>
1036 <table>
1037 <tbody>
1038 <tr>
1039 <td colspan="3" class="submitFormHelp"> Enter appropriate
1040subject keywords or phrases below. </td>
1041 </tr>
1042
1043 <tr id="subject">
1044 <input type="hidden" name="di1subjectnum" value="_di1subjectnum_">
1045 <input type="hidden" name="di1subjectsplit" value="_di1subjectsplit_">
1046 <input type="hidden" name="di1subjectarray" value="_di1subjectarray_">
1047
1048 <script type="text/javascript">
1049 wizmorepair("_textsubject_","subject",1,23);
1050 </script>
1051 </tr>
1052 <tr>
1053 <td colspan="3">&nbsp;</td>
1054 </tr>
1055 <tr>
1056 <td colspan="3" class="submitFormHelp"> Enter the
1057abstract of the item below. </td>
1058 </tr>
1059 <tr>
1060 <td class="submitFormLabel">_textabstract_</td>
1061 <td colspan="3"> <textarea rows="8" cols="50"
1062 name="di1ds.Abstract" wrap="soft">_di1ds.Abstract_</textarea> </td>
1063 </tr>
1064 <tr>
1065 <td colspan="3">&nbsp;</td>
1066 </tr>
1067 <tr>
1068 <td colspan="3" class="submitFormHelp"> Enter the names
1069of any sponsors and/or funding codes in the box below. </td>
1070 </tr>
1071 <tr>
1072 <td class="submitFormLabel">Sponsors</td>
1073 <td colspan="3"> <textarea rows="3" cols="50"
1074 name="di1ds.Sponsorship" wrap="soft">_di1ds.Sponsorship_</textarea> </td>
1075 </tr>
1076 <tr>
1077 <td colspan="3">&nbsp;</td>
1078 </tr>
1079 <tr>
1080 <td colspan="3" class="submitFormHelp"> Enter any other
1081description or comments in this box. </td>
1082 </tr>
1083 <tr>
1084 <td class="submitFormLabel">_textdescription_</td>
1085 <td colspan="3"> <textarea rows="3" cols="50"
1086 name="di1ds.Description" wrap="soft">_di1ds.Description_</textarea> </td>
1087 </tr>
1088 </tbody>
1089 </table>
1090 </center>
1091 <p>&nbsp;</p>
1092 <input name="workspace_item_id" value="859" type="hidden"> <input
1093 name="step" value="2" type="hidden">
1094 <center>
1095 <table border="0" width="80%">
1096 <tbody>
1097 <tr>
1098 <td width="100%">&nbsp;</td>
1099 <td> <input name="submit_prev" onClick="javascript:check\_submit('step1')" value="&lt; _textprev_" type="button"> </td>
1100
1101 <td> <input name="submit_next" onClick="javascript:check\_submit('step3')" value="_textnext_ &gt;" type="button"> </td>
1102 <td>&nbsp;&nbsp;&nbsp;</td>
1103 </tr>
1104 </tbody>
1105 </table>
1106
1107 </center>
1108</form>
1109}
1110
1111
1112#######################################################################
1113# step3
1114#######################################################################
1115
1116_step3scriptextra_ {
1117
1118_wizardscript_
1119
1120}
1121
1122
1123_step3content_ {
1124<form name="depositorform" method=post action="_gwcgi_" enctype="multipart/form-data">
1125<input type=hidden name="e" value="_decodedcompressedoptions_">
1126<input type=hidden name="p" value="step3">
1127
1128 <center>
1129 <table class="submitProgressTable" border="0" cellpadding="0"
1130 cellspacing="0">
1131 <tbody>
1132 <tr>
1133 _depositorbar_
1134 </tr>
1135 </tbody>
1136 </table>
1137 </center>
1138
1139
1140 <h1>Submit: Upload a File</h1>
1141 <p>Please enter the name of the file on your local hard drive
1142corresponding to your item. If you click "Browse...", a new window will
1143appear in which you can locate and select the file on your local hard
1144drive.
1145 </p>
1146 <p class="submitFormHelp"><strong>Netscape users please note:</strong>
1147By default, the window brought up by clicking "Browse..." will only
1148display files of type HTML. If the file you are uploading isn't an HTML
1149file, you will need to select the option to display files of other
1150types.
1151 </p>
1152 <p class="submitFormHelp"><br>
1153 </p>
1154 <table align="center" border="0">
1155 <tbody>
1156 <tr>
1157 <td class="submitFormLabel"> Document File: </td>
1158 <td> <input size="40" name="di1userfileinfo" type="file"> </td>
1159 </tr>
1160 </tbody>
1161 </table>
1162 <input name="workspace_item_id" value="859" type="hidden"> <input
1163 name="step" value="102" type="hidden">
1164 <p>&nbsp;</p>
1165
1166 <center>
1167 <table border="0" width="80%">
1168 <tbody>
1169 <tr>
1170 <td width="100%">&nbsp;</td>
1171 <td> <input name="submit_prev" onClick="javascript:check\_submit('step2')" value="&lt; _textprev_" type="button"> </td>
1172
1173 <td> <input name="submit_next" onClick="javascript:check\_submit('step4')" value="_textnext_ &gt;" type="button"> </td>
1174
1175 <td>&nbsp;&nbsp;&nbsp;</td>
1176 </tr>
1177 </tbody>
1178 </table>
1179 </center>
1180</form>
1181
1182}
1183
1184
1185
1186#######################################################################
1187# step4
1188#######################################################################
1189
1190_step4scriptextra_ {
1191
1192_wizardscript_
1193
1194_externalscript_
1195
1196 function add\_checksum(filename)
1197 \{
1198 loadUrl("_httpchecksum_?filename="+filename,"pane1");
1199
1200 //setTimeout('override\_search\_action()',1000);
1201 \}
1202
1203}
1204
1205
1206_step4content_ {
1207<form name="depositorform" method=post action="_gwcgi_" enctype="multipart/form-data">
1208<input type=hidden name="e" value="_decodedcompressedoptions_">
1209<input type=hidden name="p" value="step4">
1210
1211 <center>
1212 <table class="submitProgressTable" border="0" cellpadding="0"
1213 cellspacing="0">
1214 <tbody>
1215 <tr>
1216 _depositorbar_
1217 </tr>
1218 </tbody>
1219 </table>
1220 </center>
1221
1222
1223 <h1>Submit: File Uploaded Successfully</h1>
1224 <p><strong>Your file was successfully uploaded.</strong></p>
1225 <p>Here are the details of the file you have uploaded. Please
1226check the details before going to the next step.
1227 </p>
1228 <table class="miscTable" align="center">
1229 <tbody>
1230 <tr>
1231 <th class="oddRowOddCol">File</th>
1232 <th class="oddRowEvenCol">Size</th>
1233 <th class="oddRowOddCol">File Format</th>
1234 <th class="oddRowEvenCol">Checksum</th>
1235 </tr>
1236 <tr>
1237 <td class="evenRowOddCol"><a
1238 href="_httptmp_/_cgiargdi1tmp_/_cgiargdi1timestamp_/_di1userfile_"
1239 target="_blank">_di1userfile_</a></td>
1240 <td class="evenRowEvenCol">_di1userfilesize_ bytes</td>
1241
1242 <td class="evenRowOddCol">
1243 <span id="lookupext"></span>
1244 <script type="text/javascript">
1245 var text = lookup_ext("_di1userfile_");
1246 var lookupext = document.getElementById('lookupext');
1247 lookupext.innerHTML = text;
1248 </script>
1249 </td>
1250 <td class="evenRowEvenCol">
1251 <span id="pane1">
1252
1253
1254 <a href="javascript:add\_checksum('tmp/_cgiargdi1tmp_/_cgiargdi1timestamp_/_di1userfile_')">calculate ...</a>
1255 </span>
1256 </td>
1257 </tr>
1258 </tbody>
1259 </table>
1260 <center>
1261 <p> <input name="submit_format_2009"
1262 value="Click here if this is the wrong format" type="submit"> </p>
1263 </center>
1264 <center>
1265 <p> <input name="submit_remove_2009"
1266 value="Click here if this is the wrong file" type="button" onClick="javascript:check\_submit('step3')"> </p>
1267 </center>
1268
1269 <br>
1270 <p class="uploadHelp">You can verify that the file has been
1271uploaded correctly by:</p>
1272 <ul class="uploadHelp">
1273 <li class="uploadHelp">Clicking on the filename above. This
1274will download the file in a new browser window, so that you can check
1275the contents.</li>
1276
1277 <li class="uploadHelp">The system can calculate a checksum
1278you can verify.
1279 <input name="submit_show_checksums" value="Show checksums"
1280 type="button" onClick="javascript:add\_checksum('tmp/_cgiargdi1tmp_/_cgiargdi1timestamp_/_di1userfile_')"></li>
1281
1282
1283
1284 </ul>
1285 <br>
1286 <input name="workspace_item_id" value="859" type="hidden"> <input
1287 name="step" value="101" type="hidden">
1288
1289
1290 <center>
1291 <table border="0" width="80%">
1292 <tbody>
1293 <tr>
1294 <td width="100%">&nbsp;</td>
1295 <td> <input name="submit_prev" onClick="javascript:check\_submit('step3')" value="&lt; _textprev_" type="button"> </td>
1296
1297 <td> <input name="submit_next" onClick="javascript:check\_submit('step5')" value="_textnext_ &gt;" type="button"> </td>
1298
1299 <td>&nbsp;&nbsp;&nbsp;</td>
1300 </tr>
1301 </tbody>
1302 </table>
1303 </center>
1304</form>
1305
1306}
1307
1308
1309#######################################################################
1310# step5
1311#######################################################################
1312
1313_step5scriptextra_ {
1314
1315_wizardscript_
1316
1317}
1318
1319
1320_step5content_ {
1321<form name="depositorform" method=post action="_gwcgi_" enctype="multipart/form-data">
1322<input type=hidden name="e" value="_decodedcompressedoptions_">
1323<input type=hidden name="p" value="step5">
1324
1325 <center>
1326 <table class="submitProgressTable" border="0" cellpadding="0"
1327 cellspacing="0">
1328 <tbody>
1329 <tr>
1330 _depositorbar_
1331 </tr>
1332 </tbody>
1333 </table>
1334 </center>
1335
1336 <h1>Submit: Verify Submission</h1>
1337 <p><strong>Not quite there yet,</strong> but nearly!</p>
1338 <p>Please spend a few minutes to examine what you've just
1339submitted below. If anything is wrong, please go back and correct it by
1340using the buttons next to the error, or by clicking on the progress bar
1341at the top of the page.
1342 </p>
1343 <p><strong>If everything is OK,</strong> please click the
1344"Next" button at the bottom of the page.</p>
1345 <p>You can safely check the files you've uploaded - a new
1346window will be opened to display them.</p>
1347 <table class="miscTable" align="center" width="80%">
1348 <tbody>
1349
1350 <tr>
1351 <td class="evenRowOddCol">
1352 <table>
1353 <tbody>
1354 <tr>
1355 <td width="100%">
1356 <table>
1357 <tbody>
1358 <tr>
1359 <td class="metadataFieldLabel">_textauthor_:</td>
1360 <td class="metadataFieldValue">
1361<script type="text/javascript">
1362
1363 var authornum = "_di1authornum_";
1364 var authorsplit = "_di1authorsplit_";
1365 var authorarray = comma\_decode("_di1authorarray_");
1366
1367 present\_general(authorarray,authornum,authorsplit,combine\_author);
1368
1369</script>
1370 </td>
1371 </tr>
1372 <tr>
1373 <td class="metadataFieldLabel">_texttitle_:</td>
1374 <td class="metadataFieldValue">
1375 _If_(_di1ds.Title_,_di1ds.Title_,<em>None</em>)
1376
1377 </td>
1378 </tr>
1379 <tr>
1380 <td class="metadataFieldLabel">_textseriesrep_:</td>
1381 <td class="metadataFieldValue">
1382<script type="text/javascript">
1383
1384 var seriesrepnum = "_di1seriesrepnum_";
1385 var seriesrepsplit = "_di1seriesrepsplit_";
1386 var seriesreparray = comma\_decode("_di1seriesreparray_");
1387
1388 present\_general(seriesreparray,seriesrepnum,seriesrepsplit,combine\_seriesrep);
1389
1390</script>
1391 </td>
1392 </tr>
1393 <tr>
1394 <td class="metadataFieldLabel">_textidentifiers_:</td>
1395 <td class="metadataFieldValue">
1396<script type="text/javascript">
1397
1398 var idnum = "_di1identifiernum_";
1399 var idsplit = "_di1identifiersplit_";
1400 var idarray = comma\_decode("_di1identifierarray_");
1401
1402 present\_general(idarray,idnum,idsplit,combine\_id);
1403
1404</script>
1405
1406 </td>
1407 </tr>
1408 <tr>
1409 <td class="metadataFieldLabel">Type:</td>
1410 <td class="metadataFieldValue">
1411 _If_(_di1ds.Type_,_di1ds.Type_,<em>None</em>)
1412
1413 </td>
1414 </tr>
1415 <tr>
1416 <td class="metadataFieldLabel">Language:</td>
1417 <td class="metadataFieldValue">
1418 _If_(_di1ds.Language_,_di1ds.Language_,<em>None</em>)
1419
1420</td>
1421 </tr>
1422 </tbody>
1423 </table>
1424 </td>
1425 <td valign="middle"> <input name="submit_jump_2"
1426 value="Correct one of these" onClick="javascript:check\_submit('step1')" type="button"> </td>
1427 </tr>
1428 </tbody>
1429 </table>
1430 </td>
1431 </tr>
1432 <tr>
1433 <td class="oddRowOddCol">
1434 <table>
1435 <tbody>
1436 <tr>
1437 <td width="100%">
1438 <table>
1439 <tbody>
1440 <tr>
1441 <td class="metadataFieldLabel">_textsubject_:</td>
1442 <td class="metadataFieldValue">
1443<script type="text/javascript">
1444
1445 var subnum = "_di1subjectnum_";
1446 var subsplit = "_di1subjectsplit_";
1447 var subarray = comma\_decode("_di1subjectarray_");
1448
1449 present\_general(subarray,subnum,subsplit,combine\_flat);
1450
1451</script>
1452
1453 </td>
1454 </tr>
1455 <tr>
1456 <td class="metadataFieldLabel">_textabstract_:</td>
1457 <td class="metadataFieldValue">
1458 _If_(_di1ds.Abstract_,_di1ds.Abstract_,<em>None</em>)
1459 </tr>
1460 <tr>
1461 <td class="metadataFieldLabel">_textsponsors_:</td>
1462 <td class="metadataFieldValue">
1463 _If_(_di1ds.Sponsorship_,_di1ds.Sponsorship_,<em>None</em>)
1464 </tr>
1465 <tr>
1466 <td class="metadataFieldLabel">_textdescription_:</td>
1467 <td class="metadataFieldValue">
1468 _If_(_di1ds.Description_,_di1ds.Description_,<em>None</em>)
1469 </tr>
1470 </tbody>
1471 </table>
1472 </td>
1473
1474 <td valign="middle"> <input name="submit_jump_3"
1475 value="Correct one of these" onClick="javascript:check\_submit('step2')" type="button"> </td>
1476 </tr>
1477 </tbody>
1478 </table>
1479 </td>
1480 </tr>
1481 <tr>
1482 <td class="evenRowOddCol">
1483 <table>
1484 <tbody>
1485 <tr>
1486 <td width="100%">
1487 <table>
1488 <tbody>
1489 <tr>
1490 <td class="metadataFieldLabel">Uploaded&nbsp;File:</td>
1491 <td class="metadataFieldValue"><a
1492 href="_httptmp_/_cgiargdi1tmp_/_cgiargdi1timestamp_/_cgiargdi1userfile_"
1493 target="_blank">_di1userfile_</a> - HTML
1494(Known) <br>
1495 </td>
1496 </tr>
1497 </tbody>
1498 </table>
1499 </td>
1500 <td align="right" valign="middle"> <input name="submit_jump_4"
1501 value="Upload a different file" onClick="javascript:check\_submit('step3')" type="button"> </td>
1502 </tr>
1503 </tbody>
1504 </table>
1505 </td>
1506 </tr>
1507 </tbody>
1508 </table>
1509 <input name="workspace_item_id" value="859" type="hidden"> <input
1510 name="step" value="4" type="hidden">
1511 <p>&nbsp;</p>
1512
1513
1514 <center>
1515 <table border="0" width="80%">
1516 <tbody>
1517 <tr>
1518 <td width="100%">&nbsp;</td>
1519 <td> <input name="submit_prev" onClick="javascript:check\_submit('step4')" value="&lt; _textprev_" type="button"> </td>
1520
1521 <td> <input name="submit_next" onClick="javascript:check\_submit('step6')" value="_textnext_ &gt;" type="button"> </td>
1522
1523 <td>&nbsp;&nbsp;&nbsp;</td>
1524 </tr>
1525 </tbody>
1526 </table>
1527 </center>
1528</form>
1529
1530}
1531
1532#######################################################################
1533# step6
1534#######################################################################
1535
1536_step6scriptextra_ {
1537
1538_wizardscript_
1539
1540}
1541
1542
1543_step6content_ {
1544<form id="depositorform" name="depositorform" method=post action="_gwcgi_" enctype="multipart/form-data">
1545<input type=hidden name="e" value="_decodedcompressedoptions_">
1546<input type=hidden name="p" value="step6">
1547
1548
1549<script type="text/javascript">
1550
1551
1552 hidden\_field("ds.Title", "_di1ds.Title_");
1553 hidden\_field("ds.Type", "_di1ds.Type_");
1554 hidden\_field("ds.Language", "_di1ds.Language_");
1555 hidden\_field("ds.Abstract", "_di1ds.Abstract_");
1556 hidden\_field("ds.Sponsorship","_di1ds.Sponsorship_");
1557 hidden\_field("ds.Description","_di1ds.Description_");
1558
1559 var authornum = "_di1authornum_";
1560 var authorsplit = "_di1authorsplit_";
1561 var authorarray = comma\_decode("_di1authorarray_");
1562 var combauthor = combine\_escauthor(authorarray,authornum,authorsplit);
1563 hidden\_multifield("ds.Author",combauthor);
1564
1565 var seriesrepnum = "_di1seriesrepnum_";
1566 var seriesrepsplit = "_di1seriesrepsplit_";
1567 var seriesreparray = comma\_decode("_di1seriesreparray_");
1568 var combseriesrep = combine\_seriesrep(seriesreparray,seriesrepnum,seriesrepsplit);
1569 hidden\_multifield("ds.Series",combseriesrep);
1570
1571 var idnum = "_di1identifiernum_";
1572 var idsplit = "_di1identifiersplit_";
1573 var idarray = comma\_decode("_di1identifierarray_");
1574 var combid = combine\_id(idarray,idnum,idsplit);
1575 hidden\_multifield("ds.Identifier",combid);
1576
1577
1578 var subnum = "_di1subjectnum_";
1579 var subsplit = "_di1subjectsplit_";
1580 var subarray = comma\_decode("_di1subjectarray_");
1581 var combsub = combine\_flat(subarray,subnum,subsplit);
1582 hidden\_multifield("ds.Subject",combsub);
1583
1584</script>
1585
1586
1587 <center>
1588 <table class="submitProgressTable" border="0" cellpadding="0"
1589 cellspacing="0">
1590 <tbody>
1591 <tr>
1592 _depositorbar_
1593 </tr>
1594 </tbody>
1595 </table>
1596 </center>
1597
1598 <h1>Submit: Grant DSpace Distribution License</h1>
1599 <p><strong>There is one last step:</strong> In order for
1600Greenstone to reproduce, translate and distribute your submission
1601worldwide, your agreement to the following terms is necessary. Please
1602take a moment to read the terms of this license, and click on one of
1603the buttons at the bottom of the page. By clicking on the "Grant
1604License" button, you indicate that you grant the following terms of the
1605license.
1606 </p>
1607 <p><strong>Not granting the license will not delete your
1608submission.</strong> Your item will remain in your "My DSpace" page.
1609You can then either remove the submission from the system, or agree to
1610the license later once any queries you might have are resolved.</p>
1611 <table class="miscTable" align="center">
1612 <tbody>
1613 <tr>
1614 <td class="oddRowEvenCol">
1615 <pre>_textlicense_</pre>
1616 </td>
1617 </tr>
1618 </tbody>
1619 </table>
1620 <input name="workspace_item_id" value="859" type="hidden"> <input
1621 name="step" value="6" type="hidden">
1622
1623 <center>
1624 <p><input name="submit_grant" value="I Grant the License"
1625 onClick="javascript:check\_submit('bild')"
1626 type="button"></p>
1627 <p><input name="submit_reject"
1628 value="I Do Not Grant the License" type="submit"></p>
1629 </center>
1630</form>
1631
1632}
1633
1634#######################################################################
1635# step7
1636#######################################################################
1637
1638_step7scriptextra_ {
1639
1640_wizardscript_
1641
1642}
1643
1644
1645_step7content_ {
1646<form name="depositorform" method=post action="_gwcgi_" enctype="multipart/form-data">
1647<input type=hidden name="e" value="_decodedcompressedoptions_">
1648<input type=hidden name="p" value="step7">
1649
1650 <center>
1651 <table class="submitProgressTable" border="0" cellpadding="0"
1652 cellspacing="0">
1653 <tbody>
1654 <tr>
1655 _depositorbar_
1656 </tr>
1657 </tbody>
1658 </table>
1659 </center>
1660
1661 <h1>Submit: Submission Complete!</h1>
1662 <p>Your submission will now go through the workflow process
1663designated for the collection to which you are submitting. You will
1664receive e-mail notification as soon as your submission has become a
1665part of the collection, or if for some reason there is a problem with
1666your submission. You can also check on the status of your submission by
1667going to the My DSpace page.</p>
1668 <p><a
1669 href="http://mcgonagall.cs.waikato.ac.nz:8080/dspace/mydspace">Go to
1670My DSpace</a></p>
1671 <p>&nbsp;</p>
1672
1673
1674</form>
1675
1676}
1677
1678
1679#######################################################################
1680# bild (main frameset for build page)
1681#######################################################################
1682
1683_bildcontent_ {
1684<html>
1685<head>
1686<!--
1687<script>
1688function check\_submit (gotopage) \{
1689 var form = document.depositorform;
1690 form.p.value = gotopage;
1691 form.submit();
1692\}
1693</script>
1694-->
1695</head>
1696
1697<form name="depositorform" method=post action="_gwcgi_">
1698<input type=hidden name="e" value="_decodedcompressedoptions_">
1699<input type=hidden name="p" value="_cgiargp_">
1700
1701<frameset rows="*,160" border=0>
1702 <noframes><body bgcolor="#ffffff">
1703 <p>You must have a frame enabled browser to obtain feedback
1704 on how the building process is progressing. The collection <i>will</i>
1705 continue to build as normal however.</p>
1706
1707 <table>
1708 <tr valign=center><td>
1709 To stop the building process at any time, click here.
1710 <br>The collection you are working on will remain intact.
1711 </td>
1712 <td><input type="submit" value="stop building"></td>
1713 </table>
1714
1715 </body>
1716 </noframes>
1717 <frame src="_gwcgi_?e=_compressedoptions_&p=bildframe1">
1718 <frame src="_gwcgi_?e=_compressedoptions_&p=bildstatus">
1719</frameset>
1720</html>
1721}
1722
1723#######################################################################
1724# bildframe1
1725#######################################################################
1726
1727# header overridden to allow base target to be set
1728
1729_bildframe1header_ {_cgihead_
1730<html>
1731<head>
1732<base target=_top>
1733<title>_pagetitle_</title>
1734_globalscripts_
1735_cssheader_
1736</head>
1737<body class="bgimage">
1738_startspacer__pagebanner_
1739}
1740
1741
1742_bildframe1header_[v=1] {_cgihead_
1743<html>
1744<head>
1745<base target=_top>
1746<title>_pagetitle_</title>
1747_globalscripts_
1748</head>
1749<body class="bgimage">
1750_pagebanner_
1751}
1752
1753_bildframe1scriptextra_ {}
1754
1755_bildframe1content_ {
1756<form name="depositorform" method=post action="_gwcgi_">
1757<input type=hidden name="e" value="_decodedcompressedoptions_">
1758<input type=hidden name="p" value="bildcancel">
1759
1760<center>
1761<table width=_pagewidth_>
1762<tr><td>
1763<div class="divbar">&nbsp;</div>
1764<center>
1765<h2>_textbild_</h2>
1766</center>
1767<div class="divbar">&nbsp;</div>
1768<p>
1769_depositor:textbild1_
1770<p>
1771
1772<table>
1773<tr valign=center><td>
1774_depositor:textbild2_
1775</td>
1776<td><input type="submit" value="_depositor:textstopbuild_"></td>
1777</table>
1778
1779<p>
1780_depositor:textbild3_
1781</td></tr>
1782</table></center>
1783</form>
1784}
1785
1786
1787#######################################################################
1788# bildcancel
1789#######################################################################
1790
1791_bildcancelscriptextra_ {
1792function check\_submit (gotopage) \{
1793 var form = document.depositorform;
1794 form.p.value = gotopage;
1795 form.submit();
1796\}
1797}
1798_bildcancelcontent_ {
1799<form name="depositorform" method=post action="_gwcgi_">
1800<input type=hidden name="e" value="_decodedcompressedoptions_">
1801<input type=hidden name="p" value="_cgiargp_">
1802
1803</form>
1804<center>
1805<table width=_pagewidth_>
1806<tr><td>
1807<div class="divbar">&nbsp;</div>
1808<center>
1809<h2>_depositor:textbuildcancelled_</h2>
1810</center>
1811<div class="divbar">&nbsp;</div>
1812<p>
1813_depositor:textbildcancel1_
1814<p><center>
1815_depositorbar_
1816</center>
1817
1818</td></tr>
1819</table></center>
1820}
1821
1822
1823#######################################################################
1824# bildstatus
1825#######################################################################
1826
1827# special header for status page
1828_bildstatusheader_ {_cgihead_
1829_htmlhead_(class="bgimage" onLoad="initialize();")_startspacer_
1830}
1831_bildstatusheader_[v=1] {_cgihead_
1832_htmlhead_(onLoad="initialize();")
1833}
1834
1835_bildstatusscriptextra_ {
1836var timer = 5;
1837function initialize() \{
1838 setTimeout("count_down()",1000);
1839\}
1840
1841function count_down() \{
1842 if (timer==0) \{
1843 window.status = "";
1844 document.depositorform.submit();
1845 \} else \{
1846 if (timer==1) \{
1847 window.status = "_textbsupdate1_";
1848 \} else \{
1849 window.status = "_textbsupdate2_ "+timer+" _textseconds_";
1850 \}
1851 timer--;
1852 setTimeout("count_down()",1000);
1853 \}
1854\}
1855}
1856
1857_bildstatuscontent_ {
1858<form name="depositorform" method=post action="_gwcgi_">
1859<input type=hidden name="e" value="_decodedcompressedoptions_">
1860
1861<center>
1862<table width=_pagewidth_>
1863<tr><td><center>
1864_statusline_
1865</center>
1866</td></tr>
1867</table></center>
1868</form>
1869}
1870
1871
1872#######################################################################
1873# bilddone
1874#######################################################################
1875
1876_bilddoneheader_ {_cgihead_
1877_htmlhead_(class="bgimage")_startspacer_
1878}
1879_bilddonescriptextra_ {
1880
1881function check\_submit (gotopage) \{
1882 var form = document.depositorform;
1883 form.p.value = gotopage;
1884 form.submit();
1885\}
1886
1887}
1888
1889
1890_bilddonecontent_ {
1891<center>
1892<table width=_pagewidth_>
1893<tr><td>
1894<p>_textbildsuc_
1895
1896<p>_textviewbildsummary_
1897
1898<p><center>
1899_depositorbar_
1900</center>
1901
1902</td></tr>
1903</table></center>
1904}
1905
1906
1907#######################################################################
1908# bildfail
1909#######################################################################
1910
1911_bildfailheader_ {_cgihead_
1912_htmlhead_(class="bgimage")_startspacer_
1913}
1914_bildfailscriptextra_ {
1915function check\_submit (gotopage) \{
1916 var form = document.depositorform;
1917 form.p.value = gotopage;
1918 form.submit();
1919\}
1920}
1921_bildfailcontent_ {
1922<form name="depositorform" method=post action="_gwcgi_">
1923<input type=hidden name="e" value="_decodedcompressedoptions_">
1924<input type=hidden name="p" value="_cgiargp_">
1925
1926</form>
1927
1928<table width=_pagewidth_>
1929<tr><td>
1930_textfailmsg_
1931</td></tr>
1932<tr><td>
1933</td></tr>
1934</table></center>
1935}
1936
1937# _textfailmsg_ will be set to one of the following macros from within
1938# the server
1939
1940_textfailmsg1_ {
1941_textfailmsg11_
1942<p><center>
1943_depositorbar_
1944</center>
1945}
1946
1947_textfailmsg6_ {_textfailmsg1_}
1948
1949_textfailmsg2_ {
1950_textfailmsg21_
1951<p>_textblcont_
1952<p>_faillog_
1953<p>_texttryagain_
1954}
1955
1956_textfailmsg3_ {
1957_textfailmsg31_
1958<p>_textblcont_
1959<p>_faillog_
1960<p>_texttryagain_
1961}
1962
1963_textfailmsg4_ {
1964_textfailmsg41_
1965<p>_textblcont_
1966<p>_faillog_
1967}
1968
1969_textfailmsg5_ {_textfailmsg4_}
1970
1971_textfailmsg7_ {
1972_textfailmsg71_
1973<p>_texttryagain_
1974}
1975
1976#######################################################################
1977# Error and message pages
1978#######################################################################
1979
1980_messagehead_ {
1981<form name="depositorform" method=post action="_gwcgi_">
1982<input type=hidden name="e" value="_decodedcompressedoptions_">
1983
1984<center>
1985<table width=_pagewidth_>
1986<tr><td>
1987<div class="divbar">&nbsp;</div>
1988}
1989
1990_messagefoot_ {
1991<p>
1992<a href="javascript:document.depositorform.submit();">_textretcoll_</a>
1993<div class="divbar">&nbsp;</div>
1994</td></tr>
1995</table></center>
1996</form>
1997}
1998
1999_messagefootnolink_ {
2000<div class="divbar">&nbsp;</div>
2001</td></tr>
2002</table></center>
2003</form>
2004}
2005
2006#_delpermissioncontent_ {
2007#_messagehead_
2008#<p>
2009#_textdelperm_
2010#_messagefoot_
2011#}
2012
2013#_delinvalidcontent_ {
2014#_messagehead_
2015#<p>
2016#_textdelinv_
2017#_messagefoot_
2018#}
2019
2020#_delsuccesscontent_ {
2021#_messagehead_
2022#<p>
2023#_textdelsuc_
2024#_messagefoot_
2025#}
2026
2027#_clonefailcontent_ {
2028#_messagehead_
2029#<input type=hidden name="bc1clone" value="0">
2030#<p>_textclonefail_
2031#_messagefoot_
2032#}
2033
2034_genericcontent_ {
2035_messagehead_
2036<p>_textcolerr_
2037_messagefoot_
2038}
2039
2040_tmpfailcontent_ {
2041_messagehead_
2042<p>
2043_texttmpfail_
2044_messagefoot_
2045}
2046
2047#_mkcolfailcontent_ {
2048#_messagehead_
2049#<p>_textmkcolfail_
2050#_messagefoot_
2051#}
2052
2053_nocollectioncontent_ {
2054_messagehead_
2055<p>_textnocontent_
2056<br><a href="_httppagedepositor_">_textrestart_</a>
2057<p>
2058_messagefootnolink_
2059}
2060
2061#_reloaderrorcontent_ {
2062#_messagehead_
2063#<p>_textreloaderror_
2064#<br><a href="_httppagedepositor_">_textrestart_</a>
2065#<p>
2066#_messagefootnolink_
2067#}
2068
2069_exptscriptextra_ {}
2070
2071#_exptsuccesscontent_ {
2072#_messagehead_
2073#<input type=hidden name=p value=existing>
2074#<p>_textexptsuc_
2075#_messagefoot_
2076#}
2077
2078#_exptfailcontent_ {
2079#_messagehead_
2080#<input type=hidden name=p value=existing>
2081#_textexptfail_
2082#_messagefoot_
2083#}
2084
2085#######################################################################
2086# depositonly
2087#######################################################################
2088
2089_depositonlyscriptextra_ {}
2090
2091_depositonlycontent_ {
2092
2093<center>
2094<em>Thanks for using the Depositor! Cick <a href="_gwcgi_">here</a> to return to the Greenstone home page. </em>
2095<table width=_pagewidth_>
2096<tr><td>
2097<div class="divbar">&nbsp;</div>
2098<center><h2>_textstep3_</h2></center>
2099<div class="divbar">&nbsp;</div>
2100<p>_textfilename_: _di1userfile_ </p>
2101<p>_textfilesize_: _di1userfilesize_ </p>
2102<div class="divbar">&nbsp;</div>
2103</td></tr>
2104<tr><td></td></tr>
2105</table>
2106</center>
2107
2108}
2109
2110###################################################
2111## text macros that are defined by another package
2112###################################################
2113
2114
2115_textbsupdate1_ {_wizard:textbsupdate1_}
2116_textbsupdate2_ {_wizard:textbsupdate2_}
2117_textseconds_ {_wizard:textseconds_}
2118
2119_textbildsuc_ {_wizard:textbildsuc_}
2120_textviewbildsummary_ {_wizard:textviewbildsummary_}
2121
2122_textview_ {_wizard:textview_}
2123_textbild1_ {_wizard:textbild1_}
2124
2125_textbild2_ {_wizard:textbild2_}
2126
2127_textstopbuild_ {_wizard:textstopbuild_}
2128
2129_textbild3_ {_wizard:textbild3_}
2130
2131_textbuildcancelled_ {_wizard:textbuildcancelled_}
2132
2133_textbildcancel1_ {_wizard:textbildcancel1_}
2134
2135_textfailmsg11_ {_wizard:textfailmsg11_}
2136_textfailmsg21_ {_wizard:textfailmsg21_}
2137_textblcont_ {_wizard:textblcont_}
2138
2139_textfailmsg31_ {_wizard:textfailmsg31_}
2140_textfailmsg41_ {_wizard:textfailmsg41_}
2141_textfailmsg71_ {_wizard:textfailmsg71_}
Note: See TracBrowser for help on using the repository browser.