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

This commit is contained in:
Gilles Crettenand
2015-06-16 10:12:23 +02:00
parent f5c349b2e6
commit 4759925b0f

View File

@@ -210,6 +210,8 @@ class NetBiblio extends WebService
// add hash, client and login into zip file uri
$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'])) {
$key = 'babf2cfbe2633c3082f8cfffdb3d9008b4b3b300';
$code = sprintf("%05u", $b['code']);