Skip to content

Commit

Permalink
Merge pull request #191 from Edirom/issue-171
Browse files Browse the repository at this point in the history
Update query for source titles outside titleStmt
  • Loading branch information
peterstadler authored Jan 8, 2024
2 parents 869f488 + 05c63f1 commit 7c7d236
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 7c7d236

Please sign in to comment.