diff --git a/static/js/infoView.indiancinema.js b/static/js/infoView.indiancinema.js
index a84b9dee..5f21abbe 100644
--- a/static/js/infoView.indiancinema.js
+++ b/static/js/infoView.indiancinema.js
@@ -310,28 +310,8 @@ pandora.ui.infoView = function(data) {
// Encyclopedia and Wiki ---------------------------------------------------
- if ((data.encyclopedia || data.wiki) && canEdit) {
- $links = Ox.Element().addClass('OxSelectable').css(css);
- if (data.encyclopedia) {
- $links
- .append(formatKey('encyclopedia'))
- .append(
- ''
- + data.encyclopedia + ''
- )
- .append(data.wiki ? '; ' : '');
- }
- if (data.wiki) {
- $links
- .append(formatKey('wiki'))
- .append(
- ''
- + Ox.decodeURI(data.wiki.split('wiki/').pop()) + ''
- );
- }
- $links.appendTo($text);
- pandora.createLinks($links);
+ if (['staff', 'admin'].indexOf(pandora.user.level) > -1 && canEdit) {
+ renderGroup(['encyclopedia', 'wiki']);
}
// Summary -----------------------------------------------------------------
@@ -484,6 +464,8 @@ pandora.ui.infoView = function(data) {
}) : [];
data[key] = edit[key];
$alternativeTitles.html(formatKey(key));
+ } else if (key == 'encyclopedia') {
+ edit[key] = ['Index', 'Summary'].indexOf(value) > -1 ? value : '';
} else if (key == 'year') {
edit[key] = value ? parseInt(value) : '';
} else if (key == 'runtime') {
@@ -600,6 +582,13 @@ pandora.ui.infoView = function(data) {
} else if (key == 'imdbId') {
ret = '' + value + '';
+ } else if (key == 'encyclopedia') {
+ ret = ''
+ + value + '';
+ } else if (key == 'wiki') {
+ ret = ''
+ + Ox.decodeURI(data.wiki.split('wiki/').pop()) + '';
} else {
ret = value;
}