Skip to content
Snippets Groups Projects
Commit 7bb72d8a authored by Ghislain Loas's avatar Ghislain Loas
Browse files

Merge branch 'hotline-master' into 'master'

Hotline master

See merge request !2013
parents 9e98ec5b 84f8ae70
Branches
Tags
5 merge requests!2080Sandbox detach zf from storm,!2061Master,!2015Master,!2014Master,!2013Hotline master
Pipeline #382 passed with stage
in 12 minutes and 8 seconds
- ticket #14141 : correction de l'affichage de la disponibilité calculé par la facette dans les listes de documents.
\ No newline at end of file
- ticket #53250 : vignettes sitothèques: adaptation aux modifications d'API de Bluga.net
\ No newline at end of file
......@@ -43,9 +43,9 @@
* Fix all the bugs and make things work with any PEAR2 adapter
*
* 1.7 - 02/09/2009 - Josh
* Lots of bug fixes since the last changelog entry, added failedJobs array for tracking jobs
* Lots of bug fixes since the last changelog entry, added failedJobs array for tracking jobs
* that don't submit properly
*
*
* 1.8 - 09/09/2009 - Josh
* Bug fixes and bring PEAR2 code back in the Bluga namespace
*/
......@@ -178,7 +178,7 @@ class Bluga_Webthumb {
$request->apikey = $this->apiKey;
$request->jobs = $this->jobs;
$request->apiversion = $this->apiVersion;
$payload = $request->asXml();
$response = $this->_transmitRequest($payload);
......@@ -389,7 +389,7 @@ class Bluga_Webthumb {
if (!isset($response->headers['Content-Type'])) {
throw new Exception('No Content-Type in response.');
}
if ($response->headers['Content-Type'] != 'text/xml') {
if (false === strpos($response->headers['Content-Type'], 'text/xml')) {
throw new Exception('There was an error. Content-Type returned was '.$response->headers['Content-Type']."\n".$response);
}
......@@ -479,7 +479,7 @@ class Bluga_Webthumb {
$ext = 'png';
}
$filename .= '.'.$ext;
}
}
if (!is_null($outDir)) {
$filename = "$outDir/$filename";
......
......@@ -32,7 +32,7 @@ abstract class ZendAfi_View_Helper_ListeNotices_Abstract extends ZendAfi_View_He
protected function _getDataAvailability($record) {
if(!$this->_isAllowedToDisplayAvailabilty($record))
if(!$this->_isAllowedToDisplayAvailabiltyFromFacet($record))
return [];
return ['data-availability' => $record->getAvailabilityFromFacet()];
......
......@@ -26,7 +26,7 @@ class VignettesRGAATest extends ViewHelperTestCase {
public function setUp() {
parent::setUp();
$this->fixture('Class_AdminVar', ['id'=>'AFFICHER_DISPONIBILITE_SUR_RECHERCHE_MODE_FACETTE', 'valeur'=>1] );
$this->fixture('Class_AdminVar', ['id'=>'AFFICHER_DISPONIBILITE_SUR_RECHERCHE', 'valeur'=>1] );
$this->fixture('Class_AdminVar', ['id'=>'AFFICHER_DISPONIBILITE_SUR_RECHERCHE', 'valeur'=>0] );
defineConstant('PATH_SKIN', './public/opac/skins/original/');
$helper = new ZendAfi_View_Helper_ListeNotices_Vignettes();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment