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

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

Now depositdspace uses dc meta fields instead of ds meta fields for those fields that are common to both metadata sets, and ds meta fields are only used for those fields that are unique to the ds meta set (Series, Sponsorship, Abstract).

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