modified publication date
This commit is contained in:
parent
71faece96d
commit
b4ddea2aca
|
@ -32,7 +32,7 @@ class PersonalBooksController < ApplicationController
|
||||||
else
|
else
|
||||||
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"
|
when "publish_date", "publication_date"
|
||||||
pd = ""
|
pd = ""
|
||||||
if !book.publish_date.nil?
|
if !book.publish_date.nil?
|
||||||
pd = book.publish_date.strftime("%Y-%m-%d").split('-')
|
pd = book.publish_date.strftime("%Y-%m-%d").split('-')
|
||||||
|
|
|
@ -108,7 +108,7 @@ class Book
|
||||||
case t
|
case t
|
||||||
when "book_title", "extracted_chapters"
|
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>" }
|
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 = ""
|
pd = ""
|
||||||
if !p.publish_date.nil?
|
if !p.publish_date.nil?
|
||||||
pd = p.publish_date.strftime("%Y-%m-%d").split('-')
|
pd = p.publish_date.strftime("%Y-%m-%d").split('-')
|
||||||
|
|
Loading…
Reference in New Issue