diff --git a/VERSIONS b/VERSIONS index efff2543af45c46003279eb3feb0e507a232c7bf..5dc3fb2cfe27efa06eaf03bd8d154631133980fd 100644 --- a/VERSIONS +++ b/VERSIONS @@ -1,3 +1,11 @@ +01/07/2019 - v8.0.19 + + - ticket #93469 : Indexation : Ajout d'un script de nettoyage des facettes dynamiques obsolètes + + - ticket #94248 : SIGB VSmart : Mise à jour le l'ip API + + + 24/06/2019 - v8.0.18 - ticket #77694 : Administration : Bokeh permet la suppression d'utilisateurs par lot correspondant aux critères de recherche sélectionnés diff --git a/library/Class/WebService/SIGB/VSmart/Service.php b/library/Class/WebService/SIGB/VSmart/Service.php index ae8faa31e4692d90f5328f0e96ed5152a7621e71..e44784509efb323992b021a1b9b14af1b7917976 100644 --- a/library/Class/WebService/SIGB/VSmart/Service.php +++ b/library/Class/WebService/SIGB/VSmart/Service.php @@ -20,7 +20,7 @@ */ class Class_WebService_SIGB_VSmart_Service extends Class_WebService_SIGB_AbstractRESTService { - const MOULINS_POPUP_SERVER = '46.20.169.9/moulins'; + const MOULINS_POPUP_SERVER = '77.159.173.139/moulins'; const METAINSTITUTION = 'RES'; const CONSULTATION_TAG = 'PATIMP'; diff --git a/library/startup.php b/library/startup.php index 1f623fa8fd4880df5b52d82967099dd309ac5d80..393e2f666d3041ca155992474e5376a29961dc48 100644 --- a/library/startup.php +++ b/library/startup.php @@ -81,7 +81,7 @@ class Bokeh_Engine { function setupConstants() { defineConstant('BOKEH_MAJOR_VERSION','8.0'); - defineConstant('BOKEH_RELEASE_NUMBER', BOKEH_MAJOR_VERSION . '.18'); + defineConstant('BOKEH_RELEASE_NUMBER', BOKEH_MAJOR_VERSION . '.19'); defineConstant('BOKEH_REMOTE_FILES', 'http://git.afi-sa.fr/afi/opacce/'); diff --git a/scripts/clean_local_dymanic_facets.php b/scripts/clean_local_dymanic_facets.php new file mode 100644 index 0000000000000000000000000000000000000000..a4276595903a9e37d10a97e55d3a0971ef033259 --- /dev/null +++ b/scripts/clean_local_dymanic_facets.php @@ -0,0 +1,43 @@ +<?php +error_reporting(E_ERROR | E_PARSE); +require(__DIR__.'/../console.php'); + +echo "\n\nWelcome to the iFacetsCleaner Platinum tool by @patbator\n\n"; + +class Scripts_Local_DynamicFacets_Cleaner { + + public function clean($record) { + $existing = array_filter(explode(' ', $record->getFacettes())); + foreach($existing as $facet) + $is_hmot = $is_hmot || 'MOTC' == substr($facet, 1, 4); + + if (!$is_hmot) + return; + + echo '.'; + + $facets = []; + foreach($existing as $facet) { + if ((Class_CodifThesaurus::CODE_FACETTE != substr($facet, 0, 1)) + || (1 == Class_CodifThesaurus::countBy(['id_thesaurus' => substr($facet, 1)]))) + $facets[] = $facet; + } + + $record->setFacettes($facets); + $record->save(); + } +} + +$cleaner = new Scripts_Local_DynamicFacets_Cleaner(); +$page = 1; +while ($records = Class_Notice::findAllBy(['type' => Class_Notice::TYPE_BIBLIOGRAPHIC, + 'limitPage' => [$page, 1000]])) { + echo "\npage: $page\n"; + $page ++; + array_map([$cleaner, 'clean'], $records); + Storm_Model_Abstract::unsetLoaders(); + Storm_Model_Loader::resetCache(); + gc_collect_cycles(); +} + +echo "\n\nDONE !!!!\n\n"; \ No newline at end of file