Wiki Markup |
---|
Pour déclarer un nouveau formulaire on édite le fichier *\[ORI_HOME\]/src/ori-oai-workflow-svn/custom/properties/workflows/contrib_dc_3/addonContext.xml*: |
Pour le bean class="org.orioai.workflow.beans.MetadataType", on ajoute à la liste des forms un dcarchiveform-3:
Code Block |
---|
|
<property name="forms">
<list>
<ref bean="dcform-3"/>
<ref bean="dcarchiveform-3"/>
</list>
</property>
|
Et on définit ce nouveau bean dcarchiveform-3 juste après le bean dcform-3 par exemple :
Code Block |
---|
|
<bean class="org.orioai.workflow.beans.Form" id="dcarchiveform-3">
<property name="title" value="Fiche Archive - OAI DC"/>
<property name="permissionMask" value="USE_DC3_ARCHIVE_FORM"/>
<property name="url" value="${mdeditor.url}/fr/ori-md-editor/oaidc-archive-full/edit"/>
</bean>
|
Wiki Markup |
---|
Ici on indique que ce nouveau formulaire a pour URL *$\{mdeditor.url\}/fr/ori-md-editor/oaidc-archive-full/edit* (*mdeditor.url* étant une propriété spring globale définie dans le fichier *\[ORI_HOME\]/src/ori-oai-workflow-svn/conf/properties/main-config.properties,* elle même valorisée par le paramètre *PUBLIC_URL_MD_EDITOR de common-parameters.properties*), faut-il encore le construire dans ori-oai-md-editor \! |