From 962a16a3e8e8dcdad651175610afd402577ca0d8 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 18 Apr 2019 11:47:05 +0200 Subject: [PATCH] source --- config.jsonc | 11 +++++++++++ install.py | 2 ++ static/js/documentInfoView.mdr.js | 1 + 3 files changed, 14 insertions(+) diff --git a/config.jsonc b/config.jsonc index 04e42d5..b5e1e0a 100644 --- a/config.jsonc +++ b/config.jsonc @@ -195,6 +195,17 @@ "autocomplete": true, "columnWidth": 256 }, + { + "id": "source", + "operator": "+", + "title": "Source", + "type": "string", + "filter": true, + "find": true, + "sort": true, + "autocomplete": true, + "columnWidth": 256 + }, { "id": "group", "operator": "+", diff --git a/install.py b/install.py index 839494d..ed5fc87 100755 --- a/install.py +++ b/install.py @@ -46,6 +46,8 @@ os.symlink(basename(target), t) for root, folders, files in os.walk(join(base, 'scripts')): for f in files: src = join(root, f) + if '__pycache__' in src or src.endswith('.pyc'): + continue target = src.replace(base, '/srv/pandora') rel_src = os.path.relpath(src, dirname(target)) if os.path.exists(target): diff --git a/static/js/documentInfoView.mdr.js b/static/js/documentInfoView.mdr.js index c93f273..ac45664 100644 --- a/static/js/documentInfoView.mdr.js +++ b/static/js/documentInfoView.mdr.js @@ -231,6 +231,7 @@ pandora.ui.documentInfoView = function(data, isMixed) { renderGroup(['author', 'date', 'format']); renderGroup(['publisher', 'place', 'series', 'language']); + renderGroup(['source']); renderGroup(['movement', 'event', 'associatedgroups']); renderGroup(['tags']);