Commit graph

45 commits

Author SHA1 Message Date
Sébastien Lucas 90847eb85b Better bootstrap template with as little text as possible. 2014-05-30 15:00:46 +02:00
Sébastien Lucas d9bdd2b136 Series can now be searched with normalized search. re #48, #49 2014-05-12 22:15:51 +02:00
Sébastien Lucas 789fc5468e Tags and publishers can now be searched with normalized search. re #48, #49 2014-05-12 21:36:31 +02:00
Sébastien Lucas d6254ab7c3 May help with the failed tests (not reproduced locally). re #49, #48 2014-05-03 18:08:02 +02:00
Sébastien Lucas 78d42b48e2 Allow normalized search (without diacritics) it should also fix the case problem with non latin languages (cyrillic).
The last part is not tested.

disclaimer : Slow !

re #49, #48
2014-05-03 17:57:06 +02:00
Sébastien Lucas 15e78a852a Author can now be searched by sort or by name (Carroll, Lewis or Lewis Carroll will work). fix #155 2014-04-30 15:10:37 +02:00
Sébastien Lucas d45bbb7ff6 more test functions 2014-04-30 14:26:25 +02:00
Sébastien Lucas a9125cacd5 more test functions 2014-04-30 14:16:42 +02:00
Sébastien Lucas 9eb3675251 Again more test functions 2014-04-30 14:09:27 +02:00
Sébastien Lucas da86b9d840 Add a new test for normalized search (todo) 2014-04-30 13:54:59 +02:00
Sébastien Lucas 68d8282a98 Add a new test with an accentuated character 2014-04-30 13:46:32 +02:00
Sébastien Lucas 28292b83a0 Add a new book in the test database. it will allow test for accentuated character search. 2014-04-29 15:16:25 +02:00
Sébastien Lucas 65b6931b13 Properly use author name or author sort. fix #130 2014-03-27 14:07:50 +01:00
Sébastien Lucas 7f9bcd585b Fix unit tests 2014-03-20 19:55:10 +01:00
Sébastien Lucas c1c467ac87 Update test of ratings. re #137 2014-03-10 14:02:00 +01:00
Sébastien Lucas 6d124c3a8c Trailing whitespaces 2014-03-10 13:43:55 +01:00
Micha 1047244270 next fix of pageTest (due to ratings) 2014-02-27 22:17:21 +01:00
Michael 2c40201e58 pageTest fixes (due to new rating tab) 2014-02-27 19:37:28 +01:00
Michael 4c234a84f1 ratings category fixes 2014-02-27 11:44:11 +01:00
Sébastien Lucas f8249e73c6 Add the search by category with the standard search. Again inspired by At-Libitum. re #34 2013-12-23 08:58:56 +01:00
Sébastien Lucas a4c351728f Correctly test the ignore param. re #34 2013-12-17 21:03:55 +01:00
Sébastien Lucas 19dcd73585 Rename the ignored parameter. re #34 2013-12-17 20:56:41 +01:00
Sébastien Lucas 2a20fa688e Typo. re #123 2013-12-09 09:16:37 +01:00
Sébastien Lucas d6d63e7ee3 New test for the previous configuration item. re #123 2013-12-08 21:14:20 +01:00
Sébastien Lucas 0f09ef5f8c Remove trailing spaces 2013-12-05 10:52:51 +01:00
Sébastien Lucas 9f5f00e114 Replace CRLF by LF 2013-12-05 10:50:53 +01:00
Sébastien Lucas 40139bd18c Remove a tab 2013-12-05 10:49:57 +01:00
Sébastien Lucas ac5e1958de Fix tests 2013-12-03 11:22:17 +01:00
At-Libitum f87963ea8a Merge git://github.com/seblucas/cops
Conflicts:
	test/pageTest.php - RESOLVED
2013-12-02 14:53:10 +01:00
At-Libitum d4cedf3737 removed some unused variables from base.php and pageTest.php
added custom columns to ```default_config.php``` for pageTest.php
2013-12-01 13:25:34 +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
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 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 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 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