Skip to content

Commit

Permalink
Safe guard against multiple digital source URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmil committed Aug 1, 2023
1 parent 7edb8b8 commit dc84b7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/util.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -579,10 +579,10 @@ declare function dutil:get-corpus-meta-data(
)

let $digitalSource := $tei//tei:sourceDesc/
tei:bibl[@type="digitalSource"]/tei:idno[@type="URL"]/text()
tei:bibl[@type="digitalSource"]/tei:idno[@type="URL"][1]/text()

let $origSource := $tei//tei:sourceDesc//
tei:bibl[@type="originalSource"]
tei:bibl[@type="originalSource"][1]
let $origSourcePublisher := normalize-space($origSource/tei:publisher)
let $origSourcePubPlace := string-join(
$origSource/tei:pubPlace ! normalize-space(), ", "
Expand Down

0 comments on commit dc84b7d

Please sign in to comment.