Skip to content

Commit

Permalink
fix for duplicate wikipedia entries in PND beacon
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Dec 18, 2016
1 parent 620b87d commit c2594e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/wega-util.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import module namespace lang="http://xquery.weber-gesamtausgabe.de/modules/lang"
switch($resource)
case 'wikipedia' return
let $beaconMap := wega-util:beacon-map($gnd, $docType)
let $url := $beaconMap(map:keys($beaconMap)[contains(., 'Wikipedia-Personenartikel')])[1]
let $url := $beaconMap(map:keys($beaconMap)[contains(., 'Wikipedia-Personenartikel')][1])[1]
return
replace($url, 'dewiki', $lang || 'wiki')
case 'dnb' return concat('http://d-nb.info/gnd/', $gnd, '/about/rdf')
Expand Down

0 comments on commit c2594e6

Please sign in to comment.