Skip to content

Commit

Permalink
Alternative query for expression titles omitting titleStmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Richter committed Aug 18, 2023
1 parent e0251fb commit 19d606d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forms/includes/source_list.xbl
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
<xf:var name="target" select="substring-after(m:relationList/m:relation[@rel='isEmbodimentOf']/@target,'#')"/>
<xf:repeat nodeset="$data-instance//m:workList/m:work/m:expressionList/m:expression[@xml:id!=$target or not($target)]">
<xf:var name="exp" select="@xml:id"/>
<xf:var name="title" select="if (m:titleStmt/m:title/text()) then m:titleStmt/m:title[text()][1] else concat('[',$exp,']')"/>
<xf:var name="title" select="if (m:titleStmt/m:title/text()) then m:titleStmt/m:title[text()][1] else if (m:title/text()) then m:title[text()][1] else concat('[',$exp,']')"/>
<h:div>
<xf:trigger>
<xf:label><xf:output value="$title"/></xf:label>
Expand Down

0 comments on commit 19d606d

Please sign in to comment.