Commit ee3b386a authored by Jérôme Chauveau's avatar Jérôme Chauveau
Browse files

comportement spécifique EAD lors du déploiement d'une nouvelle édition ead :...

comportement spécifique EAD lors du déploiement d'une nouvelle édition ead : template et activation des plugins side_toc et ead_basket
parent 1e05ad03
Loading
Loading
Loading
Loading
+20
Changes for tools/ead_edition_conf_tmpl.xml: 20 added lines, 0 removed lines.
Original line number Diff line number Diff line
 <edition xml:id="%ID%" dbpath="%DB%" env="ead" prettyName="My EAD edition">

   <xsltAddons>
   </xsltAddons>

   <textOptions>
   </textOptions>

    <plugins>
       <plugin name="side_toc"/>
       <plugin name="ead_basket">
          <parameters>
             <parameter key="CIRCE_ENDPOINT" value="https://..."/>
             <parameter key="CIRCE_SECRET" value="..."/>
             <parameter key="CIRCE_APP_UUID" value="..."/>
          </parameters>
       </plugin>
    </plugins>
   
 </edition>
+1 −4
Changes for tools/edition_conf_tmpl.xml: 1 added line, 4 removed lines.
Original line number Diff line number Diff line
 <edition xml:id="%ID%" dbpath="%DB%" env="%ENV%"> 
 <edition xml:id="%ID%" dbpath="%DB%" env="%ENV%" prettyName="My edition">

   <xsltAddons>
   </xsltAddons>
@@ -6,9 +6,6 @@
   <textOptions>
   </textOptions>

   <routeList> 
   </routeList>

   <plugins>
   </plugins>
   
+2 −2
Changes for tools/edition_manager.js: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -24,9 +24,9 @@ const EDITIONS_FOLDER_PATH = __dirname + "/../editions/";
const MAIN_CONFIG_FILE_NAME = "configuration.xml";
const MAIN_CONFIG_FILE = CONFIGURATION_FOLDER_PATH + MAIN_CONFIG_FILE_NAME;
const TEMPLATE_CONFIG_FILE = __dirname + "/edition_conf_tmpl.xml";
const EAD_TEMPLATE_CONFIG_FILE = __dirname + "/ead_edition_conf_tmpl.xml";
const DEMO_CONFIG_INC = EDITIONS_FOLDER_PATH + "demo_lorem/demo_lorem_config_inc.xml"


if (process.argv[2] == "-demo")
    include_baseconf("demo_lorem", DEMO_CONFIG_INC);
else if (process.argv[2] == "-new")
@@ -45,7 +45,7 @@ function new_edition(editionId, db, type) {
  de base.
*/
 function create_project_baseconf(id, db, type_env) {
    var template = fs.readFileSync(TEMPLATE_CONFIG_FILE, {encoding: 'utf-8'})
    var template = fs.readFileSync(type_env === 'ead' ? EAD_TEMPLATE_CONFIG_FILE : TEMPLATE_CONFIG_FILE, {encoding: 'utf-8'})
    template = template.replace("%ID%", id).replace("%DB%", db).replace("%ENV%", type_env);
    //Écriture du fichier de config.
    var filename = id + "_config_inc.xml";
+7
Changes for tools/max.sh: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -254,6 +254,13 @@ then
    mkdir $DIRECTORY/../editions/$project_id/ui/images
    touch $DIRECTORY/../editions/$project_id/ui/css/$project_id.css
    cp $DIRECTORY/menu_default.xml $DIRECTORY/../editions/$project_id/menu.xml
    if [ $xmlns = 'ead' ]
    then
      enable_plugin 'ead_basket'
      enable_plugin 'side_toc'
    fi
    echo ''
    echo "Project "$project_id" is ready !"
    exit 0
fi