From 4ceec57d088166425ec2ac41b22b7b7697ec3334 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 11 Sep 2020 11:31:32 +0200 Subject: [PATCH 1/2] fix space --- config.jsonc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/config.jsonc b/config.jsonc index 823ab4e..eb9b2e8 100644 --- a/config.jsonc +++ b/config.jsonc @@ -245,6 +245,15 @@ "find": true, "sort": true }, + { + "id": "space", + "title": "Space", + "type": ["string"], + "columnWidth": 128, + "filter": true, + "find": true, + "sort": true + }, { "id": "date", "title": "Date", @@ -672,15 +681,6 @@ "find": true, "sort": true }, - { - "id": "space", - "title": "Space", - "type": ["string"], - "columnWidth": 128, - "filter": true, - "find": true, - "sort": true - }, { "id": "date", "title": "Date", From 3a68a851720110cea0de2fe1a993323ee9d96266 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 11 Sep 2020 11:31:38 +0200 Subject: [PATCH 2/2] 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 = {