Small fixes to facets handling. re #21
* Fix ths duplicate of URL parameter * Fix when parameter is empty
Esse commit está contido em:
pai
e5d0933971
commit
11645b2155
4 arquivos alterados com 14 adições e 3 exclusões
|
@ -133,7 +133,7 @@ class OPDSRenderer
|
|||
if ($page->containsBook () && !is_null ($config['cops_books_filter']) && count ($config['cops_books_filter']) > 0) {
|
||||
$Urlfilter = getURLParam ("tag", "");
|
||||
foreach ($config['cops_books_filter'] as $lib => $filter) {
|
||||
$link = new LinkFacet ("?" . $_SERVER['QUERY_STRING'] . "&tag=" . $filter, $lib, localize ("tagword.title"), $filter == $Urlfilter);
|
||||
$link = new LinkFacet ("?" . addURLParameter ($_SERVER['QUERY_STRING'], "tag", $filter), $lib, localize ("tagword.title"), $filter == $Urlfilter);
|
||||
self::renderLink ($link);
|
||||
}
|
||||
}
|
||||
|
|
Carregando…
Adicionar tabela
Adicionar um link
Referência em uma nova issue