{if (get("singleBookResult", "") != "") then book := {"_detail-url": $url} else ()}
Signatur|Regalstandort{$book.id := text()} ? Buchcover{book.image-url := resolve-uri(@src)}?
?
^(Titel|Title):{$book.title}
^Autor|Verfasser{$book.author}
^Ort:{$book.location}
^Verlag:{$book.publisher}
^Jahr:{$book.year}
^ISBN:{$book.isbn}
{$temp}{$book($temp||"!") := .}
^(Titel|Title):{$book.title}
^Autor|Verfasser{$book.author}
^Ort:{$book.location}
^Verlag:{$book.publisher}
^Jahr:{$book.year}
^ISBN:{$book.isbn}
{$temp}{$book($temp||"!") := .}
^Titelzusatz$book.title:= concat($book.title, " ", (./following-sibling::*[1] | ./following-sibling::text())[normalize-space(.)][1]) ^(Titel|Title)$book.title:= (./following-sibling::*[1] | ./following-sibling::text())[normalize-space(.)][1] ^Autor|^Verfasser$book.author:= (./following-sibling::*[1] | ./following-sibling::text())[normalize-space(.)][1] ^Ort$book.location:= (./following-sibling::*[1] | ./following-sibling::text())[normalize-space(.)][1] ^Verlag$book.publisher:= (./following-sibling::*[1] | ./following-sibling::text())[normalize-space(.)][1] ^Jahr$book.year:= (./following-sibling::*[1] | ./following-sibling::text())[normalize-space(.)][1] ISBN$book.isbn:= (./following-sibling::*[1] | ./following-sibling::text())[normalize-space(.)][1] {$book(. || "!") := (./following-sibling::*[1] | ./following-sibling::text())[normalize-space(.)][1]/(if (exists(@href) and contains(@href, '://')) then x'{.} ( {@href} )' else .)}