forked from saurabh/personal-book
modified publication date
This commit is contained in:
parent
71faece96d
commit
b4ddea2aca
|
@ -32,7 +32,7 @@ class PersonalBooksController < ApplicationController
|
|||
else
|
||||
t << {"value" => "<a href='#{OrbitHelper.url_to_show(book.to_param)}'>#{book.create_link}</a>"}
|
||||
end
|
||||
when "publish_date"
|
||||
when "publish_date", "publication_date"
|
||||
pd = ""
|
||||
if !book.publish_date.nil?
|
||||
pd = book.publish_date.strftime("%Y-%m-%d").split('-')
|
||||
|
|
|
@ -108,7 +108,7 @@ class Book
|
|||
case t
|
||||
when "book_title", "extracted_chapters"
|
||||
pd_data << { "data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_book')}' target='_blank'>#{p.send(t)}</a>" }
|
||||
when "publish_date"
|
||||
when "publish_date", "publication_date"
|
||||
pd = ""
|
||||
if !p.publish_date.nil?
|
||||
pd = p.publish_date.strftime("%Y-%m-%d").split('-')
|
||||
|
|
Loading…
Reference in New Issue