Skip to content

Commit

Permalink
Merged in task/dspace-cris-2023_02_x/DSC-1667 (pull request DSpace#3032)
Browse files Browse the repository at this point in the history
[DSC-1667] add html and longhtml rendering types to validator

Approved-by: Francesco Molinaro
  • Loading branch information
Andrea Barbasso authored and FrancescoMolinaro committed Nov 13, 2024
2 parents f83893f + 45775b8 commit 2fa07ba
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dspace/config/spring/api/cris-layout-tool-render-validation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,16 @@

<bean id="valuePairSupplier" class="org.dspace.layout.script.supplier.ValuePairSupplier"/>

<bean id="htmlRenderValidator" class="org.dspace.layout.script.service.impl.CrisLayoutToolRenderValidatorImpl">
<property name="name" value="html"/>
<property name="fieldType" value="METADATA"/>
<property name="subTypeValidationRule" value="NOT_ALLOWED"/>
</bean>

<bean id="longhtmlRenderValidator" class="org.dspace.layout.script.service.impl.CrisLayoutToolRenderValidatorImpl">
<property name="name" value="longhtml"/>
<property name="fieldType" value="METADATA"/>
<property name="subTypeValidationRule" value="NOT_ALLOWED"/>
</bean>
</beans>

0 comments on commit 2fa07ba

Please sign in to comment.