Fix a tag bug.
This commit is contained in:
parent
b84067e061
commit
3ff8f93aa6
|
@ -109,7 +109,7 @@ class Book
|
||||||
if !page.nil? && page.custom_string_field == "table"
|
if !page.nil? && page.custom_string_field == "table"
|
||||||
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')}' title='#{p.send(t)}' target='_blank'>#{p.send(t)}</a>" }
|
pd_data << { "data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_book')}' title=\"#{p.send(t)}\" target='_blank'>#{p.send(t)}</a>" }
|
||||||
when "publish_date", "publication_date"
|
when "publish_date", "publication_date"
|
||||||
pd = ""
|
pd = ""
|
||||||
if !p.publication_date.nil?
|
if !p.publication_date.nil?
|
||||||
|
@ -126,7 +126,7 @@ class Book
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if t == "book_title"
|
if t == "book_title"
|
||||||
pd_data << { "data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_book')}' title='#{p.create_link}' target='_blank'>#{p.create_link}</a>" }
|
pd_data << { "data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_book')}' title=\"#{p.create_link}\" target='_blank'>#{p.create_link}</a>" }
|
||||||
else
|
else
|
||||||
pd_data << { "data_title" => p.send(t) }
|
pd_data << { "data_title" => p.send(t) }
|
||||||
end
|
end
|
||||||
|
@ -174,7 +174,7 @@ class Book
|
||||||
self.book_files.each do |book_file|
|
self.book_files.each do |book_file|
|
||||||
url = book_file.member_book_file.url
|
url = book_file.member_book_file.url
|
||||||
title = ((book_file.title.blank? ? File.basename(book_file.member_book_file.path) : book_file.title) rescue "")
|
title = ((book_file.title.blank? ? File.basename(book_file.member_book_file.path) : book_file.title) rescue "")
|
||||||
files << (url.nil? ? "" : "<li><a href='#{url}'' target='_blank'>#{title}</li>")
|
files << (url.nil? ? "" : "<li><a href='#{url}'' target='_blank'>#{title}</a></li>")
|
||||||
end
|
end
|
||||||
value = files.join("")
|
value = files.join("")
|
||||||
when "url"
|
when "url"
|
||||||
|
|
Loading…
Reference in New Issue