X-Git-Url: http://jaekl.net/gitweb/?p=quanlib.git;a=blobdiff_plain;f=book.rb;h=6d90c0e2947a0a243b3480758518159e075d8d85;hp=ea650249a9ac6c8c120e72824dce646276bc4c9f;hb=HEAD;hpb=5c1cd0b8778c301090bfdda6f9cb2399e70b792d diff --git a/book.rb b/book.rb index ea65024..2b93f4b 100644 --- a/book.rb +++ b/book.rb @@ -12,6 +12,7 @@ class Book @@DC_NS_URL = 'http://purl.org/dc/elements/1.1/' @@SERIES_AND_VOLUME_REGEX = /^([A-Z]+)([0-9]+(\.[0-9]+)?)$/ + attr_accessor :arrived attr_accessor :author attr_accessor :classification_id attr_accessor :cover @@ -224,6 +225,8 @@ class Book scan_pdf!(file_name) end + @arrived = File.ctime(file_name) + @classification_id = @store.find_classification(@author.grouping, File.basename(file_name, '.*')) # TODO: Fix horrible hard-coded strings and paths