OPDS id are cleanly handled. re #40
This commit is contained in:
parent
ad52901226
commit
526483d7a5
|
@ -92,7 +92,9 @@ class OPDSRenderer
|
|||
self::getXmlStream ()->startElement ("id");
|
||||
if ($page->idPage)
|
||||
{
|
||||
self::getXmlStream ()->text ($page->idPage);
|
||||
$idPage = $page->idPage;
|
||||
if (!is_null (GetUrlParam (DB))) $idPage = GetUrlParam (DB) . ":" . $idPage;
|
||||
self::getXmlStream ()->text ($idPage);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
4
base.php
4
base.php
|
@ -267,6 +267,8 @@ class Entry
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!is_null (GetUrlParam (DB))) $this->id = GetUrlParam (DB) . ":" . $this->id;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -367,7 +369,7 @@ class Page
|
|||
if (is_array ($config['calibre_directory']) && is_null ($database)) {
|
||||
$i = 0;
|
||||
foreach ($config['calibre_directory'] as $key => $value) {
|
||||
array_push ($this->entryArray, new Entry ($key, DB . ":{$i}",
|
||||
array_push ($this->entryArray, new Entry ($key, "{$i}:cops:catalog",
|
||||
"", "text",
|
||||
array ( new LinkNavigation ("?" . DB . "={$i}"))));
|
||||
$i++;
|
||||
|
|
Loading…
Reference in a new issue