Skip to content

Commit

Permalink
MIR-1365 Allow to configure max value for xed template subject.simple…
Browse files Browse the repository at this point in the history
… and subject.simple.required
  • Loading branch information
Possommi committed Nov 4, 2024
1 parent ed74361 commit deae886
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1812,7 +1812,7 @@
</xed:template>

<xed:template id="subject.simple">
<xed:repeat xpath="mods:subjectXML" min="1" max="10">
<xed:repeat xpath="mods:subjectXML" min="1" max="{$MIR.Editor.subject.simple.repeat.max}">
<div class="form-group row {$xed-validation-marker}">
<label class="col-md-3 col-form-label text-right">
<xed:output i18n="mir.subject.topic"/>
Expand All @@ -1828,7 +1828,7 @@
</xed:template>

<xed:template id="subject.simple.required">
<xed:repeat xpath="mods:subjectXML" min="1" max="10">
<xed:repeat xpath="mods:subjectXML" min="1" max="{$MIR.Editor.subject.simple.required.repeat.max}">
<div class="form-group row {$xed-validation-marker}">
<label class="col-md-3 col-form-label text-right">
<xed:output i18n="mir.subject.topic"/>
Expand Down
2 changes: 2 additions & 0 deletions mir-module/src/main/resources/config/mir/mycore.properties
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,8 @@ MIR.Editor.Validate.Genre.Licence=journal newspaper series lecture blog
MIR.editor.start.coordinates.lat=50.930453
MIR.editor.start.coordinates.lon=11.587786
MIR.Editor.Default.State=submitted
MIR.Editor.subject.simple.repeat.max=10
MIR.Editor.subject.simple.required.repeat.max=10

##############################################################################
# #
Expand Down

0 comments on commit deae886

Please sign in to comment.