diff --git a/web/app/views/tags/result_doc.scala.html b/web/app/views/tags/result_doc.scala.html index 6efe6c325..e3266568c 100644 --- a/web/app/views/tags/result_doc.scala.html +++ b/web/app/views/tags/result_doc.scala.html @@ -91,9 +91,9 @@ }}} } -@lobidUrl(doc: JsValue) = @{ - "http://lobid.org/resources/" + (doc\"almaMmsId").asOpt[String].orElse((doc\"hbzId").asOpt[String]).orElse((doc\"rpbId").asOpt[String]).getOrElse("") + "#!" -} +@lobidUrlwithZdbIdOrHbzId(doc: JsValue) = @{ + "http://lobid.org/resources/" + ("ZDB-" + (doc\"zdbId")).asOpt[String].orElse((doc\"hbzId").asOpt[String]).getOrElse("") + "#!" + } @lobid2_part_of(field: String, subField: String) = { @if((doc \ "isPartOf").asOpt[JsValue].isDefined){ @@ -197,7 +197,7 @@ @result_field("In", "containedIn", doc, TableRow.LINKS) @lobid2_part_of("isPartOf", "hasSuperordinate") - @defining(lobidUrl(doc)){ id => + @defining(lobidUrlwithZdbIdOrHbzId(doc)){ id => @subordinated("isPartOf.hasSuperordinate.id", id, "Bände", ("zugehöriger Band", "zugehörige Bände")) @subordinated("containedIn.id", id, "Enthält", ("Beitrag", "Beiträge")) }