removed author from frontend
This commit is contained in:
parent
6be7eea61f
commit
0ec7d850da
|
@ -5,7 +5,6 @@ class PersonalJournalsController < ApplicationController
|
||||||
{
|
{
|
||||||
"year" => journal_paper.year,
|
"year" => journal_paper.year,
|
||||||
"paper_title" => journal_paper.create_link,
|
"paper_title" => journal_paper.create_link,
|
||||||
"author" => journal_paper.authors,
|
|
||||||
"link_to_show" => OrbitHelper.url_to_show(journal_paper.to_param)
|
"link_to_show" => OrbitHelper.url_to_show(journal_paper.to_param)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
@ -26,7 +25,6 @@ class PersonalJournalsController < ApplicationController
|
||||||
plugin = JournalPaper.where(:is_hidden=>false).find_by(uid: params[:uid])
|
plugin = JournalPaper.where(:is_hidden=>false).find_by(uid: params[:uid])
|
||||||
fields_to_show = [
|
fields_to_show = [
|
||||||
"year",
|
"year",
|
||||||
"author_name",
|
|
||||||
"authors",
|
"authors",
|
||||||
"author_type",
|
"author_type",
|
||||||
"paper_title",
|
"paper_title",
|
||||||
|
|
|
@ -51,7 +51,6 @@ class JournalPaper
|
||||||
def create_link
|
def create_link
|
||||||
title = []
|
title = []
|
||||||
|
|
||||||
title << self.member_profile.name if self.member_profile_id.present?
|
|
||||||
title << (!self.authors.blank? ? self.authors : nil)
|
title << (!self.authors.blank? ? self.authors : nil)
|
||||||
title << self.paper_title if self.paper_title.present?
|
title << self.paper_title if self.paper_title.present?
|
||||||
title << self.journal_title if self.journal_title.present?
|
title << self.journal_title if self.journal_title.present?
|
||||||
|
|
Loading…
Reference in New Issue