Wykres commitów

166 Commity

Autor SHA1 Wiadomość Data
Sébastien Lucas 362f290972 Update Phing file. 2014-03-20 16:00:54 +01:00
Sébastien Lucas 4b0ff71750 Fix warning 2014-03-10 21:41:35 +01:00
Sébastien Lucas e67e620ba3 Simplify a little getLink 2014-03-10 21:14:54 +01:00
Michael 1ad15d410c adding ratings category to possible ignores and merge lang update (nl)
had to change rating.title to ratings.title due to $keyPlural in base.php#L997
2014-03-05 11:15:20 +01:00
Michael fa61d0e4ed ratings detail title 2014-02-28 11:10:04 +01:00
michael 4b7743397b raw sketch of ratings category 2014-02-27 00:33:40 +01:00
Sébastien Lucas 8803152273 Move all default styles in the templates directory. re #79
--HG--
rename : styles/FontAwesome.otf => templates/default/styles/FontAwesome.otf
rename : styles/font-awesome.css => templates/default/styles/font-awesome.css
rename : styles/fontawesome-webfont.eot => templates/default/styles/fontawesome-webfont.eot
rename : styles/fontawesome-webfont.svg => templates/default/styles/fontawesome-webfont.svg
rename : styles/fontawesome-webfont.ttf => templates/default/styles/fontawesome-webfont.ttf
rename : styles/fontawesome-webfont.woff => templates/default/styles/fontawesome-webfont.woff
rename : styles/style-base.css => templates/default/styles/style-base.css
rename : styles/style-default.css => templates/default/styles/style-default.css
rename : styles/style-eink.css => templates/default/styles/style-eink.css
rename : styles/style-iphone.css => templates/default/styles/style-iphone.css
2014-02-16 16:55:38 +01:00
Sébastien Lucas 655589d407 Duplicate 2014-02-13 18:03:38 +01:00
Sébastien Lucas b397e7e9f8 Bad commit 2014-02-09 21:18:05 +01:00
Sébastien Lucas 034e4bd331 Better bookdetail 2014-02-09 21:17:04 +01:00
Sébastien Lucas 0cf1383db0 Begin the templating 2014-02-06 21:26:20 +01:00
Sébastien Lucas 3e29824a78 Fix some warnings 2014-01-11 18:21:18 +01:00
Sébastien Lucas 1dfdd22f43 Finish the refactoring for Json. 2014-01-08 10:54:16 +01:00
Sébastien Lucas 91aa062860 Big refactoring of the Json handling, I followed what I did from OPDS. It doesn't still feel right but I think it's better. 2014-01-07 21:22:35 +01:00
Sébastien Lucas f651184928 Fix trailing spaces 2014-01-06 21:24:45 +01:00
Sébastien Lucas e96eaf86e5 Add a test for function creation. I can't manage to make it fail when needed. Still I'll commit anyway ! 2014-01-06 21:24:11 +01:00
Sébastien Lucas c829a3fe74 Prepare next version 2014-01-02 12:23:37 +01:00
Sébastien Lucas dbe6dedd44 Try to simplify a little the search. 2014-01-02 12:23:04 +01:00
Sébastien Lucas 55a82f5d93 Next version will be 0.9.0 2013-12-31 11:26:26 +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 9a15d0e1a4 Integrate a little better the typeahead search in the normal search page. Heavily based on At-Libitum work. re #34 2013-12-22 18:40:03 +01:00
Sébastien Lucas ebbd830a33 Refactorize a little. re #127 2013-12-20 15:16:57 +01:00
Sébastien Lucas 1c50ed49fe little code refactoring. re #34 2013-12-19 08:38:26 +01:00
Sébastien Lucas 1e165fb574 Fix the languages string to add consistancy (plural form). re #34 2013-12-19 08:24:02 +01:00
Sébastien Lucas c71f443356 The ignored categories is now in the customize UI page. re #34
It's far from complete but it works. I'll have to check the strings consistancy.
2013-12-17 22:45:51 +01:00
Sébastien Lucas e0e7392817 Again ... I should use the constants. re #34 2013-12-17 21:12:13 +01:00
Sébastien Lucas 19dcd73585 Rename the ignored parameter. re #34 2013-12-17 20:56:41 +01:00
Sébastien Lucas 76e24d85f3 Extend the ignored parameter to the home screen. re #34 2013-12-17 20:51:22 +01:00
Sébastien Lucas cedbd89c7a Another unused variable. re #127 2013-12-14 19:00:44 +01:00
Sébastien Lucas 8a72e1a6fd Ensure the check can be tested. re #127 2013-12-14 18:48:34 +01:00
Sébastien Lucas cd626b25ef Factorize a little more the DB handling. re #127 2013-12-14 18:25:32 +01:00
Sébastien Lucas a1cb83eea9 Refactor the detection of the case when no database has been selected. re #127 2013-12-14 11:30:42 +01:00
Sébastien Lucas 90cfeb57c1 Simplify a little the code to get the title of the search page. re #127 2013-12-14 10:44:48 +01:00
Sébastien Lucas 8fac662f4b Try to use the method created ... re #127 2013-12-14 10:32:28 +01:00
Sébastien Lucas 7ba85d150b Add a new config item to ignore a category in search. Simplify the queries. re #123 2013-12-08 21:01:17 +01:00
At-Libitum 79c2c431cc publisher category did not get included in regular search.
added publisher "exists (select ..." as 4th or branch to SQL_BOOKS_QUERY

added argument placeholder as 4th to the various calls to getBooksByQuery.

re #123
2013-12-08 15:43:23 +01:00
Sébastien Lucas 79e070833d Forgot a bit of the last commit. re #124 2013-12-07 21:29:37 +01:00
Sébastien Lucas 002c7596ea Changing the number of book per pages changed the search with multiple database. Reported by At-Libitum. fix #124 2013-12-07 21:17:38 +01:00
Sébastien Lucas 0f09ef5f8c Remove trailing spaces 2013-12-05 10:52:51 +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 19baa9bdf5 Fix some tabs :(. 2013-11-30 16:45:56 +01:00
At-Libitum d540cba22a renamed constant and removed some accidental tabs. 2013-11-30 16:21:52 +01:00
Sébastien Lucas 13d0b4c471 Fix a problem with PHP embedded server. $_SERVER['QUERY_STRING'] is not set if it's empty. 2013-11-29 09:34:32 +01:00
Sébastien Lucas ef4cbb79cd Getting closer maybe. 2013-11-29 07:32:08 +01:00
Sébastien Lucas f7be2ce893 Fix scrutinizer warnings. 2013-11-25 21:40:54 +01:00
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
Sébastien Lucas 185c59ce15 Fix some warnings and errors caused by the previous commit. re #34 2013-11-22 15:22:03 +01:00