From 90d93ea18314597f7a31a0450f8f7f652d26864e Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 16 Dec 2019 10:40:01 -0500 Subject: [PATCH] LP1852782 MARC editor authority linking support Adds authority browse UI for controlled bib tags, with support for applying headings for found authorities. Adds 3 new open-ils.cat APIs for managing the authority browse and linking logic, lifted from the AngJS MARC editor. open-ils.cat.authority.validate.bib_field open-ils.cat.authority.bib_field.linking_browse open-ils.cat.authority.bib_field.overlay_authority Adds new "Show As Heading" and "Show As MARC" options allowing staff to see the main headings, see from, and see alsos as human-friendly text or as the raw MARC data. Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg --- .../buckets/bucket-dialog.component.html | 12 +- .../authority-linking-dialog.component.html | 116 ++++++ .../authority-linking-dialog.component.ts | 134 +++++++ .../marc-edit/editable-content.component.css | 14 +- .../marc-edit/editable-content.component.html | 16 +- .../marc-edit/editable-content.component.ts | 30 ++ .../staff/share/marc-edit/editor-context.ts | 83 ++++- .../staff/share/marc-edit/marc-edit.module.ts | 4 +- .../app/staff/share/marc-edit/marcrecord.ts | 4 + .../share/marc-edit/rich-editor.component.css | 7 + .../marc-edit/rich-editor.component.html | 47 ++- .../share/marc-edit/rich-editor.component.ts | 63 +++- .../staff/share/marc-edit/tagtable.service.ts | 18 +- .../lib/OpenILS/Application/Cat/Authority.pm | 333 ++++++++++++++++++ .../staff/cat/share/t_authority_browser.tt2 | 6 +- .../staff/cat/share/t_authority_linker.tt2 | 2 +- 16 files changed, 843 insertions(+), 46 deletions(-) create mode 100644 Open-ILS/src/eg2/src/app/staff/share/marc-edit/authority-linking-dialog.component.html create mode 100644 Open-ILS/src/eg2/src/app/staff/share/marc-edit/authority-linking-dialog.component.ts diff --git a/Open-ILS/src/eg2/src/app/staff/share/buckets/bucket-dialog.component.html b/Open-ILS/src/eg2/src/app/staff/share/buckets/bucket-dialog.component.html index 2c595487f6..de4d29cee8 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/buckets/bucket-dialog.component.html +++ b/Open-ILS/src/eg2/src/app/staff/share/buckets/bucket-dialog.component.html @@ -9,7 +9,7 @@ Add Records from queue #{{fromBibQueue}} to Bucket - @@ -18,13 +18,13 @@
Name of existing bucket
-
- @@ -33,13 +33,13 @@
Name of new bucket
-
- @@ -48,7 +48,7 @@
New bucket description
-