| @@ 61-61 (lines=1) @@ | ||
| 58 | $xml->startElement ("Url"); |
|
| 59 | $xml->writeAttribute ("type", 'application/atom+xml'); |
|
| 60 | $urlparam = "?query={searchTerms}"; |
|
| 61 | if (!is_null (GetUrlParam (DB))) $urlparam = addURLParameter ($urlparam, DB, GetUrlParam (DB)); |
|
| 62 | $urlparam = str_replace ("%7B", "{", $urlparam); |
|
| 63 | $urlparam = str_replace ("%7D", "}", $urlparam); |
|
| 64 | $xml->writeAttribute ("template", $config['cops_full_url'] . 'feed.php' . $urlparam); |
|
| @@ 127-127 (lines=1) @@ | ||
| 124 | $link = new LinkNavigation ("?" . getQueryString (), "self"); |
|
| 125 | self::renderLink ($link); |
|
| 126 | $urlparam = "?"; |
|
| 127 | if (!is_null (GetUrlParam (DB))) $urlparam = addURLParameter ($urlparam, DB, GetUrlParam (DB)); |
|
| 128 | if ($config['cops_generate_invalid_opds_stream'] == 0 || preg_match("/(MantanoReader|FBReader)/", $_SERVER['HTTP_USER_AGENT'])) { |
|
| 129 | // Good and compliant way of handling search |
|
| 130 | $urlparam = addURLParameter ($urlparam, "page", Base::PAGE_OPENSEARCH); |
|
| @@ 203-203 (lines=1) @@ | ||
| 200 | $urlParam = self::handleThumbnailLink($urlParam, $height); |
|
| 201 | } |
|
| 202 | $urlParam = addURLParameter($urlParam, "id", $book->id); |
|
| 203 | if (!is_null (GetUrlParam (DB))) $urlParam = addURLParameter ($urlParam, DB, GetUrlParam (DB)); |
|
| 204 | if ($config['cops_thumbnail_handling'] != "1" && |
|
| 205 | !empty ($config['cops_thumbnail_handling']) && |
|
| 206 | $rel == Link::OPDS_THUMBNAIL_TYPE) { |
|
| @@ 207-207 (lines=1) @@ | ||
| 204 | ||
| 205 | public function getDetailUrl () { |
|
| 206 | $urlParam = $this->getUri(); |
|
| 207 | if (!is_null(GetUrlParam(DB))) $urlParam = addURLParameter($urlParam, DB, GetUrlParam (DB)); |
|
| 208 | return 'index.php' . $urlParam; |
|
| 209 | } |
|
| 210 | ||