From e736a9476da7c30020919912696a412bf36aa897 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 8 May 2015 16:21:45 +0800 Subject: [PATCH] removed author from frontend --- app/controllers/personal_books_controller.rb | 2 +- app/models/book.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/personal_books_controller.rb b/app/controllers/personal_books_controller.rb index 97195a3..48ac351 100644 --- a/app/controllers/personal_books_controller.rb +++ b/app/controllers/personal_books_controller.rb @@ -28,7 +28,7 @@ class PersonalBooksController < ApplicationController plugin = Book.where(:is_hidden=>false).find_by(uid: params[:uid]) fields_to_show = [ "year", - "author_name", + "book_title", "authors", "book_paper_type", "book_title", diff --git a/app/models/book.rb b/app/models/book.rb index ce5baf1..e7c987f 100644 --- a/app/models/book.rb +++ b/app/models/book.rb @@ -41,7 +41,7 @@ class Book def create_link title = [] - title << self.member_profile.name if self.member_profile.present? + # title << self.member_profile.name if self.member_profile.present? title << self.authors if self.authors.present? title << self.book_title if self.book_title.present? title << self.extracted_chapters if self.extracted_chapters.present?