Skip to content

Commit

Permalink
TUBS-59 use issuing body instead of editor input field
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrebs committed Nov 16, 2024
1 parent 070fdbc commit 1326f76
Show file tree
Hide file tree
Showing 4 changed files with 444 additions and 417 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,36 @@
<xed:include ref="comment" />
</xed:template>

<xed:template id="isb.organization.repeat">
<xed:repeat xpath="mods:name[@type='corporate'][mods:role/mods:roleTerm[@authority='marcrelator'][@type='code']='isb']"><!-- Issuing body [isb] -->
<div class="form-group row">
<label class="col-md-3 col-form-label text-right">
<xed:output i18n="mir.isbOrganization" />
:
</label>
<div class="col-md-6">
<div class="search-organization">
<xed:bind xpath="@type" initially="corporate">
<input type="hidden" class="nameType" />
</xed:bind>
<xed:bind xpath="mods:displayForm">
<input type="text" size="26" class="form-control form-control-inline" data-search="searchEntity" data-search-type="select"
data-search-entity-type="organisation" data-search-output=".nameIdentifier" data-search-output-type=".nameIdentifierType" data-search-output-name-type=".nameType" data-search-button="{i18n:button.search}"
data-search-button-loading="{i18n:button.loading}" data-search-result-empty="{i18n:mir.searchIdentifier.noResult}" data-target=".search-organization"
placeholder="{i18n:mir.placeholder.name.organization}" />
</xed:bind>
<xed:bind xpath="mods:nameIdentifier">
<input type="hidden" class="nameIdentifier" />
</xed:bind>
<xed:bind xpath="mods:nameIdentifier/@type">
<input type="hidden" class="nameIdentifierType" />
</xed:bind>
</div>
</div>
<mir:help-pmud help-text="{i18n:mir.help.editor.isb}" pmud="true" />
</div>
</xed:repeat>
</xed:template>

<!-- ========== overwrite MIR templates ========== -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<xed:include ref="title.original" />
<xed:include ref="title.translated" />
<xed:include ref="editor.repeated" />
<xed:include ref="isb.organization.repeat" />
<xed:include ref="date.issued.datetimepicker" />
<xed:include ref="extent" />
<xed:include ref="institutes" />
Expand Down
Loading

0 comments on commit 1326f76

Please sign in to comment.