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

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