Commit 09519b1e authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

Merge branch 'release/4.0.0'

parents 2b8267b0 8284c47c
Pipeline #92897 passed with stages
in 2 minutes and 39 seconds
......@@ -2,3 +2,4 @@ build/
image: frekele/ant
- build
- test
- deploy
......@@ -6,7 +11,7 @@ build-develop:
- tags
stage: build
- ant complete
- ant
- build/*.xar
......@@ -14,16 +19,35 @@ build-develop:
- master
- tags
stage: build
- cp
- ant master complete
- ant
- build/*.xar
- tags
stage: test
- ant test
- bash test/eXist-db-*/bin/ | tee output.log &
# wait for eXist
- while [ $(curl -I -s http://localhost:8080 | grep -c "200 OK") == 0 ]; do sleep 2s; done
# shutdown eXist
- bash test/eXist-db-*/bin/
- ls -al /tmp; mv /tmp/tests-* . || true
- output.log
- tests-*.xml
- test/eXist-db-*/webapp/WEB-INF/logs/expath-repo.log
- tags
stage: deploy
- FILENAME=$(ls build/*.xar)
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
project.title=[Fontane] SADE-Project
# xslt is used to prepare for master
<?xml version="1.0" encoding="UTF-8"?>
<project default="complete" name="fontane" basedir=".">
<project default="xar" name="fontane" basedir=".">
<property name="build.dir" value="build"/>
<property file=""/>
<property file=""/>
<property environment="env"/>
<target name="complete">
<target name="xar" depends="cleanup">
<copy file="expath-pkg.xml.tmpl" tofile="expath-pkg.xml" filtering="true" overwrite="true">
<filter token="project.version" value="${project.version}"/>
......@@ -20,7 +20,7 @@
<mkdir dir="${build.dir}"/>
<!-- create the XAR package -->
<zip basedir="." destfile="${build.dir}/${project.abbrev}-${project.version}.xar"
<zip basedir="." destfile="${destfile}"
<delete file="expath-pkg.xml"/>
......@@ -32,4 +32,24 @@
<move file="sade-projects/textgrid/temp.xml" tofile="sade-projects/textgrid/config.xml"/>
<target name="cleanup">
<delete dir="${test.dir}"/>
<target name="test" depends="xar">
<get src="${project.processorversion}.tar.bz2" dest="${build.dir}/eXist-db-${project.processorversion}.tar.bz2" skipexisting="true" />
<untar src="${build.dir}/eXist-db-${project.processorversion}.tar.bz2" dest="${test.dir}" compression="bzip2" />
<get src="${dependency.track}&amp;processor=${project.processorversion}" dest="${test.dir}/eXist-db-${project.processorversion}/autodeploy/codeview-latest.xar" ignoreerrors="true"/>
<get src="${dependency.track}&amp;processor=${project.processorversion}" dest="${test.dir}/eXist-db-${project.processorversion}/autodeploy/tgconnect${dependency.track}-latest.xar" ignoreerrors="true"/>
<get src="${dependency.track}&amp;processor=${project.processorversion}" dest="${test.dir}/eXist-db-${project.processorversion}/autodeploy/fontane${dependency.track}-latest.xar" ignoreerrors="true"/>
<get src=";processor=${project.processorversion}" dest="${test.dir}/eXist-db-${project.processorversion}/autodeploy/fontane-lucene-latest.xar" ignoreerrors="true"/>
<get src=";processor=${project.processorversion}" dest="${test.dir}/eXist-db-${project.processorversion}/autodeploy/markdown-latest.xar" ignoreerrors="true"/>
<get src=";processor=${project.processorversion}" dest="${test.dir}/eXist-db-${project.processorversion}/autodeploy/xqjson-latest.xar" ignoreerrors="true"/>
<get src=";processor=${project.processorversion}" dest="${test.dir}/eXist-db-${project.processorversion}/autodeploy/fundocs-latest.xar" ignoreerrors="true"/>
<copy file="${destfile}" todir="${test.dir}/eXist-db-${project.processorversion}/autodeploy" />
xquery version "3.1";
let $urls := (xs:anyURI(""),
let $maps :=
for $url in $urls
$persist := false(),
$request-headers := (),
$beacon := httpclient:get($url, $persist, $request-headers)//httpclient:body/node()
=> xmldb:decode() => tokenize("&#x0A;")
let $target := $beacon[starts-with(., "#TARGET:")] => substring-after(": ")
(: should return something like "{ID}.html#adbcontent"
: where «{ID}» is to be replaced by the GND ID :)
let $replacement := "\{ID\}"
return map:new(
for $i in $beacon[not(starts-with(., "#"))][not(starts-with(., "("))][. != ""]
map:entry($i, replace($target, $replacement, $i))
let $merge := map:merge($maps)
<deutsche-biographie dateTime="{current-dateTime()}">{
for $key in map:keys($merge)
order by $key
<gnd xml:id="gnd{$key}" db-url="{$merge($key)}"/>
}</deutsche-biographie> ! xmldb:store("/db", "deutsche-biographie.xml", .)
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="" name="" abbrev="@project.abbrev@" version="@project.version@" spec="1.0">
<package xmlns="" name="" abbrev="@project.abbrev@@dependency.track@" version="@project.version@" spec="1.0">
<title>[Fontane] SADE project</title>
<dependency package=""/>
<dependency package=""/>
<dependency package=""/>
<dependency package=""/>
<dependency package=""/>
<dependency package=""/>
<dependency package=""/>
......@@ -2,10 +2,12 @@ xquery version "3.1";
declare namespace tgmd="";
import module namespace tgclient="" at "/db/apps/textgrid-connect/tgclient.xqm";
import module namespace tgconnect="" at "/db/apps/textgrid-connect/tg-connect.xql";
import module namespace tests="" at "tests.xqm";
import module namespace tgclient="" at "../textgrid-connect/tgclient.xqm";
import module namespace tgconnect="" at "../textgrid-connect/tg-connect.xql";
declare variable $sysout := util:log-system-out("starting…");
(: the target collection into which the app is deployed :)
declare variable $target external;
: Calculates RGB color scale from red to green
......@@ -64,6 +66,18 @@ declare variable $sid :=
let $log := util:log-system-out( "&#27;[30;43m initiating post-install.xql &#27;[0m" )
let $fileSeparator := util:system-property("file.separator")
let $system-path := system:get-exist-home() || $fileSeparator
let $project-name := tokenize($target, "/")[last()]
(: tests :)
let $tests := util:eval(xs:anyURI('/db/apps/SADE/modules/fontane/tests.xq'))
let $print := util:log-system-out( $tests )
let $print := util:log-system-out( tests:test-function-rate($tests, $target) )
let $file-name := $system-path || ".."|| $fileSeparator || "tests-"
|| $project-name || "_job-" || environment-variable("CI_JOB_ID") || ".log.xml"
let $file := file:serialize(<tests time="{current-dateTime()}">{ $tests }</tests>, $file-name, ())
(: the uris we need to publish in an intended order! :)
let $filters := <filters>
......@@ -171,8 +185,12 @@ xmldb:reindex("/db/sade-projects/textgrid/data/xml/data"),
(: beacon to end on running gitlab CI :)
util:eval("file:serialize(<done/>, '/tmp/sade.beacon', ())"),
for $uri at $pos in (collection("/db/apps/SADE")/base-uri())[ends-with(., ".xqm")]
let $content := $uri => util:binary-doc() => util:base64-decode()
let $isRest := if(contains($content, "%rest:")) then true() else false()
where $isRest
(: set correct mode for autostart trigger :)
sm:chmod(xs:anyURI("/db/system/autostart"), "rwxrwx---"),
......@@ -3,13 +3,14 @@
<description>SADE project folder for Fontane Notizbücher</description>
<author>Ubbo Veentjer</author>
<author>Mathias Göbel</author>
<author>Michelle Weidling</author>
--- config.xml
+++ config.xml
@@ -23,7 +23,7 @@
<param key="textgrid.sidcachepath.password"/><!-- parameters for MODULES -->
<param key="textgrid.digilib"></param>
<param key="textgrid.digilib.tile">dw=100&amp;dh=100</param>
- <param key="sade.develop">true</param>
+ <param key="sade.develop">false</param>
<param key="dokuwiki.url"></param>
<param key="dokuwiki.user">TODO</param>
<param key="dokuwiki.password">TODO</param>
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<div><xhtml:h2 xmlns:xhtml=""><div class="block-header"><h2><span class="title">Datenschutz</span><span class="decoration"/><span class="decoration"/><span class="decoration"/></h2><div id="toggleToc"><i class="fa fa-caret-down" aria-hidden="true"/></div><div id="dokuToc"><ul>
<li><a href="#anbieter">Anbieter</a></li>
<li><a href="#personenbezogene_daten">Personenbezogene Daten</a></li>
<li><a href="#informationen_zur_verarbeitung_personenbezogener">Informationen zur Verarbeitung personenbezogener</a>
<li><a href="#daten">Daten</a>
<li><a href="#name_und_kontaktdaten_der_verantwortlichen">Name und Kontaktdaten der Verantwortlichen</a></li>
<li><a href="#kontaktdaten_des_betrieblichen_datenschutzbeauftragen">Kontaktdaten des betrieblichen Datenschutzbeauftragen</a></li>
<li><a href="#zwecke_und_rechtsgrundlagen_der_verarbeitung">Zwecke und Rechtsgrundlagen der Verarbeitung</a></li>
<li><a href="#empfaenger_der_personenbezogenen_daten">Empfänger der personenbezogenen Daten</a></li>
<li><a href="#uebermittlung_von_personenbezogenen_daten_an_ein_drittland">Übermittlung von personenbezogenen Daten an ein Drittland</a></li>
<li><a href="#dauer_der_speicherung_der_personenbezogenen_daten">Dauer der Speicherung der personenbezogenen Daten</a></li>
<li><a href="#betroffenenrechte">Betroffenenrechte</a></li>
<li><a href="#widerrufsrecht_bei_einwilligung">Widerrufsrecht bei Einwilligung</a></li>
<li><a href="#auskunft_loeschung_sperrung">Auskunft, Löschung, Sperrung</a></li>
<li><a href="#statistische_daten_fuer_den_betreiber_der_website">Statistische Daten für den Betreiber der Website</a></li>
<li><a href="#cookies">Cookies</a>
<li><a href="#server-log-files">Server-Log-Files</a></li>
</ul></div></div></xhtml:h2><xhtml:div xmlns:xhtml="">
Wir weisen darauf hin, dass die Datenübertragung im Internet (z. B.
bei der Kommunikation per E-Mail) Sicherheitslücken aufweisen kann.
Ein lückenloser Schutz der Daten vor dem Zugriff durch Dritte ist
nicht möglich.
Der Nutzung von im Rahmen der Impressumspflicht veröffentlichten
Kontaktdaten durch Dritte zur Übersendung von nicht ausdrücklich
angeforderter Werbung und Informationsmaterialien wird hiermit
ausdrücklich widersprochen. Die Betreiber der Seiten behalten sich
ausdrücklich rechtliche Schritte im Falle der unverlangten Zusendung
von Werbeinformationen, etwa durch Spam-Mails, vor.
</xhtml:div><xhtml:h3 xmlns:xhtml="" id="anbieter"><span class="dokuLink"><a href="#anbieter"><i class="fa fa-link" aria-hidden="true"/></a></span>Anbieter</xhtml:h3><xhtml:div xmlns:xhtml="">
Anbieter dieser Internetpräsenz ist im Rechtssinne die
Niedersächsische Staats- und Universitätsbibliothek Göttingen,
siehe <xhtml:a href="?id=impressum.html" rel="nofollow">Impressum</xhtml:a>.
</xhtml:div><xhtml:h3 xmlns:xhtml="" id="personenbezogene_daten"><span class="dokuLink"><a href="#personenbezogene_daten"><i class="fa fa-link" aria-hidden="true"/></a></span>Personenbezogene Daten</xhtml:h3><xhtml:div xmlns:xhtml="">
Die Nutzung dieser Webseite ist in der Regel ohne Angabe personenbezogener
Daten möglich. Soweit auf diesen Seiten personenbezogene Daten erhoben
werden, erfolgt dies, soweit möglich, stets auf freiwilliger Basis und im
hier dargestellten Umfang. Diese Daten werden ohne Ihre ausdrückliche
Zustimmung nicht an Dritte weitergegeben.
Sämtliche personenbezogenen Daten werden nur solange gespeichert wie dies
für den jeweils genannten Zweck erforderlich ist. Hierbei werden bestehende
gesetzliche Aufbewahrungsfristen berücksichtigt.
Datenempfänger innerhalb der Universität ist die Niedersächsische Staats-
und Universitätsbibliothek.
Weiterer Datenempfänger ist die Gesellschaft für wissenschaftliche
Datenverarbeitung Göttingen.
</xhtml:div><xhtml:h3 xmlns:xhtml="" id="informationen_zur_verarbeitung_personenbezogener"><span class="dokuLink"><a href="#informationen_zur_verarbeitung_personenbezogener"><i class="fa fa-link" aria-hidden="true"/></a></span>Informationen zur Verarbeitung personenbezogener</xhtml:h3><xhtml:div xmlns:xhtml="">
</xhtml:div><xhtml:h4 xmlns:xhtml="" id="daten"><span class="dokuLink"><a href="#daten"><i class="fa fa-link" aria-hidden="true"/></a></span>Daten</xhtml:h4><xhtml:div xmlns:xhtml="">
</xhtml:div><xhtml:h5 xmlns:xhtml="" id="name_und_kontaktdaten_der_verantwortlichen"><span class="dokuLink"><a href="#name_und_kontaktdaten_der_verantwortlichen"><i class="fa fa-link" aria-hidden="true"/></a></span>Name und Kontaktdaten der Verantwortlichen</xhtml:h5><xhtml:div xmlns:xhtml="">
Prof. Dr. Ulrike Beisiegel<xhtml:br/>
Wilhelmsplatz 1<xhtml:br/>
37073 Göttingen<xhtml:br/>
+49 551 39-21000 (Tel.)<xhtml:br/>
+49 551 39-1821000 (Fax)<xhtml:br/>
</xhtml:div><xhtml:h5 xmlns:xhtml="" id="kontaktdaten_des_betrieblichen_datenschutzbeauftragen"><span class="dokuLink"><a href="#kontaktdaten_des_betrieblichen_datenschutzbeauftragen"><i class="fa fa-link" aria-hidden="true"/></a></span>Kontaktdaten des betrieblichen Datenschutzbeauftragen</xhtml:h5><xhtml:div xmlns:xhtml="">
Prof. Dr. Andreas Wiebe<xhtml:br/>
Lehrstuhl für Bürgerliches Recht<xhtml:br/>
Wettbewerbs- und Immaterialgüterrecht<xhtml:br/>
Medien- und Informationsrecht<xhtml:br/>
Platz der Göttinger Sieben 6<xhtml:br/>
D-37073 Göttingen<xhtml:br/>
+49 551 39-7381 (Tel.)<xhtml:br/>
+49 551 39-4437 (Fax)<xhtml:br/>
</xhtml:div><xhtml:h4 xmlns:xhtml="" id="zwecke_und_rechtsgrundlagen_der_verarbeitung"><span class="dokuLink"><a href="#zwecke_und_rechtsgrundlagen_der_verarbeitung"><i class="fa fa-link" aria-hidden="true"/></a></span>Zwecke und Rechtsgrundlagen der Verarbeitung</xhtml:h4><xhtml:div xmlns:xhtml="">
Ihre Daten werden dafür erhoben, um Ihr Anliegen zu bearbeiten. Ihre Daten
werden auf Grundlage von Art. 6 Abs. 1e erhoben.
</xhtml:div><xhtml:h4 xmlns:xhtml="" id="empfaenger_der_personenbezogenen_daten"><span class="dokuLink"><a href="#empfaenger_der_personenbezogenen_daten"><i class="fa fa-link" aria-hidden="true"/></a></span>Empfänger der personenbezogenen Daten</xhtml:h4><xhtml:div xmlns:xhtml="">
Um ihre Anfrage zu beantworten, werden Ihre personenbezogenen Daten an die
innerhalb der SUB Göttingen zuständige Personengruppe übermittelt.
</xhtml:div><xhtml:h4 xmlns:xhtml="" id="uebermittlung_von_personenbezogenen_daten_an_ein_drittland"><span class="dokuLink"><a href="#uebermittlung_von_personenbezogenen_daten_an_ein_drittland"><i class="fa fa-link" aria-hidden="true"/></a></span>Übermittlung von personenbezogenen Daten an ein Drittland</xhtml:h4><xhtml:div xmlns:xhtml="">
Es ist nicht geplant Ihre personenbezogenen Daten zu übermitteln.
</xhtml:div><xhtml:h4 xmlns:xhtml="" id="dauer_der_speicherung_der_personenbezogenen_daten"><span class="dokuLink"><a href="#dauer_der_speicherung_der_personenbezogenen_daten"><i class="fa fa-link" aria-hidden="true"/></a></span>Dauer der Speicherung der personenbezogenen Daten</xhtml:h4><xhtml:div xmlns:xhtml="">
Ihre Daten werden gespeichert, um die Dienste zu erbringen, mit denen Sie
uns beauftragen. Sobald Sie sich abmelden oder um eine Löschung der Daten
bitten, werden ihre Daten nur noch so lange gespeichert, bis alle laufenden
Vorgänge abgeschlossen sind und dann gelöscht, es sei denn gesetzliche
Vorgaben erfordern eine längere Speicherung.
</xhtml:div><xhtml:h4 xmlns:xhtml="" id="betroffenenrechte"><span class="dokuLink"><a href="#betroffenenrechte"><i class="fa fa-link" aria-hidden="true"/></a></span>Betroffenenrechte</xhtml:h4><xhtml:div xmlns:xhtml="">
Nach der EU-Datenschutzgrundverordnung stehen Ihnen folgende Rechte zu:
Werden Ihre personenbezogenen Daten verarbeitet, so haben Sie das Recht
Auskunft über die zu Ihrer Person gespeicherten Daten zu erhalten (Art. 15 DSGVO).
Sollten unrichtige personenbezogene Daten verarbeitet werden, steht Ihnen ein Recht
auf Berichtigung zu (Art. 16 DSGVO). Liegen die gesetzlichen Voraussetzungen vor, so
können Sie die Löschung oder Einschränkung der Verarbeitung verlangen sowie Widerspruch
gegen die Verarbeitung einlegen (Art. 17, 18 und 21 DSGVO).
Wenn Sie die erforderlichen Daten nicht angeben, kann Ihr Antrag nicht bearbeitet werden.