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