}
_existingcontent_ {
}
#######################################################################
# Creating a new collection page
_newscriptextra_ {}
_newcontent_ {
_iconblankbar_
Creating a new collection
_iconblankbar_
The sequence of steps needed to create a new digital library collection is:
1.
_iconncinfoof_
Specify its name (and associated information)
2.
_iconncsrceof_
Specify where the source data comes from
3.
_iconncconfof_
Adjust the configuration options (advanced users only)
4.
_iconncbildof_
"Build" the collection (see below)
5.
_iconncviewof_
Proudly view your handiwork.
The fourth step is where the computer does all the work. In the "building"
process the computer makes all the indexes and gathers together any other
information that is required to make things work. But first you have to
specify the information.
_iconblankbar_
A diagram appears below that will help you keep track of where you are. The
green button is the one that you click to carry on in the sequence. As you go
through the sequence, the buttons will change to yellow. You can return to a
previous page by clicking on the corresponding yellow button in the diagram.
When you are ready, click the green "collection information" button to
begin creating your new digital library collection!
_collectorbar_
}
#######################################################################
# Collection information page
_infoscriptextra_ {
function check\_submit (gotopage) \{
var form = document.collectorform;
if (form.bc1fullname.value.match(/^\\s*$/))
\{
alert("Collection name must be specified");
form.bc1fullname.focus();
return;
\}
else if (form.bc1contactemail.value.match(/^\\s*$/))
\{
alert("Email address must be specified");
form.bc1contactemail.focus();
return;
\}
else if (!form.bc1contactemail.value.match(/^([^@]+)@(.+)$/))
\{
alert("Please specify email address in the form: usename@domain");
form.bc1contactemail.focus();
return;
\}
else if (form.bc1aboutdesc.value.match(/^\\s*$/))
\{
alert("Description of collection must be specified");
form.bc1aboutdesc.focus();
return;
\}
form.cp.value = gotopage;
form.submit();
\}
}
_infocontent_ {
}
#######################################################################
# Source data page
# _fullnamemenu is set from within the server. If it's empty there are
# no valid collections
_fullnamemenu_ {}
_srcescriptextra_ {
var cloneval = _cgiargbc1clone_;
function check\_submit (gotopage) \{
var form = document.collectorform;
if (form.bc1inputdir1.value.match(/^\\s*$/) &&
form.bc1inputdir2.value.match(/^\\s*$/) &&
form.bc1inputdir3.value.match(/^\\s*$/) &&
form.bc1inputdir4.value.match(/^\\s*$/))
\{
alert("At least one input source must be specified");
form.bc1inputdir1.focus();
return;
\}
form.cp.value = gotopage;
form.submit();
\}
function clone\_changed (changedto) \{
var form = document.collectorform;
if (changedto != cloneval) \{
form.bc1clonechanged.value = 1;
\} else \{
form.bc1clonechanged.value = 0;
\}
\}
}
_srcenew_ {
Source data
_iconblankbar_
You can either create a completely new collection, or "clone" an existing one
-- that is, base the structure of your new collection on one that exists already.
Create new collection
Create a completely new collection. The collection may contain html documents (.htm, .html), plain text
documents (.txt, .text), or email documents (.email).
_If_("_fullnamemenu_" eq "",
No collections available for cloning.,_srcemenu_)
}
_srceappend_ {
Add new data
_iconblankbar_
Adding data:
The files that you specify below will be added to the collection. Make sure
that you do not re-specify files that are already in the collection:
otherwise two copies will be included. Files are identified by their full
pathname, Web pages by their absolute Web address.
}
_srcecontent_ {
}
_srcemenu_ {Clone existing collection _fullnamemenu_
This pull-down menu specifies which collection you want to clone. The files in
your new collection must be exactly the same type as those used to build
the existing one.
}
#######################################################################
# Configure collection page
_confscriptextra_ {
var changed = 0;
function check\_submit (gotopage) \{
var form = document.collectorform;
form.bc1cfgchanged.value = changed;
form.cp.value = gotopage;
form.submit();
\}
function reset\_button () \{
document.collectorform.reset();
changed = 0;
\}
}
_confcontent_ {
}
#######################################################################
# Build page
_bildcontent_ {
}
_bildframe1scriptextra_ {}
_bildframe1content_ {
_iconblankbar_
Build
_iconblankbar_
The collection is now being built: this might take some time. The building
status line below gives feedback on how the operation is progressing.
}
# special header for status page
_bildstatusheader_ {_cgihead_
_htmlhead_(background="_httpiconchalk_" 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) \{
document.collectorform.submit();
\} else \{
window.status = "Building status update in "+timer+" seconds";
timer--;
setTimeout("count_down()",1000);
\}
\}
}
_bildstatuscontent_ {
}
#######################################################################
# Error and message pages
#######################################################################
_messagehead_ {
}
_mkcolfailcontent_ {
_messagehead_
Greenstone failed to create the directory structure required to create your
new collection. Possible causes are:
Greenstone does not have permission to write to the gsdl/collect
directory.