Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...) http://blog.slucas.fr/en/oss/calibre-opds-php-server
Go to file
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
icons Improve the compatibility with IOS 2013-08-11 19:32:07 +02:00
images Add several ways to handle thumbnails. re #5 2013-08-26 21:15:54 +02:00
js Move jquery-cookie to resources. re #73 2013-06-18 12:33:33 +02:00
lang **2012-11-22** 2013-11-22 22:08:09 +01:00
resources Upgrade Magnific Popup to 0.9.8 2013-11-09 20:53:25 +01:00
styles Fix the book popup in case there's no summary and lightbox is enabled. 2013-11-09 20:53:07 +01:00
templates/default Add a new template for the suggestion item. re #34 2013-10-13 22:20:08 +02:00
test **2012-11-22** 2013-11-22 22:08:09 +01:00
tools Add debug information to check the completeness of the translation. re #37 2013-09-30 11:53:46 +02:00
.gitignore **2012-11-22** 2013-11-22 22:08:09 +01:00
.hgignore Add hgignore 2012-12-05 17:05:31 +01:00
.hgtags Étiquette 0.6.2 ajoutée à la révision 605e2b671bf4 2013-09-13 16:14:36 +02:00
.htaccess Add a default page in the .htaccess. 2013-11-22 14:59:59 +01:00
.travis.yml Add a test for coverage. re #96 2013-10-22 17:41:42 +02:00
about.html Migrate from Fancybox to Magnific Popup. re #73 2013-06-25 08:53:04 +02:00
author.php Fix the ids in OPDS feed to produce a valid feed. fix #104 2013-10-25 07:59:27 +02:00
base.php **2012-11-22** 2013-11-22 22:08:09 +01:00
book.php **2012-11-22** 2013-11-22 22:08:09 +01:00
CHANGELOG Prepare the changelog. Still lots of work needed :( 2013-11-09 19:22:22 +01:00
checkconfig.php add an option to detect case problem in the path stored in the database. re #103 2013-10-22 21:40:31 +02:00
config.php Add base path 2013-09-17 05:48:45 +01:00
config_default.php Added support for optional flat-list display of "All Books" 2013-11-08 17:53:11 +01:00
config_local.php.example Cleanly fix the problems with line feed 2013-07-22 14:29:32 +02:00
COPYING Add v0.0.1 2012-05-28 07:01:33 +02:00
customcolumn.php Fix the ids in OPDS feed to produce a valid feed. fix #104 2013-10-25 07:59:27 +02:00
data.php Add several ways to handle thumbnails. re #5 2013-08-26 21:15:54 +02:00
favicon.ico Add v0.0.1 2012-05-28 07:01:33 +02:00
feed.php Cleanly fix the problems with line feed 2013-07-22 14:29:32 +02:00
fetch.php Cleanly fix the problems with line feed 2013-07-22 14:29:32 +02:00
getJSON.php Prepare for serverside rendering. 2013-08-20 15:50:03 +02:00
index.php **2012-11-22** 2013-11-22 22:08:09 +01:00
language.php Fix the ids in OPDS feed to produce a valid feed. fix #104 2013-10-25 07:59:27 +02:00
login.html Upgrade jquery to latest version 2013-07-21 22:14:24 +02:00
OPDS_renderer.php 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
phpunit.xml Update phpunit to include basic code coverage information. re #96 2013-10-03 17:59:44 +02:00
publisher.php **2012-11-22** 2013-11-22 22:08:09 +01:00
README Next version will be 0.6.0. Update README and Changelog 2013-07-22 20:58:17 +02:00
README.md Update README.md 2012-05-29 16:18:40 +03:00
sendtomail.php Handle many email recipient. fix #53 2013-07-24 20:49:24 +02:00
serie.php Fix the ids in OPDS feed to produce a valid feed. fix #104 2013-10-25 07:59:27 +02:00
tag.php Handle better search of multiple databases at once. Optimize a little typeahead search. re #34 2013-11-22 14:41:56 +01:00
util.js Handle better search of multiple databases at once. Optimize a little typeahead search. re #34 2013-11-22 14:41:56 +01:00
web.config Add a default web.config. 2013-07-04 15:20:03 +02:00

cops

Calibre OPDS (and HTML) PHP Server : light alternative to Calibre content server / Calibre2OPDS

See : http://blog.slucas.fr/en/oss/calibre-opds-php-server