From 96c2bbc9db35369d198a234928d51c766780d7f1 Mon Sep 17 00:00:00 2001 From: Alex Arnaud <alex.arnaud@biblibre.com> Date: Mon, 4 May 2015 14:18:03 +0200 Subject: [PATCH] hotline #24569 - Repare variable 'import_format' in database --- VERSIONS_STABLE/#24569 | 1 + cosmogramme/php/_init.php | 2 +- cosmogramme/sql/patch/patch_234.php | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 VERSIONS_STABLE/#24569 create mode 100644 cosmogramme/sql/patch/patch_234.php diff --git a/VERSIONS_STABLE/#24569 b/VERSIONS_STABLE/#24569 new file mode 100644 index 00000000000..af8fb3a0646 --- /dev/null +++ b/VERSIONS_STABLE/#24569 @@ -0,0 +1 @@ +ticket #24569: Répare la liste des format de fichiers dans la variable 'import_format' diff --git a/cosmogramme/php/_init.php b/cosmogramme/php/_init.php index d43579e408c..ab235f99dd2 100644 --- a/cosmogramme/php/_init.php +++ b/cosmogramme/php/_init.php @@ -2,7 +2,7 @@ // Constantes error_reporting(E_ERROR | E_PARSE); -define("PATCH_LEVEL","233"); +define("PATCH_LEVEL","234"); define("APPLI","cosmogramme"); define("COSMOPATH", "/var/www/html/vhosts/opac2/www/htdocs"); diff --git a/cosmogramme/sql/patch/patch_234.php b/cosmogramme/sql/patch/patch_234.php new file mode 100644 index 00000000000..4adb9ea3f5c --- /dev/null +++ b/cosmogramme/sql/patch/patch_234.php @@ -0,0 +1,5 @@ +<?php +$format_liste = "0:Unimarc\r\n1:Ascii tabulé\r\n2:Ascii séparé par des points-virgule\r\n3:Ascii séparé par des \"|\"\r\n4:Xml\r\n5:CSV\r\n6:Marc21\r\n"; + +$adapter = Zend_Db_Table::getDefaultAdapter(); +$adapter->query("UPDATE variables SET liste = '$format_liste' WHERE clef = 'import_format'"); -- GitLab