diff --git a/app/models/book.rb b/app/models/book.rb
index 3bbe13e..f56f273 100644
--- a/app/models/book.rb
+++ b/app/models/book.rb
@@ -112,8 +112,9 @@ class Book
case t
when "book_title", "extracted_chapters"
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_book')
- link = (link == "#" ? p.send(t) : "#{p.send(t)}")
- pd_data << { "data_title" => link }
+ url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank)
+ tmp_title = p.send(t)
+ pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "#{tmp_title}") }
when "publish_date", "publication_date"
pd = ""
if !p.publication_date.nil?
@@ -131,8 +132,9 @@ class Book
else
if t == "book_title"
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_book')
- link = (link == "#" ? p.create_link : "#{p.create_link}")
- pd_data << { "data_title" => link }
+ url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank)
+ tmp_title = p.create_link
+ pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "#{tmp_title}") }
else
pd_data << { "data_title" => p.send(t) }
end