# 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_
_depositorbar_
}
#######################################################################
# bildstatus
#######################################################################
# special header for status page
_bildstatusheader_ {_cgihead_
_htmlhead_(class="bgimage" onLoad="initialize();")_startspacer_
}
_bildstatusheader_[v=1] {_cgihead_
_htmlhead_(onLoad="initialize();")
}
_bildstatusscriptextra_ {
var timer = 5;
function initialize() \{
setTimeout("count_down()",1000);
\}
function count_down() \{
if (timer==0) \{
window.status = "";
document.depositorform.submit();
\} else \{
if (timer==1) \{
window.status = "_textbsupdate1_";
\} else \{
window.status = "_textbsupdate2_ "+timer+" _textseconds_";
\}
timer--;
setTimeout("count_down()",1000);
\}
\}
}
_bildstatuscontent_ {
}
#######################################################################
# bilddone
#######################################################################
_bilddoneheader_ {_cgihead_
_htmlhead_(class="bgimage")_startspacer_
}
_bilddonescriptextra_ {
function check\_submit (gotopage) \{
var form = document.depositorform;
form.p.value = gotopage;
form.submit();
\}
}
_bilddonecontent_ {
_textbildsuc_
_textviewbildsummary_
_depositorbar_
}
#######################################################################
# bildfail
#######################################################################
_bildfailheader_ {_cgihead_
_htmlhead_(class="bgimage")_startspacer_
}
_bildfailscriptextra_ {
function check\_submit (gotopage) \{
var form = document.depositorform;
form.p.value = gotopage;
form.submit();
\}
}
_bildfailcontent_ {
_textfailmsg_
}
# _textfailmsg_ will be set to one of the following macros from within
# the server
_textfailmsg1_ {
_textfailmsg11_