Skip to content

Commit

Permalink
remove condition so all realtedItems can be edited
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulBorchert committed May 3, 2024
1 parent eca8e00 commit b10451a
Showing 1 changed file with 68 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,74 @@
<xed:validate xpath="//mods:part/@order" type="integer" display="global" i18n="mir.validation.order" />
</xed:template>

<xed:template id="related.item.search.of.all.items">
<fieldset>
<legend class="mir-fieldset-legend">Related Item</legend><!-- TODO: i18n -->
<xed:repeat xpath="mods:relatedItem" min="1" max="10">
<div class="mir-fieldset-content mir-related-item-search">
<div class="form-group row">
<div class="col-md-3">
<xed:bind xpath="@type">
<select class="form-control">
<option value="host">
<xed:output i18n="mir.relatedItem.host" />
</option>
<option value="series">
<xed:output i18n="mir.relatedItem.series" />
</option>
<option value="preceding">
<xed:output i18n="mir.relatedItem.preceding" />
</option>
<option value="original">
<xed:output i18n="mir.relatedItem.original" />
</option>
<option value="isReferencedBy">
<xed:output i18n="mir.relatedItem.isReferencedBy" />
</option>
<option value="references">
<xed:output i18n="mir.relatedItem.references" />
</option>
<option value="reviewOf">
<xed:output i18n="mir.relatedItem.reviewOf" />
</option>
<option value="otherVersion">
<xed:output i18n="mir.relatedItem.otherVersion" />
</option>
<option value="otherFormat">
<xed:output i18n="mir.relatedItem.otherFormat" />
</option>
</select>
</xed:bind>
</div>
<div class="col-md-6">
<div class="controls form-inline">
<input type="button" class="form-control mir-relatedItem-select" value="{i18n:mir.editing.related.select}" />
<span />
<xed:bind xpath="@xlink:href">
<input type="hidden" />
</xed:bind>
</div>
</div>
<mir:help-pmud help-text="{i18n:mir.help.related.item}" pmud="true" />
</div>
<xed:include ref="title.nonrequired" />
<xed:include ref="genre.simple.nonrequired" />
<mir:textfield xpath="mods:location/mods:url[@access='raw object']" help-text="{i18n:mir.help.link.raw_object}"
placeholder="{i18n:mir.placeholder.abstract.link}" />
<xed:include ref="host.volume" />
<xed:include ref="host.issue" />
<xed:include ref="host.articlenumber" />
<xed:include ref="host.pages" />
<xed:include ref="host.order" />
</div>
</xed:repeat>
<script src="{$WebApplicationBaseURL}js/mir/relatedItem-modal.min.js" type="text/javascript"></script>
<xed:validate xpath="//mods:relatedItem[@xlink:href!='']" test="(@type!='isReferencedBy')" i18n="mir.validation.relatedItem" display="global" />
</fieldset>
</xed:template>



</xed:template>


0 comments on commit b10451a

Please sign in to comment.