/etc/init.d/tomcat
, add the parameter -Djava.specification.version=1.6
to the JAVA_OPTS="...";
line-Djava.specification.version=1.6
wherever you set other parameters like the maximum memory as wellRefBank.zip
into Tomcat's webapps
folder (an exploded archive directory, zipped up for your convenience; WAR deployment is impractical, as updates would overwrite the configurations you make)RefBank
sub folder in Tomcat's webapps
folder.RefBank
folder.bash update RefBank
in the console.RefBank.zip
archive you downloaded into the webapps/RefBank/
folder for others to download.conf
folder, which is located on the same level as the webapps
folder; the actual configuration file to add the permission to is either catalina.policy
directly in the conf
folder, or 04webapps.policy
in the conf/policy.d
folder, whichever is present; if both files are present, either will do:grant codeBase "file:${catalina.base}/webapps/RefBank/WEB-INF/lib/-" { permission java.net.SocketPermission "*.*", "connect"; permission java.io.FilePermission "WEB-INF/-", "read,write,delete,execute"; }
config.cnfg
files in the WEB-INF/<xyz>Data
folders:WEB-INF/rbkData/
, enter a (presumably) globally unique RefBank domain name, which should identify the institution the RefBank node runs in and, if the institution runs multiple RefBank nodes, also distinguish the node being set up from the other ones already running (if you set up the node for testing or experimentation purposes, please choose a domain name ending in "-Test"
, ".test"
, "-Dev"
, "-Development"
, ".dev"
, or something similar)WEB-INF/uploadData/
folderWEB-INF/uploadData/
folderRefBankDB
web.cnfg
file in the WEB-INF
folder:stringPoolNodeName
setting to the name assigned to the RefBank servlet in the web.xml (which is RefBank
if you did not change it) so dependent local servlets can connect to it directly (Java method invocations) instead of the local network loopback adapter for better performanceweb.xml
file, you need not change this setting, either)stringPoolNodeUrl
setting to the access URL you configured above, or to a localhost
URL; in any case, the URL used should point to the RefBank servlet directly for better performance, even if the preferred external access URL is one proxied through a local Apache web server or the likeimages
folderfooter.html
and popupFooter.html
in the WEB-INF
folder to include your institution name and logo by replacingyourLogo.gif
with the name of your logo image file,yourUrl.org
with the link to your institution,Your Institution Name
with the name of your institution,YourInstitutionAcronym
with the acronym of your institutionRefBank.zip
file name with rbk
, resulting in http://<refBankHostDownloadedFromIncludingPort>/RefBank/rbk
, for instance) into the Connect to other Nodes form and click the Add Node buttonThe servlets generate the search and upload forms as well as the search results and reference detail views dynamically from multiple files residing in the WEB-INF
folder or one of its sub folders:
refBank.html
is the template for the main pagesheader.html
, navigation.html
, and footer.html
are inserted in the template where the <includeFile file="filename.html">
tags are in the templaterefBank.css
, refBank.2.css
, and refBank.3.css
, each representing a different layout variantrefBank.3.css
layout is active in the default configuration)refBankPopup.html
is the template for the reference detail viewspopupHeader.html
, popupNavigation.html
, and popupFooter.html
are inserted in the template where the <includeFile file="filename.html">
tags are in the templaterefBank.css
, refBank.2.css
, and refBank.3.css
<includeForm/>
tag is in the template<includeResult/>
tag is in the templateWEB-INF/searchData/searchFields.html
; the actual form tag is created by the servletWEB-INF/searchData/refBankSearch.css
. WEB-INF/searchData/refBankSearch.css
, and WEB-INF/searchData/refBankSearch.css
, corresponding to the respective variants of refBank.css
WEB-INF/searchData/uploadFields.html
; the actual form tag is created by the servlet<includeReCAPTCHA/>
tag is in uploadFields.html
WEB-INF/uploadData/refBankUpload.css
, WEB-INF/uploadData/refBankUpload.2.css
, and WEB-INF/uploadData/refBankUpload.3.css
, corresponding to the respective variants of refBank.css
onnNodeAdminPage.html
is the template for the administration pageonnNodeAdminPage.css
, onnNodeAdminPage.2.css
, and onnNodeAdminPage.3.css
, corresponding to the respective variants of refBank.css
refBank.html
and refBankPopup.html
files and the respective stylesheets<includeFile .../>
tags; when changing the file names or adding <includeFile .../>
tags, make sure that the references files exist (requires the web application to run for testing)<includeForm/>
and <includeResult/>
tags; make sure, however, that these tags remain in the template page, as otherwise the functional parts of the pages cannot be inserted (requires the web application to run for testing)<includeFile .../>
tags; when doing this, make sure that the references files exist (requires the web application to run for testing)refBank.html
or refBankPopup.html
files directly, but use the respective inserted files instead (requires the web application to run for testing)RefBank data servlet (/RefBank/rbk
):
GET
(response content depends on action
parameter):action=admin
(also as /refBank/rbk/admin
): retrieve login form for the RefBank node administration HTML page (used in browser, not part of API)action=nodes
(also as /refBank/rbk/nodes
): retrieve list of other RefBank nodes known to this onetext/xml
, encoding UTF-8
):
<nodes>
<node name="name of RefBank node" accessUrl="preferred access URL of node" />
<node ... />
</nodes>
action=ping
(also as /refBank/rbk/ping
): ping node<nodes />
action=name
(also as /refBank/rbk/name
): retrieve data of this RefBank nodetext/xml
, encoding UTF-8
):
<nodes>
<node name="<name of RefBank node>" accessUrl="preferred access URL of node" />
</nodes>
action=feed
: retrieve the reference update feed, ordered by increasing update timeupdatedSince
: minimum update time for references to include in the feed, formatted as UTC HTTP timestamptext/xml
, encoding UTF-8
)
<refSet>
<ref id="reference ID" canonicalId="ID of canonical reference to set" deleted="deleted flag, true or false" createTime="UTC timestamp reference was first added to RefBank" updateTime="UTC timestamp reference was last updated" localUpdateTime="UTC timestamp reference was last updated on this RefBank node" parseChecksum="MD5 hash of parsed version, if available" />
<ref ... />
</refSet>
action=rss
: retrieve an RSS feed announcing recently added references, ordered by decreasing upload timetop
: number of references to include in the feed (defaults to 100 if not specified)application/rss+xml
, encoding UTF-8
)action=count
: retrieve the number of references stored in the nodesince
: the UTC timestamp since which to count the references (optional, defaults to 0)format
: the format to represent the response (optional, defaults to the native XML representation if omitted)text/xml
, encoding UTF-8
)
<refSet count="number of strings" since="argument since" />
action=get
: resolve RefBank internal identifiersid
: the identifier(s) to resolve, can be multi-valuedformat
: the format to represent the parsed versions of references in (optional, defaults to the native MODS XML representation if omitted)text/xml
, encoding UTF-8
)
<refSet>
<ref id="reference ID" canonicalId="ID of canonical reference to set" deleted="deleted flag, true or false" createTime="UTC timestamp reference was first added to RefBank" createUser="name of the user to first add reference to RefBank" createDomain="name of RefBank node reference was first added to" updateTime="UTC timestamp reference was last updated" updateUser="name of the user to last update reference" updateDomain="name of RefBank node reference was last updated at">
<refString><plain reference string></refString>
<refParsed><parsed version of reference (if available), as MODS XML or in format specified by format parameter></refParsed>
</ref>
<ref>...</ref>
</refSet>
action=find
: search referencesquery
: full text query against reference strings, can be multi-valuedcombine
: or
or and
, controls if multiple full text queries are combined conjunctively (the default) or disjunctivelytype
: type of reference, only finds references with parsed version availableuser
: contributing userauthor
: query against author attribute of references, only finds references with parsed version availabletitle
: query against title attribute of references, only finds references with parsed version availabledate
: query against year of publication attribute of references, only finds references with parsed version availableorigin
: query against origin of references (journal + volume number, publisher or location, as well as volume title), only finds references with parsed version availableformat=concise
: exclude parsed verion of references from responseformat
: the name of the format for representing the parsed verion of the references (defaults to the native MODS XML if not specified)limit
: the maximum number of references to include in the search result (0, the default, means no limit)sco
: set to sco
to restrict search results to references not marked as duplicates of otherstext/xml
, encoding UTF-8
)
<refSet>
<ref id="reference ID" canonicalId="ID of canonical reference to set" deleted="deleted flag, true or false" createTime="UTC timestamp reference was first added to RefBank" createUser="name of the user to first add reference to RefBank" createDomain="name of RefBank node reference was first added to" updateTime="UTC timestamp reference was last updated" updateUser="name of the user to last update reference" updateDomain="name of RefBank node reference was last updated at" parseChecksum="MD5 hash of parsed version, if available and format set to concise">
<refString><plain reference string></refString>
<refParsed><parsed version of reference (if available), as MODS XML or in format specified by format parameter></refParsed>
</ref>
<ref ...>...</ref>
</refSet>
action=apiStats
: retrieve statistics on the usage of the node, in particular for the data handling actionsformat
: the name of the XSLT stylesheet to use for transforming the result (defaults to the native XML if not specified)text/xml
, encoding UTF-8
)
<apiStats total="total number of API calls" feed="number of calls to feed action" rss="number of calls to RSS feed action" find="number of calls to find action" get="number of calls to get action" update="number of calls to update action" count="number of calls to count action" stats="number of calls to API statistics"/>
POST
: requests from RefBank node adminstration HTML page, infrastructure replication, or meta data updates for existing references:/RefBank/rbk/update
: for deleting or un-deleting existing references or updating canonical reference IDuser
: the user to credit for the update<refSet>
<ref id="reference ID" canonicalId="ID of canonical reference to set" deleted="deleted flag to set, true or false"/>
</refSet>
text/xml
, encoding UTF-8
):
<refSet>
<ref id="reference ID" canonicalId="ID of canonical reference" deleted="deleted flag, true or false" createTime="UTC timestamp reference was first added to RefBank" createUser="name of the user to first add reference to RefBank" createDomain="name of RefBank node reference was first added to" updateTime="UTC timestamp reference was last updated" updateUser="name of the user to last update reference" updateDomain="name of RefBank node reference was last updated at" parseChecksum="MD5 hash of parsed version, if available">
<refString><plain reference string></refString>
</ref>
</refSet>
/RefBank/rbk/admin
: process input from the RefBank node administration HTML page (used in browser, not part of API)/refBank/rbk/nodes
: retrieve list of other RefBank nodes known to this onetext/xml
, encoding UTF-8
):
<nodes>
<node name="name of RefBank node" accessUrl="preferred access URL of node" />
<node ... />
</nodes>
/refBank/rbk/ping
: ping nodetext/xml
, encoding UTF-8
):
<nodes />
/refBank/rbk/name
: retrieve data of this RefBank nodetext/xml
, encoding UTF-8
):
<nodes>
<node name="name of RefBank node" accessUrl="preferred access URL of node" />
</nodes>
/refBank/rbk/introduce
: introduce a new RefBank node to this one, retrieve list of other known RefBank nodesname
: the name of the RefBank node introducing itselfaccessUrl
: the preferred access URL of the RefBank node introducing itselftext/xml
, encoding UTF-8
):
<nodes>
<node name="name of RefBank node" accessUrl="preferred access URL of node" />
<node ... />
</nodes>
PUT
: upload new or update existing references:Data-Format
: the upload data format, xml or txt (tried to auto-detect if not specified)User-Name
: the user to credit for uploaded references (defaults to 'Anonymous' if not specified)UTF-8
Data-Format=txt
: one plain reference string per line, adds new references, un-deletes ones that are re-added and were flagged as deletedData-Format=xml
:
<refSet>
<ref>
<refString><plain reference string></refString>
<refParsed><parsed reference in MODS XML, if available></refParsed>
</ref>
<ref>...</ref>
</refSet>
text/xml
, encoding UTF-8
), in particular the uploaded or otherwise updated references, with attributes indicating whether they were updated or alltogether newly added to RefBank:
<refSet created="number of references newly added to RefBank" updated="number of references updated, less newly created ones">
<ref id="reference ID" canonicalId="ID of canonical reference" deleted="deleted flag, true or false" createTime="UTC timestamp reference was first added to RefBank" updateTime="UTC timestamp reference was last updated" parseChecksum="MD5 hash of parsed version, if available" parseError="explanation why parsed version was rejected, if any" created="true or false, indicating whether reference was newly added to RefBank" updated="true or false, indicating whether reference existed and was updated">
<refString><plain reference string, as stored in RefBank></refString>
</ref>
<ref ...>...</ref>
</refSet>
RefBank search servlet (/RefBank/search
):
GET
: retrieve search form, perform search, or retrieve styled or formatted reference, depending on parameters:id
: identifier of reference, yields reference specific response if set, depending on several other parameters:format
: reference format, for use with other softwarestyle
: reference string style, for use in bibliography of a publicationisFramePage
: send reference specific pupup page instead of reference proper?id
+ format=PaRsEtHeReF
+ isFramePage=true
: reference specific popup page, with reference opened for manual parsing in embedded IFrame (used in browser, not part of API)id
+ format=EdItReFsTrInG
+ isFramePage=true
: reference specific popup page, with reference string opened for manual editing in embedded IFrame (used in browser, not part of API)id
+ style
or format
+ isFramePage=true
: reference specific popup page, with reference in specified style or format showing in embedded IFrame (used in browser, not part of API)id
+ style
: return the reference with specified ID in the specified style (MIME type text/html
, encoding UTF-8
)id
+ format
: return the reference with specified ID in the specified data format (MIME type text/plain
, encoding UTF-8
)id=MiNoRuPdATe
, no style or format: return HTML form for POST
callbacks from search result page (used in browser, not part of API)canonicalStrinId
: identifier of canonical representation, if set returns HTML page listing duplicate references (used in browser, not part of API)query
: full text query against reference stringstype
: type of reference, only finds references with parsed version availableuser
: contributing userauthor
: query against author attribute of references, only finds references with parsed version availabletitle
: query against title attribute of references, only finds references with parsed version availabledate
/ year
: query against year of publication attribute of references, only finds references with parsed version available (used synonymously)origin
: query against origin of references (journal + volume number, publisher or location, as well as volume title), only finds references with parsed version availableidType
+ idValue
: query against some external identifier attribute of references (e.g. DOI or ISBN), only finds references with parsed version availablePOST
(used in browser, not part of API): receive update callbacks from search result pageRefBank upload servlet (/RefBank/upload
):
GET
(used in browser, not part of API):/RefBank/upload
: retrieve upload form/RefBank/upload/<upload-ID>/action
: status info for running uploadsPOST
(used in browser, not part of API):/RefBank/upload
: receive text area or file upload from browserPUT
: receive upload via script:Data-Format
: name of the reference data format used in request body (one of the formats selectable in the upload form)User-Name
: the name of the user to credit for the contributed referencesAccess-Key
: the upload access key; needs to match configured key for servlet to accept the upload, ignored if no key is configuredtext/plain
, encoding UTF-8
)
RECEIVED: <number of references received>
ERRORS: <number of references that contain errors>
CREATED: <number of references newly added to RefBank>
UPDATED: <number of references that were not newly added, but had their parsed version updated>
RefBank data index servlet (/RefBank/data
):
GET
: retrieve a list of reference attribute values present from parsed references in RefBank, for use as a gazetteertype
: the type of data to retrievetext/plain
, encoding UTF-8
)type=persons
: names of persons, i.e., authors and editorstype=journals
: names of journalstype=publishers
: names of publisherstype=origins
: names of journals and publishers