add cacheable uri so that we cas use the Cache of Drupal

master
Gilles Crettenand 11 years ago
parent f5c349b2e6
commit 4759925b0f

@ -210,6 +210,8 @@ class NetBiblio extends WebService
// add hash, client and login into zip file uri // add hash, client and login into zip file uri
$books = array_map(function($b) { $books = array_map(function($b) {
$b['files']['cacheable_uri'] = isset($b['files']['zip']['uri']) ? $b['files']['zip']['uri'] : false;
if(strlen($this->login) > 0 && isset($b['files']['zip']['uri'])) { if(strlen($this->login) > 0 && isset($b['files']['zip']['uri'])) {
$key = 'babf2cfbe2633c3082f8cfffdb3d9008b4b3b300'; $key = 'babf2cfbe2633c3082f8cfffdb3d9008b4b3b300';
$code = sprintf("%05u", $b['code']); $code = sprintf("%05u", $b['code']);

Loading…
Cancel
Save