Problem opening work with FRBR-component works
Created by: bwbohl
Edirom Online fails opening a work that has mei:work elements in it's componenGroup due to getLinkTarget.xql
's way of defining:
if(exists($doc//mei:mei) and exists($doc//mei:work))
then($doc//mei:work/mei:titleStmt/data(mei:title[1]))
this should be the following or similar instead:
if(exists($doc//mei:mei) and exists($doc//mei:workDesc/mei:work))
then($doc//mei:workDesc/mei:work/mei:titleStmt/data(mei:title[1]))