Commit graph

17 commits

Author SHA1 Message Date
Las Zenow
424a0fad8e Allow multiline descriptions 2013-05-31 00:34:11 +02:00
Las Zenow
fc50ba5fd6 Use title as filename on gridfs 2013-04-16 02:33:40 +02:00
Las Zenow
986f834f46 Put the covers on the database 2013-04-15 22:10:48 +02:00
Las Zenow
6971028b9e Fix OpenBook from GridFS 2013-04-12 01:43:23 +02:00
Las Zenow
05b641201c Store files on GridFS 2013-04-12 01:05:40 +02:00
Las Zenow
64375b6de5 Store the ISBN 2013-04-08 01:41:46 +02:00
Las Zenow
d994d6b91f Using epubgo to handle epubs 2013-04-01 14:05:04 +02:00
Las Zenow
cf773da9db Use image API for resize images
Some jpeg images won't load correctly with it until Go 1.1
2013-03-20 21:25:53 +01:00
Las Zenow
0190a83253 go fmt 2012-12-05 15:23:49 +01:00
Las Zenow
4805d926f0 Log in case of errors on store 2012-10-29 20:14:45 +01:00
Las Zenow
19068d048d go fmt 2012-10-29 19:18:57 +01:00
Las Zenow
54f4ebcbf9 Create folders only if they are necessary 2012-10-29 19:17:10 +01:00
Las Zenow
6af9db50a4 Handle utf characters properly
If the title of the book start with a non-ascii character create the folder with the first character properly.
2012-10-28 23:19:22 +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
1f6fb8565b Refactoring admin/delete code 2012-10-28 17:27:01 +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