Commit Graph

133 Commits

Author SHA1 Message Date
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
Gilles Crettenand
b1abe9d446 we are expecting an array not a SolrObject 2015-05-29 11:23:02 +02:00
Gilles Crettenand
3e773bd32a fix issue where result was also top level in returned json 2015-05-29 11:20:31 +02:00
Gilles Crettenand
72ef14ad93 new fields name also in query result 2015-05-29 11:16:59 +02:00
Gilles Crettenand
f9c85c73dd Adapt to new Solr config :
- category -> genre
- cover in solr
- producer -> producerCode
2015-05-29 11:01:24 +02:00
Gilles Crettenand
28b4b8a985 move all exception declaration to their own file 2015-05-29 09:39:25 +02:00
Gilles Crettenand
16860ce7f7 better random book filter 2015-05-28 12:36:02 +02:00
Gilles Crettenand
47f9ce93be fix a bug : func is not yet filled before calling Call 2015-05-28 10:37:53 +02:00
Gilles Crettenand
2281c9a534 do not get deleted books on random 2015-05-28 10:34:59 +02:00
Gilles Crettenand
4821497804 new function to get Random Books 2015-05-28 10:20:41 +02:00
Gilles Crettenand
55a80f3d65 cleanup AddDownloadLog 2015-05-28 09:52:25 +02:00
Gilles Crettenand
fdf081493e Directly return data instead of using an Output method 2015-05-28 09:32:40 +02:00
Gilles Crettenand
4c85a079ed small SQL cleanup 2015-05-28 09:22:27 +02:00
Gilles Crettenand
90a1d8a6b6 no need to try to get files if we have no code 2015-05-28 09:22:22 +02:00
Gilles Crettenand
6afa8b55f7 Cleanup unused methods and code formatting 2015-05-21 16:04:36 +02:00
Gilles Crettenand
0d6841d106 Improve speed of wish related function 2015-05-21 15:07:54 +02:00
Gilles Crettenand
3406e640e9 catch all exceptions so that we have logs 2015-05-21 14:33:25 +02:00