From 7f08cc4bf369799d78a754c065d771f39e352d3f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 9 Oct 2012 14:57:21 +0200 Subject: [PATCH] use title/originalTitle not title/internationalTitle --- pandora/item/models.py | 4 ++-- static/js/pandora/infoView.0xdb.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 56bce3c6..c81369bb 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -603,7 +603,7 @@ class Item(models.Model): i = key['id'] if i == 'title': save(i, u'\n'.join([self.get('title', 'Untitled'), - self.get('internationalTitle', '')])) + self.get('originalTitle', '')])) elif i == 'rightslevel': save(i, self.level) elif i == 'filename': @@ -846,7 +846,7 @@ class Item(models.Model): current_values = [current_values] else: current_values = [] - ot = self.get('internationalTitle') + ot = self.get('originalTitle') if ot: current_values.append(ot) elif key == 'character': diff --git a/static/js/pandora/infoView.0xdb.js b/static/js/pandora/infoView.0xdb.js index 5d7bcf2f..8c700694 100644 --- a/static/js/pandora/infoView.0xdb.js +++ b/static/js/pandora/infoView.0xdb.js @@ -590,8 +590,8 @@ pandora.ui.infoView = function(data) { + title.substr(match[0].length); } return title + ( - data.internationalTitle && data.internationalTitle != title - ? ' ' + formatLight('(' + data.internationalTitle + ')') : '' + data.originalTitle && data.originalTitle != title + ? ' ' + formatLight('(' + data.originalTitle + ')') : '' ); }