Commit graph

1035 commits

Author SHA1 Message Date
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
Sébastien Lucas ab259ba5b2 Fix the book popup in case there's no summary and lightbox is enabled. 2013-11-09 20:53:07 +01:00
Sébastien Lucas 1742ac44c1 Prepare the changelog. Still lots of work needed :( 2013-11-09 19:22:22 +01:00
Sébastien Lucas 16bfd93032 Merge pull request #108 from bitjungle/patch-1
Update Localization_nb.json
2013-11-09 09:36:37 -08:00
Rune Mathisen aff5c43dd8 Update Localization_nb.json 2013-11-09 15:31:27 +01:00
Sébastien Lucas f40d6f0f9f Merge pull request #107 from At-Libitum/master
Added support for optional flat-list display of "All Books"
2013-11-08 09:57:25 -08:00
At-Libitum 8db9489e07 Added support for optional flat-list display of "All Books"
Files modified:

config_default.php

base.php

changed class PageAllBooks to test for configuration option "cops_titles_split_first_letter".
Used getCurrentOption to prepare for making Split Letter options configurable in web GUI

book.php

added SQL_BOOKS_ALL query to have a flat-list datasource not grouped by first letter.
added const SQL_BOOKS_ALL to class Book
added public static function "getBooks", called from Base::PageAllBooks to retrieve the flat-list
2013-11-08 17:53:11 +01:00
Sébastien Lucas 5f7f8e6527 Clear a little the documentation for the full url prefix. Idea from Mariosipad. 2013-11-04 14:37:12 +01:00
Sébastien Lucas 1241c1e89b Remove the text-rendering in the CSS : causes problem with Chrome. fix #106 2013-11-04 14:36:20 +01:00
Sébastien Lucas 9cf33d7d1c Forgot two while fixing the ids. re #104 2013-10-25 08:07:42 +02:00
Sébastien Lucas fa5ec6cb58 Fix the ids in OPDS feed to produce a valid feed. fix #104 2013-10-25 07:59:27 +02:00
Sébastien Lucas 23282ed1e8 Merge 2013-10-24 21:47:48 +02: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 236cfa95fb Merge 2013-10-24 14:53:18 +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 71c9f69e98 Merge 2013-10-24 11:00:35 +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 62941ccb4b Merge with current github, fix trailing spaces, and tab->space.
--HG--
extra : rebase_source : ad44a915f7c4880ee8f4ffc406e97c8fc142ac82
2013-10-23 16:39:02 +02:00
Sébastien Lucas 3ca4996a41 Fix some trailing white space.
--HG--
extra : rebase_source : 9e4b2ab2381d261b3562f2e4a5c56c7e0e1c7ed7
2013-10-23 16:27:09 +02:00
Sébastien Lucas 7e5d386275 add an option to detect case problem in the path stored in the database. re #103
Thanks to Ruud for the idea.
2013-10-22 21:40:31 +02:00
Sébastien Lucas 1a77236143 Add a test for coverage. re #96 2013-10-22 17:41:42 +02:00
Sébastien Lucas 7443730044 Merge 2013-10-22 16:53:16 +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 27c0245a1b Merge 2013-10-22 10:34:56 +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