A patch for Diringest 1.1, allowing the user a local (non http) input option
Lynna Cekova <
lynna@...>
2007-05-08 15:18:47 GMT
Hi all,
Attached is a modified fedora.services.diringest.IngestSIP.java file,
which I would like to offer for the Fedora Diringest trunk. If the
default IngestSIP.java file is replaced with this one, the user can
choose between the input files (SIP and optional crules) being remote to
Diringest and uploaded by http to Diringest's server (present Diringest
default), or specifying the input files as local (being on the same
machine as Diringest), so that no http upload is needed.
The default url http://host:8080/diringest/ingestSIP will still open
the default Diringest page, where the user can select the SIP and crules
files, which are then uploaded to Diringest via http, transformed and
ingested into Fedora. The url
http://host:8080/diringest/ingestSIP?local=yes (modification, not in the
original Diringest), on the other hand, will open a similar page where
the user needs to manually enter the file paths (the files being on the
same machine where Diringest is running), and the files will be directly
transformed and ingested to Fedora, without an http upload. The original
input files will not be deleted after having been transformed.
I had to make such a modification for the needs of OhioLINK, where we
work with very large inputs, located on the same server as Diringest, to
save time, space, and bandwidth. Others with similar needs and
conditions can benefit from the local input option as well. The change
does not remove any existing Diringest features, but adds an additional
one.
Please, let me know if you have any questions.
Best,
Lynna Cekova
Systems Developer
OhioLINK