Skip to content

Commit

Permalink
add case "WeGA" to processing of <idno>
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed May 27, 2024
1 parent 1977888 commit f49ff0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/bibl.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -371,5 +371,6 @@ declare %private function bibl:idno($idnos as element(tei:idno)*) as element(xht
return
switch($idno/@type)
case 'DOI' return <xhtml:span class="idno_DOI">, DOI: <xhtml:a href="{concat('https://doi.org/', normalize-space($idno))}">{$idno => data(), ' '} <i class="fa fa-external-link" aria-hidden="true"></i></xhtml:a></xhtml:span>
case 'WeGA' return <xhtml:span class="idno_WeGA">, Volltext verfügbar unter <xhtml:a href="{config:permalink($idno)}">{$idno => data()}</xhtml:a></xhtml:span>
default return <xhtml:span class="{concat('idno_', $idno/@type)}">, online unter <xhtml:a href="{$idno => data()}">{$idno => data(), ' '} <i class="fa fa-external-link" aria-hidden="true"></i></xhtml:a></xhtml:span>
};

0 comments on commit f49ff0c

Please sign in to comment.