modified publication date

This commit is contained in:
Harry Bomrah 2016-04-06 13:08:32 +08:00
parent 71faece96d
commit b4ddea2aca
2 changed files with 2 additions and 2 deletions

View File

@ -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('-')

View File

@ -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('-')