This commit is contained in:
parent
bc2c3b65ad
commit
20d1119b75
2 changed files with 6 additions and 6 deletions
|
@ -591,7 +591,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('originalTitle', '')]))
|
self.get('internationalTitle', '')]))
|
||||||
elif i == 'rightslevel':
|
elif i == 'rightslevel':
|
||||||
save(i, self.level)
|
save(i, self.level)
|
||||||
elif i == 'filename':
|
elif i == 'filename':
|
||||||
|
@ -834,7 +834,7 @@ class Item(models.Model):
|
||||||
current_values = [current_values]
|
current_values = [current_values]
|
||||||
else:
|
else:
|
||||||
current_values = []
|
current_values = []
|
||||||
ot = self.get('originalTitle')
|
ot = self.get('internationalTitle')
|
||||||
if ot:
|
if ot:
|
||||||
current_values.append(ot)
|
current_values.append(ot)
|
||||||
elif key == 'character':
|
elif key == 'character':
|
||||||
|
|
|
@ -264,8 +264,8 @@ pandora.ui.infoView = function(data) {
|
||||||
.html(
|
.html(
|
||||||
formatKey('Alternative Title' + (data.alternativeTitles.length == 1 ? '' : 's'))
|
formatKey('Alternative Title' + (data.alternativeTitles.length == 1 ? '' : 's'))
|
||||||
+ data.alternativeTitles.map(function(value) {
|
+ data.alternativeTitles.map(function(value) {
|
||||||
return value[0] + (value[1] ? ' '
|
return value[0] + (Ox.isArray(value[1]) ? ' '
|
||||||
+ formatLight('(' + value[1] + ')') : '');
|
+ formatLight('(' + value[1].join(', ') + ')') : '');
|
||||||
}).join(', ')
|
}).join(', ')
|
||||||
)
|
)
|
||||||
.appendTo($text);
|
.appendTo($text);
|
||||||
|
@ -574,8 +574,8 @@ pandora.ui.infoView = function(data) {
|
||||||
title = title.replace(match[0], formatLight(match[0]));
|
title = title.replace(match[0], formatLight(match[0]));
|
||||||
}
|
}
|
||||||
return title + (
|
return title + (
|
||||||
data.originalTitle && data.originalTitle != title
|
data.internationalTitle && data.internationalTitle != title
|
||||||
? ' ' + formatLight('(' + data.originalTitle + ')') : ''
|
? ' ' + formatLight('(' + data.internationalTitle + ')') : ''
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue