Update personal_books_controller.rb
This commit is contained in:
parent
fcbd1d786c
commit
d03e62138f
|
@ -63,12 +63,7 @@ class PersonalBooksController < ApplicationController
|
||||||
t << {"value" => "<a href='#{OrbitHelper.url_to_show(book.to_param)}'>#{book.create_link}</a>"}
|
t << {"value" => "<a href='#{OrbitHelper.url_to_show(book.to_param)}'>#{book.create_link}</a>"}
|
||||||
end
|
end
|
||||||
when "publish_date", "publication_date"
|
when "publish_date", "publication_date"
|
||||||
pd = ""
|
t << {"value" => book.publication_date.strftime("%Y/%m/%d")}
|
||||||
if !book.publication_date.nil?
|
|
||||||
pd = book.publication_date.strftime("%Y-%m-%d").split('-')
|
|
||||||
pd = pd[0]+"/"+pd[1]
|
|
||||||
end
|
|
||||||
t << {"value" => pd}
|
|
||||||
when "author_type"
|
when "author_type"
|
||||||
t << {"value" => (book.book_author_types.collect{|bat| bat.title}.join(", ") rescue "")}
|
t << {"value" => (book.book_author_types.collect{|bat| bat.title}.join(", ") rescue "")}
|
||||||
when "language"
|
when "language"
|
||||||
|
|
Loading…
Reference in New Issue