Commit Graph

99 Commits

Author SHA1 Message Date
Gilles Crettenand
da0efd72be Various fixes and cleanup :
* Always return at least success information
* Fix issues with Wishes
* Fix issues with Circulations
* Fix typos in exceptions
2015-06-03 10:02:28 +02:00
Gilles Crettenand
b81dacd194 convert last line endings issue 2015-06-03 09:17:45 +02:00
Gilles Crettenand
1a3b88d31f ensure that line endings are always LF 2015-06-03 09:17:07 +02:00
Gilles Crettenand
828e72ad02 more phpdoc 2015-06-03 09:14:32 +02:00
Gilles Crettenand
5facf90cfb never return an empty array 2015-06-02 23:15:16 +02:00
Gilles Crettenand
4f865d1186 spelling, small cleanups 2015-06-02 23:14:54 +02:00
Gilles Crettenand
b587047d17 stop using const for table and column names 2015-06-02 23:06:02 +02:00
Gilles Crettenand
f2f5078dbd Use Solr everywhere to retrieve books 2015-06-02 23:00:34 +02:00
Gilles Crettenand
3b66d628d8 fix var name issue 2015-06-02 22:55:20 +02:00
Gilles Crettenand
d4aace9e94 move getting books by chung to base function 2015-06-02 22:51:51 +02:00
Gilles Crettenand
5c14ea3127 Clean up some exceptions, phpdoc 2015-06-02 22:49:44 +02:00
Gilles Crettenand
af4c9e77c8 better templating 2015-06-02 22:21:17 +02:00
Gilles Crettenand
65f0dfe71f improve template 2015-06-02 17:50:37 +02:00
Gilles Crettenand
2a802ee5e1 Use template for HTML 2015-06-02 17:27:57 +02:00
Gilles Crettenand
34161ba282 Introduce UsageException 2015-06-02 17:27:57 +02:00
Gilles Crettenand
7e0a38e989 Content-Negotiation with the help of Renderer and Formatters 2015-06-02 17:27:22 +02:00
Gilles Crettenand
c0159f4b79 change line endings 2015-06-02 17:26:01 +02:00
Gilles Crettenand
265ed19543 more documentation 2015-06-02 16:21:13 +02:00
Gilles Crettenand
3032ceba96 document genres methods 2015-06-02 16:21:12 +02:00
Gilles Crettenand
644361058e Use the same method to get Genres / Types / Categories 2015-06-02 16:13:29 +02:00
Gilles Crettenand
56331d2737 fix LastBookByType for iOS 2015-06-02 15:56:28 +02:00
Gilles Crettenand
9eaaef55e8 move things around 2015-06-02 15:28:33 +02:00
Gilles Crettenand
9f4df4bec1 fix LastBooksByType and GetRandomBooks 2015-06-02 15:24:07 +02:00
Gilles Crettenand
a15fa4f093 improve FindBooks for great number by operating in chunk 2015-06-02 15:17:28 +02:00
Gilles Crettenand
c18948f424 check session before finding books so we have files 2015-06-02 14:49:26 +02:00
Gilles Crettenand
6698eca126 use solr for findBook and findBooks 2015-06-02 14:39:02 +02:00
Gilles Crettenand
590cfd0e6b trim all the things ! and generate the cover in the SQL query 2015-06-02 13:52:07 +02:00
Gilles Crettenand
4fcdc76312 remove last ',' and trim some fields 2015-06-02 13:44:53 +02:00
Gilles Crettenand
018846e567 Streamline app compatibility between Solr and WS 2015-06-02 13:33:09 +02:00
Gilles Crettenand
1ee3aa305d code must be padded to 5 digits 2015-06-02 12:51:16 +02:00
Gilles Crettenand
be3fde6e95 Fix BookSearch 2015-06-02 09:31:43 +02:00
Gilles Crettenand
02c2ebfa7f send http status code accordingly to status 2015-06-02 01:55:49 +02:00
Gilles Crettenand
ab2092e9c3 PSR-4 compliance & autoloader 2015-06-02 01:20:48 +02:00
Gilles Crettenand
6690b9fe55 checkfile only need the book codes now 2015-06-01 16:03:36 +02:00
Gilles Crettenand
6e2a707df1 store zip file in Solr too 2015-06-01 15:47:18 +02:00
Gilles Crettenand
7b2c4c18ee factorize solr results formatting in BookSearch 2015-06-01 15:20:01 +02:00
Gilles Crettenand
6abf00985d use Solr for random books 2015-06-01 15:13:53 +02:00
Gilles Crettenand
d15f4f58e7 book code is padded to 5 digits by checkfile 2015-06-01 15:05:41 +02:00
Gilles Crettenand
d6b20627fd fix issue when there is multiple optional args 2015-06-01 14:54:29 +02:00
Gilles Crettenand
866ec8bacb save files information in Solr upon retrieving them 2015-06-01 14:39:41 +02:00
Gilles Crettenand
b611de131e also add date to books when not already set, also try to keep files from solr when available 2015-06-01 11:18:50 +02:00
Gilles Crettenand
cf6aa06ba6 rename AddFiles to AddBookData since we plan on adding more data 2015-06-01 11:03:12 +02:00
Gilles Crettenand
112ac74355 use new batch mode to add files 2015-06-01 10:01:20 +02:00
Gilles Crettenand
33649ccc03 rehabilitate the use of $start, and remove unused parameter 2015-05-29 15:57:42 +02:00
Gilles Crettenand
c83df2c7f6 prepare the way for batch files getting 2015-05-29 15:54:36 +02:00
Gilles Crettenand
d04c98fc33 mobile app compatibility 2015-05-29 15:08:50 +02:00
Gilles Crettenand
b2f876fd82 mobile apps need to have a 'files' array even empty 2015-05-29 13:22:02 +02:00
Gilles Crettenand
d8b48e8764 compatibility with iOS / Android apps 2015-05-29 12:48:13 +02:00
Gilles Crettenand
459237a3f5 separate editor and year like in solr 2015-05-29 11:42:44 +02:00
Gilles Crettenand
150d37b5ea restore compatibility with iOS and Android 2015-05-29 11:30:55 +02:00