Skip to content

Commit

Permalink
Revert "Alternative query for expression titles omitting titleStmt"
Browse files Browse the repository at this point in the history
This reverts commit 19d606d.
  • Loading branch information
Matthias Richter committed Aug 18, 2023
1 parent 19d606d commit 254ab62
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 if (m:title/text()) then 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 concat('[',$exp,']')"/>
<h:div>
<xf:trigger>
<xf:label><xf:output value="$title"/></xf:label>
Expand Down

0 comments on commit 254ab62

Please sign in to comment.