From 9617f214e533d5c4ce7d5ce5b89396faf1d45d22 Mon Sep 17 00:00:00 2001 From: blake Date: Thu, 9 Nov 2017 15:35:07 +0000 Subject: [PATCH] lp#1724321 Web Client -- existence of record with duplicate TCN does not prevent import This routes the MARC import execution back to the z39.50 code instead of using the generic MARC editor. This will make use of open-ils.cat.biblio.record.xml.import instead of pcrud. Test 1. Edit global flag variable "Cat: Use Internal ID for TCN Value" = false 2. Perform a z39.50 search, click a result and click "import" 3. Step two should be successful, now import it again and you should get an error 4. Click the same result but use "Edit then import" 5. From the MARC editor, make no changes and click "Import" 6. It won't complain about duplicate TCNs 7. Apply the patch 8. Perform steps 4 and 5 9. Notice that the editor does not allow you to import the record Signed-off-by: blake Signed-off-by: Chris Sharp Signed-off-by: Jason Etheridge --- .../src/templates/staff/cat/z3950/t_marc_edit.tt2 | 2 +- .../js/ui/default/staff/cat/services/marcedit.js | 9 +++++- Open-ILS/web/js/ui/default/staff/cat/z3950/app.js | 32 ++++++++++++++++++---- 3 files changed, 35 insertions(+), 8 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/z3950/t_marc_edit.tt2 b/Open-ILS/src/templates/staff/cat/z3950/t_marc_edit.tt2 index 8e55ebf054..bcbe41f7e4 100644 --- a/Open-ILS/src/templates/staff/cat/z3950/t_marc_edit.tt2 +++ b/Open-ILS/src/templates/staff/cat/z3950/t_marc_edit.tt2 @@ -7,7 +7,7 @@