From 0ec7d850daa45fb52125cc69d4907d673d01e671 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 8 May 2015 16:24:54 +0800 Subject: [PATCH] removed author from frontend --- app/controllers/personal_journals_controller.rb | 2 -- app/models/journal_paper.rb | 1 - 2 files changed, 3 deletions(-) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index fa0ee76..b85f38f 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -5,7 +5,6 @@ class PersonalJournalsController < ApplicationController { "year" => journal_paper.year, "paper_title" => journal_paper.create_link, - "author" => journal_paper.authors, "link_to_show" => OrbitHelper.url_to_show(journal_paper.to_param) } end @@ -26,7 +25,6 @@ class PersonalJournalsController < ApplicationController plugin = JournalPaper.where(:is_hidden=>false).find_by(uid: params[:uid]) fields_to_show = [ "year", - "author_name", "authors", "author_type", "paper_title", diff --git a/app/models/journal_paper.rb b/app/models/journal_paper.rb index 7051468..3c16706 100644 --- a/app/models/journal_paper.rb +++ b/app/models/journal_paper.rb @@ -51,7 +51,6 @@ class JournalPaper def create_link title = [] - title << self.member_profile.name if self.member_profile_id.present? title << (!self.authors.blank? ? self.authors : nil) title << self.paper_title if self.paper_title.present? title << self.journal_title if self.journal_title.present?