From 90aa328706de3070862bd02f1471a2d1a2a878c3 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 6 Jun 2019 16:34:11 +0100 Subject: [PATCH] link format --- static/js/documentInfoView.mdr.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/documentInfoView.mdr.js b/static/js/documentInfoView.mdr.js index 4cdeaba..7923a7d 100644 --- a/static/js/documentInfoView.mdr.js +++ b/static/js/documentInfoView.mdr.js @@ -427,14 +427,14 @@ pandora.ui.documentInfoView = function(data, isMixed) { ret = pandora.formatDate(value); } else if (nameKeys.indexOf(key) > -1) { ret = formatLink(value.split(', '), key); - } else if (listKeys.indexOf(key) > -1) { - ret = formatLink(value.split(', '), key); - } else if (['type', 'publisher', 'format', 'source'].indexOf(key) > -1) { - ret = formatLink(value, key); } else if (key == 'links') { ret = value.split(', ').map(function(link) { return '' + Ox.parseURL(link).host + ''; }).join(', '); + } else if (listKeys.indexOf(key) > -1) { + ret = formatLink(value.split(', '), key); + } else if (['type', 'publisher', 'format', 'source'].indexOf(key) > -1) { + ret = formatLink(value, key); } else { if (isMixed[key]) { ret = 'Mixed'