Skip to content

Commit 5ac280f

Browse files
author
Gustavo Fonseca
committed
Merge branch 'beta'
2 parents 00a03d1 + 7485206 commit 5ac280f

File tree

3 files changed

+74
-73
lines changed

3 files changed

+74
-73
lines changed

scielomanager/export/markupfile.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ def __init__(self, issue):
9898

9999
@property
100100
def legend(self):
101-
return u'{0} v.{1} n.{2}'.format(self._issue.journal.title_iso,
102-
unicode(self._issue.volume),
103-
unicode(self._issue.identification))
101+
return u'{0} v.{1} n.{2}'.format(self._issue.journal.short_title,
102+
unicode(self._issue.volume),
103+
unicode(self._issue.identification))
104104

105105
@property
106106
def period(self):

scielomanager/export/tests/tests_markupfiles.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def test_legend(self):
293293
dummy_issue.identification
294294
self.mocker.result('3')
295295

296-
dummy_journal.title_iso
296+
dummy_journal.short_title
297297
self.mocker.result('Star Wars')
298298

299299
self.mocker.replay()
@@ -337,7 +337,7 @@ def test_perfect_unicode_representation(self):
337337
dummy_issue.journal
338338
self.mocker.result(dummy_journal)
339339

340-
dummy_journal.title_iso
340+
dummy_journal.short_title
341341
self.mocker.result('Star Wars')
342342

343343
dummy_issue.volume

0 commit comments

Comments
 (0)