Mercurial > hg > soundsoftware-site
view plugins/redmine_bibliography/lib/bibliography/user_author_patch.rb @ 1391:8580d1d1150e luisf
Adding 2 new js scripts; added the code removed from the partials. Minor cleaning.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 25 Sep 2013 17:44:48 +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