Page History

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Création des classifications

Déposer Déposez les vocabulaires fournis par UNISCIEL dans: ori-oai-md-editor-svn/WEB-INF/resources/forms/ori-md-editor/common/xml-vocab-local

Déclaration des vocabulaires dans le formulaire LOM

Dans le formulaire LOM que vous souhaitez modifier, déclarez ces nouveaux vocabulaires dans le fichier form.xhtml:

Dupliquez le vocabulaire common_lom_clas_source et renommez le en : common_lom_clas_source_lille1. Placez ce nouveau vocabulaire dans :ori-oai-vocabulary-svn/conf/properties/ori_vocabularies/override.

Une fois dupliqué, il faut le modifier pour déclarer les nouvelles classifications.

Déclaration des vocabulaires dans le formulaire LOM

Dans le formulaire LOM que vous souhaitez modifier, déclarez ces nouveaux vocabulaires dans le fichier form.xhtml:

Code Block

<xforms:instance id="chebocar_taxonomie"
Code Block

<xforms:instance id="chebocar_taxonomie" src="/fr/service/custom/ori-md-editor/oriGetVocab?vocab=Chebocar-2.0_vdex" xxforms:readonly="true" xxforms:cache="true"/>

<xforms:instance src="/fr/service/custom/ori-md-editor/oriGetVocab?vocab=JaHe-2.0-vdex" xxforms:readonly="true" xxforms:cache="true"/>

<xforms:instance src="/fr/service/custom/ori-md-editor/oriGetVocab?vocab=JaPeSeChebocar-2.0_vdex" xxforms:readonly="true" xxforms:cache="true"/>

<xforms:instance src="/fr/service/custom/ori-md-editor/oriGetVocab?vocab=SciencesHommesSocietesJaHe-Dewey2.0-vdex-v1.0" xxforms:readonly="true" xxforms:cache="true"/>

<xforms:instance src="/fr/service/custom/ori-md-editor/oriGetVocab?vocab=TaCBaHaJaPeSe-2.0_vdex" xxforms:readonly="true" xxforms:cache="true"/>

<xforms:instance src="/fr/service/custom/ori-md-editor/oriGetVocab?vocab=Thokavi-2SciencesHommesSocietes-Dewey-vdex-v1.0_vdex" xxforms:readonly="true" xxforms:cache="true"/>

<xforms:instance src="/fr/service/custom/ori-md-editor/oriGetVocab?vocab=Unit-informatique-TaCBaHa-2.0_vdex" xxforms:readonly="true" xxforms:cache="true"/>

Modification du formulaire LOM

Dans le fichier case-classification.xml:



<xforms:instance src="/fr/service/custom/ori-md-editor/oriGetVocab?vocab=Thokavi-2.0_vdex" xxforms:readonly="true" xxforms:cache="true"/>

<xforms:instance src="/fr/service/custom/ori-md-editor/oriGetVocab?vocab=Unit-informatique-vdex" xxforms:readonly="true" xxforms:cache="true"/>

Modification du formulaire LOM

Dans le fichier case-classification.xml:

Wiki Markup
En dessous du bloc «Dewey22{^}e^ éd» ( bloc commençant par: <xforms:group ref=".\[../lom:source/
Wiki Markup
En dessous du bloc «Dewey22{^}e^ éd» ( bloc commençant par: <xforms:group ref=".\[../lom:source/lom:string = 'CDD 22e éd.'\]">), ajouter ces lignes ( [télécharger le fichier correspondant au code suivant si besoin|^case-classification.xml] ):

...

Code Block
<xforms:group ref=".[not(../lom:source/lom:string = ('Classification UNIT', 'CDD 22e éd.', 'Classification Chebocar v2.0', 'Classification JaHe v2.0', 'Classification JaPeSe v2.0', 'Classification SciencesHommesSocietes v1.0', 'Classification TaCBaHa v2.0', 'Classification Thokavi v2.0', 'Classification Unit-informatique')) and not(starts-with(../lom:source/lom:string, 'Universités Numériques Thématiques'))]">

Création des boites de dialogue

En regardant les lignes précédemment ajoutées, vous vous rendrez compte que l’on fait appel aux vocabulaires mais aussi à des fenêtres de dialogue. Télécharger ce fichier et mettez-les à la racine du votre formulaire.

Il faut à présent les déclarer dans le fichier form.xhtml pour pouvoir les utiliser.

En bas de ce fichier, après la ligne:

Code Block

<xi:include href="oxf:/forms/ori-md-editor/lom-full/form/dialog-dewey-search.xml"/>

Ajoutez ceci:

Code Block

<xi:include href="oxf:/forms/ori-md-editor/votre_formulaire/form/dialog-chebocar-taxonomy-search.xml"/>

<xi:include href="oxf:/forms/ori-md-editor/votre_formulaire/form/dialog-jahe-taxonomy-search.xml"/>

<xi:include href="oxf:/forms/ori-md-editor/votre_formulaire/form/dialog-japese-taxonomy-search.xml"/>

<xi:include href="oxf:/forms/ori-md-editor/votre_formulaire/form/dialog-SciencesHommesSocietes-taxonomy-search.xml"/>

<xi:include href="oxf:/forms/ori-md-editor/votre_formulaire/form/dialog-tacbaha-taxonomy-search.xml"/>

<xi:include href="oxf:/forms/ori-md-editor/votre_formulaire/form/dialog-thokavi-taxonomy-search.xml"/>

<xi:include href="oxf:/forms/ori-md-editor/votre_formulaire/form/dialog-unit-informatique-taxonomy-search.xml"/>

Prise en compte des modifications

...

 'Classification Unit-informatique')) and not(starts-with(../lom:source/lom:string, 'Universités Numériques Thématiques'))]">

Création des boites de dialogue

En regardant les lignes précédemment ajoutées, vous vous rendrez compte que l’on fait appel aux vocabulaires mais aussi à des fenêtres de dialogue. Télécharger ce fichier et mettez-les à la racine du votre formulaire.

Il faut à présent les déclarer dans le fichier form.xhtml pour pouvoir les utiliser.

En bas de ce fichier, après la ligne:

Code Block

<xi:include href="oxf:/forms/ori-md-editor/lom-full/form/dialog-dewey-search.xml"/>

Ajoutez ceci:

Code Block

<xi:include href="oxf:/forms/ori-md-editor/votre_formulaire/form/dialog-chebocar-taxonomy-search.xml"/>

<xi:include href="oxf:/forms/ori-md-editor/votre_formulaire/form/dialog-jahe-taxonomy-search.xml"/>

<xi:include href="oxf:/forms/ori-md-editor/votre_formulaire/form/dialog-japese-taxonomy-search.xml"/>

<xi:include href="oxf:/forms/ori-md-editor/votre_formulaire/form/dialog-SciencesHommesSocietes-taxonomy-search.xml"/>

<xi:include href="oxf:/forms/ori-md-editor/votre_formulaire/form/dialog-tacbaha-taxonomy-search.xml"/>

<xi:include href="oxf:/forms/ori-md-editor/votre_formulaire/form/dialog-thokavi-taxonomy-search.xml"/>

<xi:include href="oxf:/forms/ori-md-editor/votre_formulaire/form/dialog-unit-informatique-taxonomy-search.xml"/>

Prise en compte des modifications

  • Eteindre le tomcat du md-editor
  • Ant all-md-editor depuis le répertoire quick-install
  • Démarrer le tomcat du md-editor

<?xml version="1.0" encoding="utf-8"?>
<vdex:vdex xmlns:vdex="http://www.imsglobal.org/xsd/imsvdex_v1p0"
           xmlns:orioai="http://www.ori-oai.org/static/xsd/orioaivocab"
           xmlns:xforms="http://www.w3.org/2002/xforms"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://www.imsglobal.org/xsd/imsvdex_v1p0 http://www.imsglobal.org/xsd/imsvdex_v1p0.xsdImage Added"
           profileType="flatTokenTerms">
<vdex:vocabName>
  <vdex:langstring language="fr">classifications source objectif discipline</vdex:langstring>
</vdex:vocabName>
<vdex:vocabIdentifier isRegistered="false">classifications_source_objectif_discipline</vdex:vocabIdentifier>
<vdex:term>
  <vdex:termIdentifier>Classification 100 Dewey</vdex:termIdentifier>
  <vdex:caption>
    <vdex:langstring language="fr">Classification 100 Dewey</vdex:langstring>
    <vdex:langstring language="en">Classification 100 Dewey</vdex:langstring>
  </vdex:caption>
</vdex:term>
  <vdex:term>
    <vdex:termIdentifier>CDD 22e éd.</vdex:termIdentifier>
    <vdex:caption>
      <vdex:langstring language="fr">CDD 22e éd.</vdex:langstring>
      <vdex:langstring language="en">DDC 22nd ed</vdex:langstring>
    </vdex:caption>
  </vdex:term>
<vdex:term>
  <vdex:termIdentifier>Classification UNIT</vdex:termIdentifier>
  <vdex:caption>
   <vdex:langstring language="fr">Classification UNIT</vdex:langstring>
   <vdex:langstring language="en">Classification UNIT</vdex:langstring>
  </vdex:caption>
</vdex:term>
  <vdex:term>
<vdex:termIdentifier>Universités Numériques Thématiques 2009 http%3A//www.universites-numeriques.fr</vdex:termIdentifier>
<vdex:caption>
  <vdex:langstring language="fr">Universités Numériques Thématiques 2009 http://www.universites-numeriques.frImage Added</vdex:langstring>
</vdex:caption>
</vdex:term>
<vdex:term>
  <vdex:termIdentifier>Classification Chebocar</vdex:termIdentifier>
  <vdex:caption>
   <vdex:langstring language="fr">Classification Chebocar v2.0</vdex:langstring>
   <vdex:langstring language="en">Classification Chebocar v2.0</vdex:langstring>
  </vdex:caption>
</vdex:term>
<vdex:term>
  <vdex:termIdentifier>Classification JaHe</vdex:termIdentifier>
  <vdex:caption>
   <vdex:langstring language="fr">Classification JaHe v2.0</vdex:langstring>
   <vdex:langstring language="en">Classification JaHe v2.0</vdex:langstring>
  </vdex:caption>
</vdex:term>
<vdex:term>
  <vdex:termIdentifier>Classification JaPeSe</vdex:termIdentifier>
  <vdex:caption>
   <vdex:langstring language="fr">Classification JaPeSe v2.0</vdex:langstring>
   <vdex:langstring language="en">Classification JaPeSe v2.0</vdex:langstring>
  </vdex:caption>
</vdex:term>
<vdex:term>
  <vdex:termIdentifier>Classification SciencesHommesSocietes</vdex:termIdentifier>
  <vdex:caption>
   <vdex:langstring language="fr">Classification SciencesHommesSocietes v1.0</vdex:langstring>
   <vdex:langstring language="en">Classification SciencesHommesSocietes v1.0</vdex:langstring>
  </vdex:caption>
</vdex:term>
<vdex:term>
  <vdex:termIdentifier>Classification TaCBaHa</vdex:termIdentifier>
  <vdex:caption>
   <vdex:langstring language="fr">Classification TaCBaHa v2.0</vdex:langstring>
   <vdex:langstring language="en">Classification TaCBaHa v2.0</vdex:langstring>
  </vdex:caption>
</vdex:term>
<vdex:term>
  <vdex:termIdentifier>Classification Thokavi</vdex:termIdentifier>
  <vdex:caption>
   <vdex:langstring language="fr">Classification Thokavi v2.0</vdex:langstring>
   <vdex:langstring language="en">Classification Thokavi v2.0</vdex:langstring>
  </vdex:caption>
</vdex:term>
<vdex:term>
  <vdex:termIdentifier>Classification Unit-informatique</vdex:termIdentifier>
  <vdex:caption>
   <vdex:langstring language="fr">Classification Unit-informatique</vdex:langstring>
   <vdex:langstring language="en">Classification Unit-informatique</vdex:langstring>
  </vdex:caption>
</vdex:term>
</vdex:vdex>

...