view plugins/redmine_bibliography/lib/bibliography/user_author_patch.rb @ 1385:bfef1bf3bedd luisf

Correctly renders the title of an the activities#index view. Fixes Issue #750.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 20 Sep 2013 19:54:06 +0100
parents d0d6bbe9f2e0
children 8d721cac2925
line wrap: on
line source
require_dependency 'user'

module Bibliography
  module UserAuthorPatch
    def self.included(base)
      base.send(:include, InstanceMethods)
      extend ClassMethods

    end #self.included

    module ClassMethods
    end

    module InstanceMethods

      def institution
        unless self.ssamr_user_detail.nil?
          institution_name = self.ssamr_user_detail.institution_name
        else
          institution_name = "No Institution Set"
        end
        return institution_name
      end

    end #InstanceMethods

  end #UserPublicationsPatch
end #RedmineBibliography