use title/originalTitle not title/internationalTitle

This commit is contained in:
j 2012-10-09 14:57:21 +02:00
parent 4bbc6a6310
commit 7f08cc4bf3
2 changed files with 4 additions and 4 deletions

View file

@ -603,7 +603,7 @@ class Item(models.Model):
i = key['id'] i = key['id']
if i == 'title': if i == 'title':
save(i, u'\n'.join([self.get('title', 'Untitled'), save(i, u'\n'.join([self.get('title', 'Untitled'),
self.get('internationalTitle', '')])) self.get('originalTitle', '')]))
elif i == 'rightslevel': elif i == 'rightslevel':
save(i, self.level) save(i, self.level)
elif i == 'filename': elif i == 'filename':
@ -846,7 +846,7 @@ class Item(models.Model):
current_values = [current_values] current_values = [current_values]
else: else:
current_values = [] current_values = []
ot = self.get('internationalTitle') ot = self.get('originalTitle')
if ot: if ot:
current_values.append(ot) current_values.append(ot)
elif key == 'character': elif key == 'character':

View file

@ -590,8 +590,8 @@ pandora.ui.infoView = function(data) {
+ title.substr(match[0].length); + title.substr(match[0].length);
} }
return title + ( return title + (
data.internationalTitle && data.internationalTitle != title data.originalTitle && data.originalTitle != title
? ' ' + formatLight('(' + data.internationalTitle + ')') : '' ? ' ' + formatLight('(' + data.originalTitle + ')') : ''
); );
} }