Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
50241a1b
Commit
50241a1b
authored
Aug 19, 2020
by
Mathias Goebel
🎠
Browse files
Merge branch 'feature/error-message-for-idno' into 'develop'
more custom errors See merge request
!68
parents
95925e70
c5dfdb6f
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/index-processor.xqm
View file @
50241a1b
...
...
@@ -5,7 +5,7 @@ xquery version "3.1";
: the index for a single notebook.
: The corresponding viewer module is `index-viewer.xqm`.
: @author Mathias Göbel
: @version 1.1.
2
: @version 1.1.
3
: @see https://fontane-nb.dariah.eu/register.html
:)
module namespace ixp="http://fontane-nb.dariah.eu/index-processor";
...
...
@@ -255,6 +255,10 @@ if(not(exists($variant))) then () else
declare function ixp:idno($idnos as element()*)
as element(xhtml:li)* {
for $idno in $idnos
where string-length($idno) lt 1
return
error(QName("FONTANE", "INDEX3"), "got empty ID in element: " || serialize($idno/parent::tei:* ) ),
for $idno in $idnos
let $str := string($idno)
let $wikipedia :=
if($idno/@type = "GND") then ixp:gnd-wikipedia($str) else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment