Revision 1413:0e40e05048eb plugins/redmine_bibliography
| plugins/redmine_bibliography/app/models/author.rb | ||
|---|---|---|
| 19 | 19 |
} |
| 20 | 20 |
|
| 21 | 21 |
def institution |
| 22 |
self.authorship.first.institution |
|
| 22 |
if self.authorships.first.nil? |
|
| 23 |
"" |
|
| 24 |
else |
|
| 25 |
self.authorships.first.institution |
|
| 26 |
end |
|
| 23 | 27 |
end |
| 24 | 28 |
end |
Also available in: Unified diff