# this file must be UTF-8 encoded
package collector
_imagethispage_ {_textcollector_}
# _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_}
#######################################################################
# 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}
_httpview_ {_gwcgi_?a=p&p=about&c=_cgiargbc1dirname_}
#######################################################################
# intro
#######################################################################
_introscriptextra_ {}
_introcontent_ {
}
#######################################################################
# existing (Changing an existing collection page)
#######################################################################
_existingscriptextra_ {
function check\_submit (gotopage) \{
var form = document.collectorform;
if (gotopage == "srce") \{
form.bc1esrce.value = "1";
\}
if (gotopage == "conf") \{
form.bc1econf.value = "1";
\}
form.p.value = gotopage;
form.submit();
\}
function do\_delete () \{
var form = document.collectorform;
var i = form.bc1dirname.selectedIndex;
var del = confirm ("Confirm deletion of " + form.bc1dirname.options[i].value + " collection?");
if (del) \{
form.bc1dodelete.value = "1";
form.submit();
\}
\}
}
_changeexisting_ {
}
_existingcontent_ {
}
#######################################################################
# new (Create a new collection page)
#######################################################################
_newscriptextra_ {}
_newcontent_ {
_textcianc_
_texttsosn_
1.
_textinfo_
_textsin_
2.
_textsrce_
_textswts_
3.
_textconf_
_textatco_
4.
_textbild_
_textbtc_
5.
_textview_
_textpvyh_
_texttfsiw_
_textadab_
_textwyar_
_collectorbar_
}
#######################################################################
# info (Collection information page)
#######################################################################
_infoscriptextra_ {
function check\_submit (gotopage) \{
var form = document.collectorform;
if (form.bc1fullname.value.match(/^\\s*$/))
\{
alert("_textcnmbs_");
form.bc1fullname.focus();
return;
\}
else if (form.bc1contactemail.value.match(/^\\s*$/))
\{
alert("_texteambs_");
form.bc1contactemail.focus();
return;
\}
else if (!form.bc1contactemail.value.match(/^([^@]+)@(.+)$/))
\{
alert("_textpsea_");
form.bc1contactemail.focus();
return;
\}
else if (form.bc1aboutdesc.value.match(/^\\s*$/))
\{
alert("_textdocmbs_");
form.bc1aboutdesc.focus();
return;
\}
form.p.value = gotopage;
form.submit();
\}
}
_infocontent_ {
}
#######################################################################
# srce (Source data page)
#######################################################################
# _fullnamemenu is set from within the server. If it's empty there are
# no valid collections
_fullnamemenu_ {}
_srcescriptextra_ {
var selectedindex = _selectedindex_;
function check\_submit (gotopage) \{
var form = document.collectorform;
form.p.value = gotopage;
form.bc1fromsrce.value = "1";
form.submit();
\}
function menuchange () \{
var form = document.collectorform;
var warnlist = new Array (_warnindex_);
if (warnlist[form.bc1clonecol.selectedIndex] == 1) \{
alert ("The collection you are cloning has a non-standard input file\\n" +
"format, and/or uses metadata specified in auxiliary files. If your\\n" +
"new input lacks this information, some browsing facilities may not\\n" +
"work properly.");
\}
if (form.bc1clonecol.selectedIndex == 0) \{
form.bc1clone.value = "0";
\} else \{
form.bc1clone.value = "1";
\}
if (form.bc1clonecol.selectedIndex == selectedindex) \{
form.bc1clonechanged.value = "0";
\} else \{
form.bc1clonechanged.value = "1";
\}
\}
function more () \{
var form = document.collectorform;
form.bc1inputnum.value = parseInt(form.bc1inputnum.value) + 3;
form.p.value = "srce";
if (!form.action.match(/sources$/)) \{
form.action += "#sources";
\}
form.submit();
\}
}
_srcenew_ {