title change to extracted chapters
This commit is contained in:
parent
e9681170e8
commit
71faece96d
|
@ -26,9 +26,9 @@ class PersonalBooksController < ApplicationController
|
||||||
t = []
|
t = []
|
||||||
fields_to_show.each do |fs|
|
fields_to_show.each do |fs|
|
||||||
case fs
|
case fs
|
||||||
when "book_title"
|
when "book_title", "extracted_chapters"
|
||||||
if page.custom_string_field == "table"
|
if page.custom_string_field == "table"
|
||||||
t << {"value" => "<a href='#{OrbitHelper.url_to_show(book.to_param)}'>#{book.book_title}</a>"}
|
t << {"value" => "<a href='#{OrbitHelper.url_to_show(book.to_param)}'>#{book.send(fs)}</a>"}
|
||||||
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
|
||||||
|
|
|
@ -106,8 +106,8 @@ class Book
|
||||||
fields_to_show.collect do |t|
|
fields_to_show.collect do |t|
|
||||||
if !page.nil? && page.custom_string_field == "table"
|
if !page.nil? && page.custom_string_field == "table"
|
||||||
case t
|
case t
|
||||||
when "book_title"
|
when "book_title", "extracted_chapters"
|
||||||
pd_data << { "data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_book')}' target='_blank'>#{p.book_title}</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"
|
||||||
pd = ""
|
pd = ""
|
||||||
if !p.publish_date.nil?
|
if !p.publish_date.nil?
|
||||||
|
|
Loading…
Reference in New Issue