Revision 1286:d0d6bbe9f2e0 plugins/redmine_bibliography/lib/bibliography
| plugins/redmine_bibliography/lib/bibliography/user_author_patch.rb | ||
|---|---|---|
| 22 | 22 |
return institution_name |
| 23 | 23 |
end |
| 24 | 24 |
|
| 25 |
def get_author_info |
|
| 26 |
# TODO: DELETE THIS METHOD?? |
|
| 27 |
info = {
|
|
| 28 |
:name_on_paper => self.name, |
|
| 29 |
:email => self.mail, |
|
| 30 |
:institution => "", |
|
| 31 |
:author_user_id => self.id, |
|
| 32 |
:is_user => "1" |
|
| 33 |
} |
|
| 34 |
|
|
| 35 |
if not self.ssamr_user_detail.nil? |
|
| 36 |
info[:institution] = self.ssamr_user_detail.institution_name |
|
| 37 |
end |
|
| 38 |
|
|
| 39 |
return info |
|
| 40 |
end |
|
| 41 |
|
|
| 42 | 25 |
end #InstanceMethods |
| 43 | 26 |
|
| 44 | 27 |
end #UserPublicationsPatch |
Also available in: Unified diff