Commit graph

890 commits

Author SHA1 Message Date
Sébastien Lucas d5873492e7 And again 2013-11-28 11:50:30 +01:00
Sébastien Lucas 198323773d Finally maybe it'll work. 2013-11-28 11:45:54 +01:00
Sébastien Lucas 99768e82ee Hopefully it'll work 2013-11-28 11:11:07 +01:00
Sébastien Lucas cacbb94e86 again. 2013-11-28 10:41:14 +01:00
Sébastien Lucas 876fba3053 Typo again 2013-11-28 10:20:34 +01:00
Sébastien Lucas 8caa548ec0 Bad test 2013-11-28 10:06:31 +01:00
Sébastien Lucas fd76478e8f Another try 2013-11-28 09:55:50 +01:00
Sébastien Lucas e7dc302727 Try to have a smarter Sauce test. 2013-11-28 09:44:17 +01:00
Sébastien Lucas 9dff0ec16d Still trying 2013-11-27 22:56:39 +01:00
Sébastien Lucas 7b1669f69d Again another try 2013-11-27 22:47:30 +01:00
Sébastien Lucas 764baa5275 try to install sausage. 2013-11-27 22:39:52 +01:00
Sébastien Lucas cc7b901d9b Another try ... 2013-11-27 22:35:32 +01:00
Sébastien Lucas 61b6ec67b3 Try again 2013-11-27 22:26:35 +01:00
Sébastien Lucas f8823ae321 Another go at sauce tests. 2013-11-27 22:17:44 +01:00
Sébastien Lucas 72c5f0dc5e Prepare sauce tests. 2013-11-27 20:35:29 +01:00
Sébastien Lucas c760534f1d Add some badges. 2013-11-27 16:26:21 +01:00
Sébastien Lucas 1f78e5ba06 Merge 2013-11-26 18:22:19 +01:00
Sébastien Lucas 659cbd4120 Fix warnings. 2013-11-26 18:20:55 +01:00
Sébastien Lucas 7a0cf43544 Merge 2013-11-26 18:13:36 +01:00
Sébastien Lucas 263da19735 Again some warnings fix. 2013-11-26 18:12:36 +01:00
Sébastien Lucas 53376f2e3b Merge 2013-11-26 18:03:40 +01:00
Sébastien Lucas 34ec943132 Fix warnings 2013-11-26 18:02:03 +01:00
Sébastien Lucas 780a990ea0 Merge 2013-11-26 17:49:38 +01:00
Sébastien Lucas b693f18baa Changelog again. 2013-11-26 17:48:19 +01:00
Sébastien Lucas 945a28ed8e Update changelog, still a lot to write. It's gonna be a huge release. 2013-11-26 17:46:28 +01:00
Sébastien Lucas fed84c7171 Add a test for typeahead search with multiple databases. re #96 2013-11-26 17:39:17 +01:00
Sébastien Lucas 39cf43cbc2 Add some test of base functions. re #96 2013-11-26 17:17:22 +01:00
Sébastien Lucas 6029355085 Add a new test. re #96 2013-11-26 17:01:57 +01:00
Sébastien Lucas f7be2ce893 Fix scrutinizer warnings. 2013-11-25 21:40:54 +01:00
Sébastien Lucas 990976986e Fix the redirect in case of multiple databases and if the failing database is not the first. re #116 2013-11-25 21:35:02 +01:00
Sébastien Lucas 1051af4a61 COPS now also work if Pushstate / ReplaceState is not available (IE9). Thanks to At Libitum. should fix #117 2013-11-25 21:18:38 +01:00
Sébastien Lucas d12c7e9086 Better test for missing metadata.db (also test if it's readable). re #116 2013-11-25 21:16:34 +01:00
Sébastien Lucas 4d9b3a4925 Fix the redirect in case the database is not found. I also handle better the case were no file are actually found. Thanks to At Libitum. fix #116 2013-11-25 17:10:43 +01:00
At-Libitum 9efcd661a0 **2012-11-22**
**Added global support for publishers**

Files modified:

*base.php*

-   changed class Entry,

	-   adding a constant ```cops:publishers``` to the icon array for the feed.

-   changed class Page

	-   added branches to the page selector switch

-   changed Page->public function InitializeContent

	-   added call to pull publisher count from database

-   changed class PageAllBooks

	-   changed it so ```getCurrentOption``` is actually used...

-   added page descendant class ```PageAllPublishers```

	-   handles pulling the publishers category from database

-   added page descendant class ```PagePublisherDetail```

	-   handles pulling the books per publisher data from database

-   changed class PageQueryResult

	-   added constant and switches for publisher search scope

-   abstract class Base

	-   added constants for the publisher pages

*book.php*

-   added require statement for publisher.php
-   added ```SQL_BOOKS_BY_PUBLISHER``` query to retrieve books by publisher.

-   changed class Book

	-   added query constant
	-   added publisher item
	-   added test in case no known publisher
	-   added publishername and url array elements for the JSON output
	-   added public function ```getPublisher```
	-   added public static function ```getBooksByPublisher``` to fire the query

-   changed function getJson

	-   added publisher category to search
	-   added publishername (single) and publishertitle(plural) localization entries to i18n translation array

*index.php*

-   added require statement for publisher.php

*lang/Localization_en.json

-   added new localization entries for publisher labels (see below)
```
"publisher.alphabetical.many":"Alphabetical index of the {0} publishers",
"publisher.alphabetical.none":"Alphabetical index of absolutely no publisher",
"publisher.alphabetical.one":"Alphabetical index of the single publisher",
"publisher.name":"Publisher",
"publisher.title":"Publishers",
"publisherword.many":"{0} publishers",
"publisherword.none":"No publisher",
"publisherword.one":"1 publisher",

"search.result.publisher":"Search result for *{0}* in publishers",
```

*templates\bookdetail.html*

-   added publisher label and item to bookdetail popup

*test\bookTest.php*

-   added indices and names of publishers added to testdatabase as comment
-   added test function ```testGetBooksByPublisher```
-   changed test function testGetBookById to add assertion for publisher name
-   changed test function testTypeaheadSearch to add search on partial publisher name.

*test\pageTest.php*

-   changed test function testPageIndex to insert publisher category and adjust page indices
-   changed test function testPageIndexWithCustomColum to adjust for the changed page indices
-   added test function testPageAllPublishers
-   added test function testPagePublishersDetail
-   added test function testPageSearchScopePublishers

*test\BaseWithSomeBooks\metadata.db*

-   added 5 publishers spread across all 14 books, replacing the original publisher Feedbooks

Files added:

*publisher.php*
2013-11-22 22:08:09 +01:00
At-Libitum 9d4e358738 Merge pull request #2 from seblucas/master
update to latest official COPS
2013-11-22 12:02:35 -08:00
Sébastien Lucas 26f5b36563 Don't work on php 5.3. 2013-11-22 15:42:50 +01:00
Sébastien Lucas 76d739b1f6 Fix some warnings. 2013-11-22 15:33:22 +01:00
Sébastien Lucas 1c8fdeac29 Merge 2013-11-22 15:23:10 +01:00
Sébastien Lucas 185c59ce15 Fix some warnings and errors caused by the previous commit. re #34 2013-11-22 15:22:03 +01:00
Sébastien Lucas b46d1f524c Add a default page in the .htaccess. 2013-11-22 14:59:59 +01:00
Sébastien Lucas 58c48a71a8 Handle better search of multiple databases at once. Optimize a little typeahead search. re #34 2013-11-22 14:41:56 +01:00
Sébastien Lucas caa46c50e3 Add a way to specify the number of item per page. re #34 2013-11-22 14:36:39 +01:00
Sébastien Lucas 768bccb26c Merge pull request #113 from wikiped/master
Update Localization_ru.json
2013-11-20 12:29:54 -08:00
wikiped b35e66d1b7 Update Localization_ru.json
Simplified the plurals for "tags" and other "authors".
2013-11-20 09:30:56 -08:00
wikiped 806f6e22c4 Update Localization_ru.json 2013-11-20 08:08:00 -08:00
Sébastien Lucas 25a2088f9a Fix some warnings. re #96 2013-11-18 22:00:23 +01:00
Sébastien Lucas c835a2179b Fix search on non compliant client (Stanza, Moon+ Reader, ...). was broken for at least 6 months. fix #110 2013-11-18 15:57:17 +01:00
Sébastien Lucas 020e440faf New test for At Libitum's modifications. re #96 2013-11-13 10:32:43 +01:00
At-Libitum 6550f3d5ee Merge pull request #1 from seblucas/master
update to latest official COPS
2013-11-10 04:56:16 -08:00
Sébastien Lucas e659c0dc4f Upgrade Magnific Popup to 0.9.8 2013-11-09 20:53:25 +01:00