An extensible framework for digital Editions for the eXist XML database.
This framework still lacks a good name. If you have an idea, please let me know!
You need a working instance of eXist (4.0 or later). It is recommended that you use the default software selection during installation. The default memory settings usually work very well but you can, of course, always give eXist a little more RAM.
- Clone this repo including its submodules (xstring, wdbmeta)
cd edoc
- run
ant
- install the
.xar
file created inedoc/build/
using eXist's dashboard
The app will be installed into /db/apps/edoc
.
Additionally, it is possible to use eXgit to clone the current version directly into a running eXist instance.
- Install eXgit as stated in the repo.
- create a user
wdb
and a groupwdbusers
for the framework and log in under that name –– CAVEAT: this user, at least for the duration of the installation, needs to be in the dba group! - create the target collection (default would be
/db/apps/edoc
) as this user - open eXide from eXist's Dashboard
- paste:
xquery version "3.1"; import module namespace exgit="http://exist-db.org/xquery/exgit" at "java:org.exist.xquery.modules.exgit.Exgit"; let $whereToClone := "/home/user/git/wdbplus" let $targetCollection := "/db/apps/edoc" let $cl := exgit:clone("https://github.com/dariok/wdbplus", $whereToClone) let $ie := exgit:import($whereToClone || "/edoc", $targetCollection) let $ic := exgit:import($whereToClone || "/edoc/config", "/db/system/config/db/apps")
- replace the value of
$whereToClone
with the full target directory on your file system where the app shall be cloned into - if you do not want to install into
/db/apps/edoc
, change the value of$targetCollection
to the full DB path - run the script
- open
post-install.xql
in your target collection - if you did not install into
/db/apps/edoc
, change$targetCollection
accordingly - run
post-install.xql
to set rights and index configuration
- clone this repo including its submodules
- put folder
edoc
anywhere you want in your eXist; the default would be/db/apps/edoc
; you can also rename it to your needs (in this case, you have to adjust the paths in the next steps!). - import the index configuration files – i.e. the contents of the
config
directory – into/db/system/config/db/apps
(see the wiki if you change the destination) - run
edoc/post-install.xql
to set execution rights and apply the index configuration (if you change the destination, adjust your paths).
Set the name for the instance and other settings in edoc/config.xml
or using the form under edoc/admin/admin.html
.
While many different ways of putting data into the application are possible, the standard way is to have one collection
under data for each project. It is possible to create an initial setup using admin/admin.html
. The following describes a manual installation and assumes that you work with a standard setup, i.e. have installed the app
into /db/apps/edoc
and want to put your projects into /db/apps/edoc/data/yourproject
.
- create
wdbmeta.xml
in/db/apps/edoc/data/yourproject
, either by copying, pasting and editing the example below or by usingadmin/admin.html
for the basic settings (it also creates the collection) and adding the other settings.You have to set at least one<projectMD xmlns="https://github.com/dariok/wdbplus/wdbmeta" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://github.com/dariok/wdbplus/wdbmeta https://raw.githubusercontent.com/dariok/wdbmeta/master/wdbmeta.xsd" xml:id="yourProjectID"> <projectID>yourProjectID</projectID> <titleData> <title>Project Title</title> </titleData> <files> <file path="pathTo.xml" xml:id="xml-id" /> </files> <process target="html"> <command type="xsl">/db/apps/edoc/resources/xsl/tei-transcript.xsl</command> </process> <struct label="1722" order="1722"> <view file="xml-id" label="Title of File" /> </struct> </projectMD>
process
; the example above points to a standard XSLT provided by wdb+. - add project's XML/XSLT etc. files to your projects, e.g. into a subcollection
/db/apps/edoc/data/yourproject/texts
- add a
<file>
entry towdbmeta.xlm
for each file to be displayed; you MUST give it anxml:id
which SHOULD be the same as that file’s/*/@xml:id
- The file is now available to view under
http://yourserver:8080/exist/apps/edoc/view.html?id=xml-id
Global configuration options, i.e. those that concern options for the whole instance, have to be set in config.xml
(e.g. the instance's name).
Settings for a project are set in the project's wdbmeta.xml
.
See the Wiki for details!
- HAB Wolfenbüttel
- Editionsprojekt Karlstadt
- ACDH Wien
- Wien[n]erisches Diarium Digital
- Repertotium frühneuzeitlicher Rechtsquellen
- Protokolle der Sitzungen der Gesamtakadmie
- Akademie der Wissenschaften, Heidelberg
- Theologenbriefwechsel
If you use wdbplus for your editions, please drop me a message so I can add you to this list.