Commit graph

36 commits

Author SHA1 Message Date
Las Zenow
c01c465330 Store properly the book on the database 2013-07-18 21:53:35 +02:00
Las Zenow
bf0480868d Fix upload problems 2013-07-16 22:56:48 +02:00
Las Zenow
137357cd12 Upload files on a separate goroutine 2013-05-03 00:43:26 +02:00
Las Zenow
67c90e8096 Add the epub extension 2013-04-23 01:04:06 +02:00
Las Zenow
206775fa6a Store statistics on mongodb 2013-04-22 23:28:00 +02:00
Las Zenow
5794a1fe1b Reset the reader to store it on gridfs 2013-04-16 03:28:05 +02:00
Las Zenow
d8bfcb2ef2 Split post and get handlers for upload 2013-04-16 02:34:15 +02:00
Las Zenow
fc50ba5fd6 Use title as filename on gridfs 2013-04-16 02:33:40 +02:00
Las Zenow
05b641201c Store files on GridFS 2013-04-12 01:05:40 +02:00
Las Zenow
d994d6b91f Using epubgo to handle epubs 2013-04-01 14:05:04 +02:00
Las Zenow
66a4a2de4c Don't hardcode paths 2013-03-03 02:39:25 +01:00
Las Zenow
93bd567f8d Change the paths stored on the database
The paths in the database now are relative of the config BOOKS_PATH and COVER_PATH

For updating the database this query should be use:
for (var i = db.books.find(); i.hasNext(); ) {
        var book = i.next();
        db.books.update({_id: book["_id"]}, {$set: {path: book["path"].slice(6), cover: book["cover"].slice(7), coversmall: book["coversmall"].slice(7)}});
}
2012-10-28 20:21:46 +01:00
Las Zenow
2e043af31a Refactor the admin/store code 2012-10-28 17:22:23 +01:00
Las Zenow
85111946ed Refactoring code
Take all the storing stuff out of upload file
2012-10-28 17:04:38 +01:00
Las Zenow
53150466a6 go fmt 2012-10-26 13:44:08 +02:00
Las Zenow
d87351d946 Clean up the code 2012-10-24 22:36:20 +02:00
Las Zenow
11d24f2f20 go fmt 2012-09-14 00:34:13 +02:00
Las Zenow
840fd3ed47 New database squema
The collection new is removed, now the books have a field "active" set to true
if the book was aproved.

For update the database:
db.books.update({}, {$set: {active: true}}, true, true)
2012-09-12 00:19:19 +02:00
Las Zenow
de0fd4227c Remove '/' from titles for use them on paths 2012-09-02 23:07:21 +02:00
Las Zenow
f89416fbf6 Detect image tags for cover 2012-08-25 22:02:40 +02:00
Las Zenow
e5d96ef7b7 Move constants to a config file 2012-08-22 19:48:02 +02:00
Las Zenow
710a84dcba Clean &.*; tags 2012-08-22 10:42:15 +02:00
Las Zenow
e209901fef Use arrays properly when known the lenght 2012-08-22 10:37:48 +02:00
Las Zenow
f35947c644 Upload multiple files 2012-08-22 10:33:57 +02:00
Las Zenow
921cea3efb Reorganize code for the taglist 2012-08-21 11:35:06 +02:00
Las Zenow
0e0e33d364 Remove upload standalone program
All the functionality is move to the web page
2012-08-20 15:38:13 +02:00
Las Zenow
ff6d44d821 Moderate incoming epubs 2012-08-20 14:25:18 +02:00
Las Zenow
e68f41445e Add notifications 2012-08-19 02:29:34 +02:00
Las Zenow
c513344169 Sessions with gorilla 2012-08-18 02:06:43 +02:00
Las Zenow
9f1204db35 Run go fmt 2012-08-15 15:12:59 +02:00
Las Zenow
3db6231762 Use clousures for the http handlers 2012-08-15 13:58:16 +02:00
Las Zenow
beb032eddb Check if the filename exists 2012-08-15 12:29:54 +02:00
Las Zenow
6a656eca31 Inform the user if the upload was success 2012-08-15 12:11:39 +02:00
Las Zenow
b9e39cf57f Upload documents 2012-08-15 11:40:19 +02:00
Las Zenow
c64226ffb9 Basic search and display working 2012-07-30 23:23:38 +02:00
Las Zenow
17cb7765c1 Load metadata into mongoDB 2012-07-27 16:03:09 +02:00