diff --git a/VERSIONS_HOTLINE/29371 b/VERSIONS_HOTLINE/29371 index a50428b8c20bc8b71bc5a6952a3999130d293255..400153977719da37092f3bb48e36ec72008925ac 100644 --- a/VERSIONS_HOTLINE/29371 +++ b/VERSIONS_HOTLINE/29371 @@ -1 +1 @@ - - ticket #29371 : Amdin Bokeh : lien N° de version pointe vers le fichier stable ou master \ No newline at end of file + - ticket #29371 : Admin Bokeh : lien N° de version pointe vers le fichier stable ou master \ No newline at end of file diff --git a/library/Class/AdminVar.php b/library/Class/AdminVar.php index 15df4cf57c892bc9bb9ca834a5309f208d9635b2..87eeba675d6be62636ff5fd0abbcfa07fe512957 100644 --- a/library/Class/AdminVar.php +++ b/library/Class/AdminVar.php @@ -151,7 +151,7 @@ class Class_AdminVarLoader extends Storm_Model_Loader { 'FACETTE_INTERET_LIBELLE' => Class_AdminVar_Meta::newDefault('Libellé de la facette centres d\'intérêt'), 'FACETTE_MATIERE_LIBELLE' => Class_AdminVar_Meta::newDefault('Libellé de la facette matière'), 'FACETTE_TAG_LIBELLE' => Class_AdminVar_Meta::newDefault('Libellé de la facette tag'), - 'UNLEASHED_FACETS' => Class_AdminVar_Meta::newMultiInput($this->_('Liste des codes des facettes qui ne sont pas limitées à l\'affichage dans le résultat de recherche<br/>Exemple : T => Type de doc, Y => Annexe, B => Bibliothèque, ... (Voir <a href="' . BOKEH_REMOTE_FILES . 'blob/master/library/Class/Codification.php#L24">la liste complète</a>)')), + 'UNLEASHED_FACETS' => Class_AdminVar_Meta::newMultiInput($this->_('Liste des codes des facettes qui ne sont pas limitées à l\'affichage dans le résultat de recherche<br/>Exemple : T => Type de doc, Y => Annexe, B => Bibliothèque, ... (Voir <a href="' . BOKEH_REMOTE_FILES . 'blob/' . BOKEH_VERSION . '/library/Class/Codification.php#L24">la liste complète</a>)')), 'AFFICHER_DISPONIBILITE_SUR_RECHERCHE' => Class_AdminVar_Meta::newOnOff($this->_('Activation de la disponibilite dans le resultat de recherche.')), 'NOM_DOMAINE' => Class_AdminVar_Meta::newDefault($this->_('Nom de domaine principal de l\'OPAC, ex: monopac.macommune.fr')), 'DATE_LAST_FULL_INTEGRATION_USERS' => Class_AdminVar_Meta::newDefault($this->_('Date du dernier import total des abonnés (modifié par cosmogramme)')), diff --git a/library/startup.php b/library/startup.php index 04dc9f4c5406aa28802677ffe43da0334868dc6c..2210ba59408e4e60696e9586339d64d5c44ab0f2 100644 --- a/library/startup.php +++ b/library/startup.php @@ -68,7 +68,7 @@ function setupConstants() { defineConstant('BOKEH_REMOTE_FILES', 'http://git.afi-sa.fr/afi/opacce/'); - defineConstant('BOKEH_VERSION', (substr(BOKEH_MAJOR_VERSION, -1) & 1) ? 'master' : 'stable'); + defineConstant('BOKEH_VERSION', (substr(BOKEH_MAJOR_VERSION, -1) % 2) ? 'master' : 'stable'); defineConstant('ROOT_PATH', realpath(dirname(__FILE__).'/..').'/'); diff --git a/tests/library/Class/AdminVarTest.php b/tests/library/Class/AdminVarTest.php index 21236ddc4978c199bb40eaf0a9c66e096f33480f..ddbceaeda930a1cdd47121610058b274a54055ba 100644 --- a/tests/library/Class/AdminVarTest.php +++ b/tests/library/Class/AdminVarTest.php @@ -92,6 +92,16 @@ class AdminVarTestGet extends AdminVarTestCase { $this->assertEquals('<script type="text/javascript">\'test\'', Class_AdminVar::get('JS_STAT')); } + + + /** @test */ + public function unleashFacetDescriptionShouldContainsLinkToRemoteFiles() { + $this->fixture('Class_AdminVar', + ['id' => 'UNLEASHED_FACETS', + 'valeur' => '']); + + $this->assertContains('/blob/' . BOKEH_VERSION . '/library/Class/Codification.php', Class_AdminVar::getStaticMeta('UNLEASHED_FACETS')->getDescription()); + } }