Skip to content

dasch124/wdbplus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

W. Digitale Bibliothek (wdbplus)

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!

Installation

The final version will be available as an installable .xar package for eXist.

eXgit

Additionally, it is possible to use eXgit to clone the current version directly into a running eXist instance.

  1. Install eXgit as stated in the repo.
  2. (optional) create a user for the framework and log in under that name
  3. (optional) create the target collection as this user
  4. run the following XQuery:
    xquery version "3.1";
    
    import module namespace exgit="http://exist-db.org/xquery/exgit" at "java:org.exist.xquery.modules.exgit.Exgit";
    
    let $cl := exgit:clone("https://github.com/dariok/wdbplus", "{$whereToClone}")
    let $ie := exgit:import("{$whereToClone}/wdbplus/edoc", "/db/apps/edoc")
    let $ic := exgit:import("{$whereToClone}/wdbplus/config", "/db/system/config/db/apps")
    
    let $chmod := (sm:chmod(xs:anyURI('/db/apps/edoc/controller.xql'), 'r-xr-xr-x'), sm:chmod(xs:anyURI('/db/apps/edoc/insert.xql'), 'r-xr-xr-x'),
            sm:chmod(xs:anyURI('/db/apps/edoc/return.xql'), 'r-xr-xr-x'), sm:chmod(xs:anyURI('/db/apps/edoc/modules/app.xql'), 'r-xr-xr-x'),
            sm:chmod(xs:anyURI('/db/apps/edoc/modules/nav.xql'), 'r-xr-xr-x'), sm:chmod(xs:anyURI('/db/apps/edoc/modules/start.xql'), 'r-xr-xr-x'),
            sm:chmod(xs:anyURI('/db/apps/edoc/modules/view.xql'), 'r-xr-xr-x'))
    let $reindex := xmldb:reindex('/db/apps/edoc/data')
    
    return ($cl, $ie, $ic, $chmod)

manual installation

  1. clone this repo
  2. put folder edoc anywhere you want in your eXist; the default would be /db/apps/edoc
  3. import the configuration files into /db/system/config/db/apps/edoc or the config folder corresponding to the collection you chose
  4. apply the configuration
  5. Set execute rights on .xql files

post-installation

  1. add project's XML/XSLT etc. files into a subcollection of /db/apps/edoc/data
  2. create a file wdbmeta.xml in that collection:
    <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/data/yourProject/yourXSL.xsl</command>
        </process>
        <struct label="1722" order="1722">
            <view file="xml-id" label="Title of File" />
        </struct>
    </projectMD>
  1. The file is now available to view under http://yourserver:8080/exist/apps/edoc/view.html?id=xml-id

##Currently used in these projects:

  • HAB Wolfenbüttel
    • Editionsprojekt Karlstadt
  • ACDH Wien
    • Wien[n]erisches Diarium Digital
    • Repertotium frühneuzeitlicher Rechtsquellen
  • 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.

Packages

No packages published

Languages

  • XQuery 56.0%
  • XSLT 22.2%
  • JavaScript 13.0%
  • CSS 5.4%
  • HTML 3.4%