Wykres commitów

9 Commity

Autor SHA1 Wiadomość Data
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 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 c1c467ac87 Update test of ratings. re #137 2014-03-10 14:02:00 +01:00
Sébastien Lucas 15fe0401bc Finish the test for Monocle url rewriting (epubfs). re #52 2014-02-20 08:49:18 +01:00
Sébastien Lucas 5bc09db6fb Fix some problem with Monocle and add unit test. re #52 2014-02-13 13:51:01 +01:00
Sébastien Lucas e8088771c9 Forgot the book ... :( 2014-02-11 20:54:54 +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 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