Commit graph

24 commits

Author SHA1 Message Date
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