Commit 2cecbf23 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

ajustements i18n du script de création d'une édition

parent 50f29513
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -98,7 +98,8 @@ function max:page($project, $page){
    }
    catch err:config {max:max-error('', $err:description,$err:module, $err:line-number)}
    catch err:FODC0002 {max:max-error('', $err:description,$err:module, $err:line-number)}
    catch err:XPTY0004 {max:max-error('Configuration dupliquée - Veuillez vérifier votre fichier de configuration', $err:description,$err:module, $err:line-number)}
    catch err:FODC0007 {max:max-error('Édition inconnue - Veuillez vérifier votre fichier de configuration.', $err:description,$err:module, $err:line-number)}
    catch err:XPTY0004 {max:max-error('Configuration dupliquée - Veuillez vérifier votre fichier de configuration.', $err:description,$err:module, $err:line-number)}
};


+10 −2
Original line number Diff line number Diff line
@@ -251,7 +251,7 @@ new_edition_build(){
    mkdir $DIRECTORY/../editions
  fi
  mkdir $DIRECTORY/../editions/$1
  $BASEX_BIN -bprojectId=$1 -bdbPath=$2 -benvType=$3 $DIRECTORY"/xq/create_project_config.xq"
  $BASEX_BIN -bprojectId=$1 -bdbPath=$2 -benvType=$3 -bmaxPath=$DIRECTORY/.. $DIRECTORY"/xq/create_project_config.xq"
  include_project_config $1
  format_configuration_file
}
@@ -301,7 +301,7 @@ then
    new_edition_build $project_id $db_path $xmlns
    read -e -p "XML sources path ? " data_path
    db_project_feed $db_path $data_path
    mkdir $DIRECTORY/../editions/$project_id/fragments
    mkdir -p $DIRECTORY/../editions/$project_id/fragments/fr
    mkdir $DIRECTORY/../editions/$project_id/xq
    mkdir $DIRECTORY/../editions/$project_id/ui
    mkdir $DIRECTORY/../editions/$project_id/ui/css
@@ -313,6 +313,14 @@ then
    mkdir $DIRECTORY/../editions/$project_id/ui/xsl

    touch $DIRECTORY/../editions/$project_id/ui/css/$project_id.css

    #creates about frag page
    touch $DIRECTORY/../editions/$project_id/fragments/fr/about.frag.html
    echo "<section>" > $DIRECTORY/../editions/$project_id/fragments/fr/about.frag.html
    echo "<h1>À propos</h1>" >> $DIRECTORY/../editions/$project_id/fragments/fr/about.frag.html
    echo "<p>Modifiez moi dans editions/$project_id/fragments/fr/about.frag.html.</p>" >> $DIRECTORY/../editions/$project_id/fragments/fr/about.frag.html
    echo "</section>" >> $DIRECTORY/../editions/$project_id/fragments/fr/about.frag.html

    cp $DIRECTORY/menu_default.xml $DIRECTORY/../editions/$project_id/menu.xml
    if [ $xmlns = 'ead' ]
    then
+4 −0
Original line number Diff line number Diff line
@@ -9,4 +9,8 @@
    <id>sommaire</id>
    <target>sommaire.html</target>
  </entry>
  <entry type="main">
    <id>about</id>
    <target>about.html</target>
  </entry>
</menu>
+2 −1
Original line number Diff line number Diff line
(: création du fichier de configuration de base pour un nouveau projet:)

declare variable $maxPath external;
declare variable $projectId external;
declare variable $dbPath external;
declare variable $envType external;
@@ -25,4 +26,4 @@ let $config :=

        </edition>

return file:write('../editions/'||$projectId||'/'||$projectId||'_config_inc.xml', $config)
return file:write($maxPath || '/editions/'||$projectId||'/'||$projectId||'_config_inc.xml', $config)