From 877940a65186efc66a14d399c8f07d67465c85e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sat, 28 Sep 2013 21:00:25 +0200 Subject: [PATCH] Clean the new search. re #34 --- book.php | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/book.php b/book.php index 37137e4..8d2531a 100644 --- a/book.php +++ b/book.php @@ -594,30 +594,13 @@ function getJson ($complete = false) { $pagequery = Base::PAGE_OPENSEARCH_QUERY; foreach ($array as $entry) { if (count($array) > 0) { + // Comment to help the perl i18n script // str_format (localize("bookword", count($array)) // str_format (localize("authorword", count($array) // str_format (localize("seriesword", count($array) // str_format (localize("tagword", count($array) array_push ($out, array ("title" => "" . str_format (localize("{$key}word", count($array)), count($array)) . "", "navlink" => "index.php?page={$pagequery}&query={$query}&db={$database}&scope={$key}")); - /*switch ($key) { - case "book": - array_push ($out, array ("title" => "" . str_format (localize("bookword", count($array)), count($array)) . "")); - break; - case "author": - array_push ($out, array ("title" => "" . str_format (localize("authorword", count($array)), count($array)) . "", - "navlink" => "index.php?page={$pagequery}&query={$query}&db={$database}&scope=author")); - break; - case "series": - array_push ($out, array ("title" => "" . str_format (localize("seriesword", count($array)), count($array)) . "", - "navlink" => "index.php?page={$pagequery}&query={$query}&db={$database}&scope=series")); - break; - case "tag": - array_push ($out, array ("title" => "" . str_format (localize("tagword", count($array)), count($array)) . "")); - break; - default : - array_push ($out, array ("title" => "" . count($array) . " Titre")); - }*/ } if ($entry instanceof EntryBook) { array_push ($out, array ("title" => $entry->title, "navlink" => $entry->book->getDetailUrl ()));