{search-result-count:=0}
library:=filter(@name,"(.*)_anchor",1)

{search-result-count:=$search-result-count + filter(.,"([0-9]+) *Treffer", 1)}

book := object(), book.id:=@id, book.digibib-url:=concat("http://www.digibib.net/",a/@href), book.title:=normalize-space(a/deep-text('')), book.library:=filter(a/@href, "DB=([^=&]+)", 1)
book.author:=normalize-space(filter(./deep-text(''),'(.*) *- *[0-9]*$', 1)), book.year:=normalize-space(filter(./deep-text(''), '[0-9]*$'))
?