|
|
|
@ -323,9 +323,10 @@ class NetBiblio extends WebService
|
|
|
|
|
|
|
|
|
|
|
|
if(count($files) > 0) {
|
|
|
|
if(count($files) > 0) {
|
|
|
|
foreach($booksWithoutFiles as $k => $b) {
|
|
|
|
foreach($booksWithoutFiles as $k => $b) {
|
|
|
|
if(isset($files[$b['code']])) {
|
|
|
|
$fileCode = sprintf("%05u", $b['code']);
|
|
|
|
$books[$k]['files'] = $files[$b['code']];
|
|
|
|
if(isset($files[$fileCode])) {
|
|
|
|
$files[$b['code']]['id'] = $b['id'];
|
|
|
|
$books[$k]['files'] = $files[$fileCode];
|
|
|
|
|
|
|
|
$files[$fileCode]['id'] = $b['id'];
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// we need to have an empty array for mobile apps compatibility.
|
|
|
|
// we need to have an empty array for mobile apps compatibility.
|
|
|
|
$books[$k]['files'] = array();
|
|
|
|
$books[$k]['files'] = array();
|
|
|
|
|