@@ -55,11 +55,11 @@ |
||
| 55 | 55 | $this->entryArray = array (); |
| 56 | 56 | |
| 57 | 57 | $ignoredBaseArray = array (PageQueryResult::SCOPE_AUTHOR, |
| 58 | - PageQueryResult::SCOPE_TAG, |
|
| 59 | - PageQueryResult::SCOPE_SERIES, |
|
| 60 | - PageQueryResult::SCOPE_PUBLISHER, |
|
| 61 | - PageQueryResult::SCOPE_RATING, |
|
| 62 | - "language"); |
|
| 58 | + PageQueryResult::SCOPE_TAG, |
|
| 59 | + PageQueryResult::SCOPE_SERIES, |
|
| 60 | + PageQueryResult::SCOPE_PUBLISHER, |
|
| 61 | + PageQueryResult::SCOPE_RATING, |
|
| 62 | + "language"); |
|
| 63 | 63 | |
| 64 | 64 | $content = ""; |
| 65 | 65 | if (!preg_match("/(Kobo|Kindle\/3.0|EBRD1101)/", $_SERVER['HTTP_USER_AGENT'])) { |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | if ($data = $book->getDataFormat ($format)) { |
| 25 | 25 | $i++; |
| 26 | 26 | array_push ($preferedData, array ("url" => $data->getHtmlLink (), |
| 27 | - "viewUrl" => $data->getViewHtmlLink (), "name" => $format)); |
|
| 27 | + "viewUrl" => $data->getViewHtmlLink (), "name" => $format)); |
|
| 28 | 28 | } |
| 29 | 29 | } |
| 30 | 30 | |
@@ -52,20 +52,20 @@ discard block |
||
| 52 | 52 | $cc = $book->getCustomColumnValues($config['cops_calibre_custom_column_list'], true); |
| 53 | 53 | |
| 54 | 54 | return array ("id" => $book->id, |
| 55 | - "hasCover" => $book->hasCover, |
|
| 56 | - "preferedData" => $preferedData, |
|
| 57 | - "rating" => $book->getRating (), |
|
| 58 | - "publisherName" => $pn, |
|
| 59 | - "publisherurl" => $pu, |
|
| 60 | - "pubDate" => $book->getPubDate (), |
|
| 61 | - "languagesName" => $book->getLanguages (), |
|
| 62 | - "authorsName" => $book->getAuthorsName (), |
|
| 63 | - "tagsName" => $book->getTagsName (), |
|
| 64 | - "seriesName" => $sn, |
|
| 65 | - "seriesIndex" => $book->seriesIndex, |
|
| 66 | - "seriesCompleteName" => $scn, |
|
| 67 | - "seriesurl" => $su, |
|
| 68 | - "customcolumns_list" => $cc); |
|
| 55 | + "hasCover" => $book->hasCover, |
|
| 56 | + "preferedData" => $preferedData, |
|
| 57 | + "rating" => $book->getRating (), |
|
| 58 | + "publisherName" => $pn, |
|
| 59 | + "publisherurl" => $pu, |
|
| 60 | + "pubDate" => $book->getPubDate (), |
|
| 61 | + "languagesName" => $book->getLanguages (), |
|
| 62 | + "authorsName" => $book->getAuthorsName (), |
|
| 63 | + "tagsName" => $book->getTagsName (), |
|
| 64 | + "seriesName" => $sn, |
|
| 65 | + "seriesIndex" => $book->seriesIndex, |
|
| 66 | + "seriesCompleteName" => $scn, |
|
| 67 | + "seriesurl" => $su, |
|
| 68 | + "customcolumns_list" => $cc); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
@@ -148,46 +148,46 @@ discard block |
||
| 148 | 148 | $out = $in; |
| 149 | 149 | |
| 150 | 150 | $out ["c"] = array ("version" => VERSION, "i18n" => array ( |
| 151 | - "coverAlt" => localize("i18n.coversection"), |
|
| 152 | - "authorsTitle" => localize("authors.title"), |
|
| 153 | - "bookwordTitle" => localize("bookword.title"), |
|
| 154 | - "tagsTitle" => localize("tags.title"), |
|
| 155 | - "linksTitle" => localize("links.title"), |
|
| 156 | - "seriesTitle" => localize("series.title"), |
|
| 157 | - "customizeTitle" => localize ("customize.title"), |
|
| 158 | - "aboutTitle" => localize ("about.title"), |
|
| 159 | - "previousAlt" => localize ("paging.previous.alternate"), |
|
| 160 | - "nextAlt" => localize ("paging.next.alternate"), |
|
| 161 | - "searchAlt" => localize ("search.alternate"), |
|
| 162 | - "sortAlt" => localize ("sort.alternate"), |
|
| 163 | - "homeAlt" => localize ("home.alternate"), |
|
| 164 | - "cogAlt" => localize ("cog.alternate"), |
|
| 165 | - "permalinkAlt" => localize ("permalink.alternate"), |
|
| 166 | - "publisherName" => localize("publisher.name"), |
|
| 167 | - "pubdateTitle" => localize("pubdate.title"), |
|
| 168 | - "languagesTitle" => localize("language.title"), |
|
| 169 | - "contentTitle" => localize("content.summary"), |
|
| 170 | - "filterClearAll" => localize("filter.clearall"), |
|
| 171 | - "sortorderAsc" => localize("search.sortorder.asc"), |
|
| 172 | - "sortorderDesc" => localize("search.sortorder.desc"), |
|
| 173 | - "customizeEmail" => localize("customize.email")), |
|
| 174 | - "url" => array ( |
|
| 175 | - "detailUrl" => "index.php?page=13&id={0}&db={1}", |
|
| 176 | - "coverUrl" => "fetch.php?id={0}&db={1}", |
|
| 177 | - "thumbnailUrl" => "fetch.php?height=" . $config['cops_html_thumbnail_height'] . "&id={0}&db={1}"), |
|
| 178 | - "config" => array ( |
|
| 179 | - "use_fancyapps" => $config ["cops_use_fancyapps"], |
|
| 180 | - "max_item_per_page" => $config['cops_max_item_per_page'], |
|
| 181 | - "kindleHack" => "", |
|
| 182 | - "server_side_rendering" => useServerSideRendering (), |
|
| 183 | - "html_tag_filter" => $config['cops_html_tag_filter'])); |
|
| 151 | + "coverAlt" => localize("i18n.coversection"), |
|
| 152 | + "authorsTitle" => localize("authors.title"), |
|
| 153 | + "bookwordTitle" => localize("bookword.title"), |
|
| 154 | + "tagsTitle" => localize("tags.title"), |
|
| 155 | + "linksTitle" => localize("links.title"), |
|
| 156 | + "seriesTitle" => localize("series.title"), |
|
| 157 | + "customizeTitle" => localize ("customize.title"), |
|
| 158 | + "aboutTitle" => localize ("about.title"), |
|
| 159 | + "previousAlt" => localize ("paging.previous.alternate"), |
|
| 160 | + "nextAlt" => localize ("paging.next.alternate"), |
|
| 161 | + "searchAlt" => localize ("search.alternate"), |
|
| 162 | + "sortAlt" => localize ("sort.alternate"), |
|
| 163 | + "homeAlt" => localize ("home.alternate"), |
|
| 164 | + "cogAlt" => localize ("cog.alternate"), |
|
| 165 | + "permalinkAlt" => localize ("permalink.alternate"), |
|
| 166 | + "publisherName" => localize("publisher.name"), |
|
| 167 | + "pubdateTitle" => localize("pubdate.title"), |
|
| 168 | + "languagesTitle" => localize("language.title"), |
|
| 169 | + "contentTitle" => localize("content.summary"), |
|
| 170 | + "filterClearAll" => localize("filter.clearall"), |
|
| 171 | + "sortorderAsc" => localize("search.sortorder.asc"), |
|
| 172 | + "sortorderDesc" => localize("search.sortorder.desc"), |
|
| 173 | + "customizeEmail" => localize("customize.email")), |
|
| 174 | + "url" => array ( |
|
| 175 | + "detailUrl" => "index.php?page=13&id={0}&db={1}", |
|
| 176 | + "coverUrl" => "fetch.php?id={0}&db={1}", |
|
| 177 | + "thumbnailUrl" => "fetch.php?height=" . $config['cops_html_thumbnail_height'] . "&id={0}&db={1}"), |
|
| 178 | + "config" => array ( |
|
| 179 | + "use_fancyapps" => $config ["cops_use_fancyapps"], |
|
| 180 | + "max_item_per_page" => $config['cops_max_item_per_page'], |
|
| 181 | + "kindleHack" => "", |
|
| 182 | + "server_side_rendering" => useServerSideRendering (), |
|
| 183 | + "html_tag_filter" => $config['cops_html_tag_filter'])); |
|
| 184 | 184 | if ($config['cops_thumbnail_handling'] == "1") { |
| 185 | 185 | $out ["c"]["url"]["thumbnailUrl"] = $out ["c"]["url"]["coverUrl"]; |
| 186 | 186 | } else if (!empty ($config['cops_thumbnail_handling'])) { |
| 187 | 187 | $out ["c"]["url"]["thumbnailUrl"] = $config['cops_thumbnail_handling']; |
| 188 | 188 | } |
| 189 | 189 | if (preg_match("/./", $_SERVER['HTTP_USER_AGENT'])) { |
| 190 | - $out ["c"]["config"]["kindleHack"] = 'style="text-decoration: none !important;"'; |
|
| 190 | + $out ["c"]["config"]["kindleHack"] = 'style="text-decoration: none !important;"'; |
|
| 191 | 191 | } |
| 192 | 192 | return $out; |
| 193 | 193 | } |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | } |
| 247 | 247 | if (!is_null (getURLParam ("complete")) || $complete) { |
| 248 | 248 | $out = self::addCompleteArray ($out); |
| 249 | - } |
|
| 249 | + } |
|
| 250 | 250 | |
| 251 | 251 | $out ["containsBook"] = 0; |
| 252 | 252 | if ($currentPage->containsBook ()) { |