Commit Graph

122 Commits

Author SHA1 Message Date
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
Gilles Crettenand
eed4a1ef9c avoid calling non existing method 2015-05-21 14:32:13 +02:00
Gilles Crettenand
c1b68ccfe6 This static property does not exists anymore 2015-05-21 14:30:36 +02:00
Gilles Crettenand
a7705060a0 Raise a BookNotFoundException when the book is not found 2015-05-21 14:30:19 +02:00
Gilles Crettenand
c26e624480 book are not objects anymore 2015-05-21 14:25:43 +02:00
Gilles Crettenand
db1a9e911e return array instead of hashes 2015-05-21 10:59:33 +02:00
Gilles Crettenand
0a23f9deee books must be grouped by type 2015-05-20 16:33:29 +02:00
Gilles Crettenand
3400132b1b restore LastBooksByType 2015-05-20 16:27:28 +02:00
Gilles Crettenand
71b2af844f also use raw for wishes 2015-05-20 15:51:00 +02:00
Gilles Crettenand
a4713135f3 use improved method for get(Old)Circulations 2015-05-20 15:44:26 +02:00
Gilles Crettenand
afca12a232 remove LastBooksByType from the WS 2015-05-20 15:27:58 +02:00
Gilles Crettenand
c897f2c9c6 always load details in the same query 2015-05-20 15:22:51 +02:00