Commit graph

99 commits

Author SHA1 Message Date
Sébastien Lucas faf67b8964 Getting closer. 2013-11-28 14:09:07 +01:00
Sébastien Lucas 161c2653b4 Another try again. 2013-11-28 14:01:47 +01:00
Sébastien Lucas 61d7aa70da Another try. 2013-11-28 13:52:21 +01:00
Sébastien Lucas a76776fd8e Try another way 2013-11-28 13:45:10 +01:00
Sébastien Lucas 6856677566 Another try 2013-11-28 12:24:19 +01:00
Sébastien Lucas d6f6e65d56 Silly me. 2013-11-28 12:06:30 +01:00
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 e7dc302727 Try to have a smarter Sauce test. 2013-11-28 09:44:17 +01:00
Sébastien Lucas 659cbd4120 Fix warnings. 2013-11-26 18:20:55 +01:00
Sébastien Lucas 263da19735 Again some warnings fix. 2013-11-26 18:12:36 +01:00
Sébastien Lucas 34ec943132 Fix warnings 2013-11-26 18:02:03 +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
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
Sébastien Lucas 020e440faf New test for At Libitum's modifications. re #96 2013-11-13 10:32:43 +01:00
Sébastien Lucas 85151c16e1 also use Facets. re #96 2013-10-24 21:45:17 +02:00
Sébastien Lucas 5576d81684 Add a test in multiple database. failing for the moment. re #96 2013-10-24 21:33:49 +02:00
Sébastien Lucas e3b2a20423 Add a basic test for multidatabase. re #96 2013-10-24 14:49:59 +02:00
Sébastien Lucas 02030a7cff Organize files a little better. re #96
--HG--
rename : test/atom.rng => test/opds-relax-ng/atom.rng
rename : test/opds_catalog_1_1.rng => test/opds-relax-ng/opds_catalog_1_1.rng
2013-10-24 14:27:01 +02:00
Sébastien Lucas 9e2d6e1ed5 Missing file. re #96 2013-10-24 14:23:50 +02:00
Sébastien Lucas e21198efd5 Add proper headers to class files.
Move the database into specific directory to prepare for multidatabase testing.
re #96

--HG--
rename : test/metadata.db => test/BaseWithSomeBooks/metadata.db
2013-10-24 14:23:32 +02:00
Sébastien Lucas f3be411c88 Add a basic test of the OPDS stream. re #96 2013-10-24 10:59:22 +02:00
Sébastien Lucas 4624cc2c32 Add search test with scope. re #96 2013-10-22 16:51:55 +02:00
Sébastien Lucas cb00c0b3a3 Fix comment. re #96 2013-10-22 14:39:25 +02:00
Sébastien Lucas a4d9e28cdb Add new test for search page. re #96 2013-10-22 14:38:39 +02:00
Sébastien Lucas aca14938ca New tests again for custom columns. re #96 2013-10-22 10:32:22 +02:00
Sébastien Lucas ccd0e0b1a9 New tests. re #96 2013-10-22 10:24:13 +02:00
Sébastien Lucas d4f1886743 Add some new test for custom columns (and update the test database). re #96 2013-10-20 22:26:14 +02:00
Sébastien Lucas fc80875d34 Test typeahead search. re #96 2013-10-15 08:31:26 +02:00
Sébastien Lucas 504b717fb8 Add a case where the translation string is not found. re #96 2013-10-15 08:31:12 +02:00
Sébastien Lucas 9b592b863d Add a coverage checked in PHP. re #96
--HG--
extra : rebase_source : a02ab0e4de3b813f3f81c1af799a293497019954
2013-10-15 08:20:01 +02:00
Sébastien Lucas 75f13fe3de Add new tests. re #96
--HG--
extra : rebase_source : 2b11d4badf9e567c7f29500c75b7ccc7c0cf07a7
2013-10-15 08:15:10 +02:00
Sébastien Lucas 1c2bb4ede3 Add series pages. re #96 2013-10-12 08:19:18 +02:00
Sébastien Lucas 72406214f9 A another test class. re #96 2013-10-12 07:56:17 +02:00
Sébastien Lucas 0f0fa58c31 Rename the class name. re #96 2013-10-12 07:13:41 +02:00
Sébastien Lucas c0920895ed Again new tests. re #96 2013-10-04 12:30:11 +02:00
Sébastien Lucas 9c09b8797c Add a test for the localize function. re #96 2013-10-04 12:20:34 +02:00
Sébastien Lucas 3be4fce3a5 Add some new tests. re #96 2013-10-04 12:19:34 +02:00
Sébastien Lucas 0de883de67 Add new tests. re #96 2013-10-04 08:17:42 +02:00
Sébastien Lucas 934c8012ab Add new test on GetBookByAuthor, also test pagination. re #96 2013-10-03 18:27:36 +02:00
Sébastien Lucas 650a23c8db Add real test with a database. re #96 2013-10-03 15:22:21 +02:00
Sébastien Lucas a8dccf1ea5 Fix line ending / encoding. re #96 2013-10-03 11:48:02 +02:00
Sébastien Lucas c994cf789f Add basic unit testing. re #96 2013-10-03 08:38:58 +02:00