Skip to content

Commit

Permalink
[#133] fix title validation for non standalone object types (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrebs authored Jul 19, 2022
1 parent 006000e commit e2ee849
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<!-- title required for all non standalone object types -->
<xed:validate xpath="//mods:mods/mods:relatedItem[@type='host']/mods:titleInfo/mods:title"
test="string-length(.) &gt; 0"
relevant-if="//mods:mods/mods:genre='entry' or //mods:mods/mods:genre='article' or //mods:mods/mods:genre='chapter' or //mods:mods/mods:genre='preface' or //mods:mods/mods:genre='abstract' or //mods:mods/mods:genre='conference_essay' or //mods:mods/mods:genre='entry' or //mods:mods/mods:genre='video_contribution' or //mods:mods/mods:genre='blog_entry' or //mods:mods/mods:genre='series' or (string-length(//mods:mods/mods:relatedItem[@type='host']/mods:genre[@type='intern']) &gt; 0)"
relevant-if="//mods:mods/mods:relatedItem[@type='host'] and (//mods:mods/mods:genre='entry' or //mods:mods/mods:genre='article' or //mods:mods/mods:genre='chapter' or //mods:mods/mods:genre='preface' or //mods:mods/mods:genre='abstract' or //mods:mods/mods:genre='conference_essay' or //mods:mods/mods:genre='entry' or //mods:mods/mods:genre='video_contribution' or //mods:mods/mods:genre='blog_entry' or //mods:mods/mods:genre='series' or (string-length(//mods:mods/mods:relatedItem[@type='host']/mods:genre[@type='intern']) &gt; 0))"
i18n="ubo.title.validation" display="global"/>

<script type="text/javascript">
Expand Down

0 comments on commit e2ee849

Please sign in to comment.