From d1816f084c4e4e4276af0e4b3e17d31fb5eb3ef1 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 23 Dec 2016 01:38:27 -0500 Subject: [PATCH] LP#1117808: teach record bucket merge about merge profiles This patch adds a widget to the record bucket merge dialog to allow the user to select a MARC merge profile to use during the merge. After the user has chosen a lead record, the result of the merge is displayed in the left-hand pane, and is updated whenever the user - changes the selected merge profile - swaps in a different lead record - removes a subordinate record from consideration As before, the user can choose to edit the lead record, but note that the version that is edited is the /original/ version of the lead record, with any changes due to the merge profile being applied after the edit. Since there can be more than one subordinate record in play, the result of the merge is calculated by merging the first subordinate record into the lead record, then in the second subordinate record, and so forth. Merge profiles that have a 'preserve' specification are excluded from selection, as such profiles have the effect of swapping what is considered the lead record for the purpose of the MARC merge. Signed-off-by: Galen Charlton --- .../staff/cat/bucket/record/t_edit_lead_record.tt2 | 6 +- .../staff/cat/bucket/record/t_merge_records.tt2 | 13 ++- .../js/ui/default/staff/cat/bucket/record/app.js | 99 +++++++++++++++++++--- 3 files changed, 99 insertions(+), 19 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/bucket/record/t_edit_lead_record.tt2 b/Open-ILS/src/templates/staff/cat/bucket/record/t_edit_lead_record.tt2 index 60f3a099a3..40c05e1332 100644 --- a/Open-ILS/src/templates/staff/cat/bucket/record/t_edit_lead_record.tt2 +++ b/Open-ILS/src/templates/staff/cat/bucket/record/t_edit_lead_record.tt2 @@ -5,8 +5,10 @@