From 3a68a851720110cea0de2fe1a993323ee9d96266 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 11 Sep 2020 11:31:38 +0200 Subject: [PATCH] link document --- cleanup/add_volume.py | 2 +- static/js/documentInfoView.leftovers.js | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/cleanup/add_volume.py b/cleanup/add_volume.py index 7fd8203..82abf10 100755 --- a/cleanup/add_volume.py +++ b/cleanup/add_volume.py @@ -19,8 +19,8 @@ else: for regex, fragments in ( ['Vol. (\d+), No. (\d+)', ['Vol.', 'No.']], ['Vol (\d+) no (\d+)', [' Vol ', ' no ']], + ['vol (\d+) no (\d+)', [' Vol ', ' no ']], ['Vol:(\d+) #(\d+)', ['Vol:', '#']], - #['no (\d+) (\d+)-', [' no ']], ): query = { 'conditions': [ diff --git a/static/js/documentInfoView.leftovers.js b/static/js/documentInfoView.leftovers.js index 56d91ce..8d59564 100644 --- a/static/js/documentInfoView.leftovers.js +++ b/static/js/documentInfoView.leftovers.js @@ -420,6 +420,22 @@ pandora.ui.documentInfoView = function(data, isMixed) { .appendTo($statistics); renderRightsLevel(); + // Links + $('
') + .css({marginTop: '16px', marginBottom: '16px', pointer: 'cursor'}) + .append('') + .append( + Ox.Theme.formatColor(null, 'gradient') + .html('View Document') + .css({poiner: 'cursor'}) + .on({ + click: function() { + pandora.UI.set({documentView: 'view'}) + } + }) + ) + .appendTo($statistics); + function editMetadata(key, value) { if (value != data[key]) { var edit = {