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/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", 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 = {