Revision 1420:b688fe79f593 plugins/redmine_bibliography/app
| plugins/redmine_bibliography/app/models/author.rb | ||
|---|---|---|
| 34 | 34 |
end |
| 35 | 35 |
end |
| 36 | 36 |
|
| 37 |
# todo: need to fix the name getter |
|
| 37 | 38 |
def name |
| 38 |
if self.name.nil? |
|
| 39 |
if self.authorships.first.nil? |
|
| 40 |
"" |
|
| 41 |
else |
|
| 42 |
self.authorships.first.name |
|
| 43 |
end |
|
| 39 |
if self.authorships.first.nil? |
|
| 40 |
"" |
|
| 41 |
else |
|
| 42 |
self.authorships.first.name |
|
| 44 | 43 |
end |
| 45 | 44 |
end |
| 46 | 45 |
|
Also available in: Unified diff