erschienen |
{
book.year:=if (contains(., "/")) then translate(substring-after(., "/"), "[]", "") (: translate for cases like [2009]? :)
else if (contains(., ",")) then translate(extract(., ",[^,0-9]*([0-9]+)[^,0-9]*$", 1), "[]", "")
else $book.year,
book.location:=if (contains(., ":")) then substring-before(., ":") else $book.location,
book.publisher:=if (contains(., ":") and contains(., "/")) then substring-before(substring-after(., ":"), "/")
else if (contains(., ":") and contains(., ",")) then substring-before(substring-after(., ":"), ",")
else $book.publisher
} |