# this file must be UTF-8 encoded package depositor _imagethispage_ {_textdepositor_} # _pagescriptextra_ will be set to the appropriate _***scriptextra_ # macro from within the server _pagescriptextra_ {} # a plain header for those pages that need it (the _pagebanner_ macro # will be set to this by the server for those pages. _plainbanner_ {} # dont want links to help" or "preferences" pages from within # collector _globallinks_ {_homelink_} # metadata fields that will be displayed in the step1 page, # this is determined by the depositormetadata macro defined in the collection's collect.cfg _metadataconf_ {var DepositorMDFields = new Array();} # store any existing metadata values _cachedmetadatavalues_ {var CachedMDValues = new Array();} ####################################################################### # steps _numsteps_ {3} # clashes with general text (in english2.dm) about what to do at this stage # now it doesn't appear in wizard bar, is it needed? ##_textselect_ {The Depositor} _textstep1_ {_textmeta_} _textstep2_ {_textintro_} _textstep3_ {_textconfirm_} _laststep_ {bild} _textlaststep_ {_textbild_} ####################################################################### # icons _iconcross_ {} _iconcross_ [v=1] {no} _icontick_ {} _icontick_ [v=1] {yes} _iconblank_ {} _iconblank_ [v=1] {} _imagemore_ {} _imagemore_ [v=1] {_textmore_} _icongreyarrow_ {} _icongreyuparrow_ {} _iconstop_ {} ####################################################################### # http macros _httpinfo_ {_gwcgi_?e=_compressedoptions_&p=info} _httpsrce_ {_gwcgi_?e=_compressedoptions_&p=srce} _httpconf_ {_gwcgi_?e=_compressedoptions_&p=conf} _httpbild_ {_gwcgi_?e=_compressedoptions_&p=bild} _httpview_ {_gwcgi_?a=p&p=about&c=_cgiargdi1dirname_} _httpdel_ {javascript:do\_delete();} _httpexpt_ {_gwcgi_?e=_compressedoptions_&p=expt} ####################################################################### # select // this really should be intro ####################################################################### # _fullnamemenu_ has previous collection selected. Since there is no button # on this page to proceed, we reset the drop down box to have no collection # selected. _selectheader_ {_cgihead_ _htmlhead_(class="bgimage" onLoad="initialize();")_startspacer_ } _selectscriptextra_ { function initialize() \{ document.depositorform.di1dirname.value = ""; \} function check\_submit (gotopage) \{ var form = document.depositorform; form.p.value = gotopage; // if 'dirname' given, then link to cgiarg c so collection specific macros work if (form.di1dirname) \{ form.c.value = form.di1dirname.value; \} form.submit(); \} function menuchange() \{ _buildtypearray_ var form = document.depositorform; if (form.di1dirname.value == "") \{ alert("Please choose a collection first"); \} else \{ var pos = form.di1dirname.selectedIndex; var bt = buildtype[pos]; if (bt=="") \{ bt = "mg"; \} form.di1buildtype.value = bt; check\_submit('step1'); \} \} } _selectcontent_ {
} ####################################################################### # step 1 ####################################################################### #here goes the "memorization" macros for each form field. #_di1md.Title_ {_If_("_:cgiargdi1md.Title_" eq "_cgiargdi1md.Title_",_cgiargdi1md.Title_,)} #_di1md.Creator_ {_If_("_:cgiargdi1md.Creator_" eq "_cgiargdi1md.Creator_",_cgiargdi1md.Creator_,)} #_di1md.Description_ {_If_("_:cgiargdi1md.Description_" eq "_cgiargdi1md.Description_",_cgiargdi1md.Description_,)} #_di1md.Subject_ {_If_("_:cgiargdi1md.Subject_" eq "_cgiargdi1md.Subject_",_cgiargdi1md.Subject,)} _step1scriptextra_ { _metadataconf_ _cachedmetadatavalues_ function loadForm() \{ var formcontainer = document.getElementById('formcontainer'); if (!formcontainer) \{ return; \} for (i=0; i < DepositorMDFields.length; i++) \{ if (DepositorMDFields[i]==null) \{ continue; \} metadataField = DepositorMDFields[i]; var labelCell = document.createElement("td"); labelCell.innerHTML = metadataField.label + ": "; labelCell.setAttribute("title", metadataField.tooltip); var cachedValue; if(CachedMDValues[0] !=null && CachedMDValues[0]["di1md." + metadataField.name])\{ cachedValue = CachedMDValues[0]["di1md." + metadataField.name]; \} else \{ cachedValue = ""; \} var inputObj; if (metadataField.type=="text") \{ inputObj = document.createElement("input"); inputObj.setAttribute("type","text"); inputObj.setAttribute("size","74"); inputObj.setAttribute("value", cachedValue); \} else if (metadataField.type=="textarea") \{ inputObj = document.createElement("textarea"); inputObj.setAttribute("rows","5"); inputObj.setAttribute("cols", "40"); inputObj.innerHTML = cachedValue; \} inputObj.setAttribute("name", "di1md."+ metadataField.name); var inputCell = document.createElement("td"); inputCell.appendChild(inputObj); var entry = document.createElement("tr"); entry.appendChild(labelCell); entry.appendChild(inputCell); formcontainer.appendChild(entry); \} \} function check\_submit (gotopage) \{ var form = document.depositorform; form.p.value = gotopage; form.submit(); \} if (window.addEventListener) window.addEventListener("load", loadForm, false); else if (window.attachEvent) window.attachEvent("onload", loadForm); } _step1content_ { } ####################################################################### # step 2 ####################################################################### _userfile_ {_If_("_:cgiargdi1userfile_" eq "_cgiargdi1userfile_",_cgiargdi1userfile_,)} _step2scriptextra_ { function check\_submit (gotopage) \{ var form = document.depositorform; form.p.value = gotopage; form.submit(); \} } _step2content_ { } ####################################################################### # step 3 ####################################################################### #here goes the "memorization" macros for each form field. #_di1_ {_If_("_:cgiargdi1md.Title_" eq "_cgiargdi1md.Title_",_cgiargdi1md.Title_,)} #_di1md.Creator_ {_If_("_:cgiargdi1md.Creator_" eq "_cgiargdi1md.Creator_",_cgiargdi1md.Creator_,)} _step3scriptextra_ { function check\_submit (gotopage) \{ var form = document.depositorform; form.p.value = gotopage; form.submit(); \} } _step3content_ { } ####################################################################### # bild (main frameset for build page) ####################################################################### _bildcontent_ { } ####################################################################### # bildcancel ####################################################################### _bildcancelscriptextra_ { function check\_submit (gotopage) \{ var form = document.depositorform; form.p.value = gotopage; form.submit(); \} } _bildcancelcontent_ {
_depositor:textbuildcancelled__depositor:textbildcancel1_ |
_textbildsuc_ _textviewbildsummary_ |
_textfailmsg_ |
_textblcont_
_faillog_
_texttryagain_ } _textfailmsg3_ { _textfailmsg31_
_textblcont_
_faillog_
_texttryagain_ } _textfailmsg4_ { _textfailmsg41_
_textblcont_
_faillog_ } _textfailmsg5_ {_textfailmsg4_} _textfailmsg7_ { _textfailmsg71_
_texttryagain_ } ####################################################################### # Error and message pages ####################################################################### _messagehead_ {
} _messagefootnolink_ { } #_delpermissioncontent_ { #_messagehead_ ##_textdelperm_ #_messagefoot_ #} #_delinvalidcontent_ { #_messagehead_ #
#_textdelinv_ #_messagefoot_ #} #_delsuccesscontent_ { #_messagehead_ #
#_textdelsuc_ #_messagefoot_ #} #_clonefailcontent_ { #_messagehead_ # #
_textclonefail_ #_messagefoot_ #} _genericcontent_ { _messagehead_
_textcolerr_ _messagefoot_ } _tmpfailcontent_ { _messagehead_
_texttmpfail_ _messagefoot_ } #_mkcolfailcontent_ { #_messagehead_ #
_textmkcolfail_ #_messagefoot_ #} _nocollectioncontent_ { _messagehead_
_textnocontent_
_textrestart_
_messagefootnolink_ } #_reloaderrorcontent_ { #_messagehead_ #
_textreloaderror_
#
_textrestart_
#
#_messagefootnolink_ #} _exptscriptextra_ {} #_exptsuccesscontent_ { #_messagehead_ # #
_textexptsuc_ #_messagefoot_ #} #_exptfailcontent_ { #_messagehead_ # #_textexptfail_ #_messagefoot_ #} ####################################################################### # depositonly ####################################################################### _depositonlyscriptextra_ {} _depositonlycontent_ {
_textstep3__textfilename_: _di1userfile_ _textfilesize_: _di1userfilesize_ |