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*: Wiki Markup
Pour le bean class="org.orioai.workflow.beans.MetadataType", on ajoute à la liste des forms un dcarchiveform-3:
...
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> |
...
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 \ !