From: dbs Date: Thu, 26 Aug 2010 03:07:39 +0000 (+0000) Subject: Add explicit identification of the master authority record when merging X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6ca791eb97fbba9cbea10f2149e138baff4f2aef;p=evergreen%2Fbjwebb.git Add explicit identification of the master authority record when merging We now generate a table with the first cell containing either "Master" (indicating the record into which the other records will be merged) and or "Target" (indicating that the record will be merged into the master. This also adds a horizontal rule to delineate between the form buttons at the top, and adds borders to provide more clarity between the mergebox contents. git-svn-id: svn://svn.open-ils.org/ILS/trunk@17343 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/ui/default/cat/authority/list.js b/Open-ILS/web/js/ui/default/cat/authority/list.js index 37dc478a8..dc55a1fc3 100644 --- a/Open-ILS/web/js/ui/default/cat/authority/list.js +++ b/Open-ILS/web/js/ui/default/cat/authority/list.js @@ -71,7 +71,16 @@ function displayAuthorities(data) { dojo.query('#auth' + recId + ' span.text').forEach(function(node) { authText += dojox.xml.parser.textContent(node); }); - dojo.place('
' + authText + '
', 'mergebox-div', 'last'); + + // If there is a toMerge item already, this is a target record + var mergeRole = ''; + var isTarget = dojo.query('.toMerge').length; + if (isTarget) { + mergeRole += 'Target'; + } else { + mergeRole += 'Master'; + } + dojo.place('' + mergeRole + '' + authText + '', 'mergebox-tbody', 'last'); dojo.removeClass('mergebox-div', 'hidden'); }, "label":"Mark for Merge"}).placeAt(auth_menu, "last"); diff --git a/Open-ILS/web/templates/default/cat/authority/list.tt2 b/Open-ILS/web/templates/default/cat/authority/list.tt2 index 3f6c7842e..67a1fa754 100644 --- a/Open-ILS/web/templates/default/cat/authority/list.tt2 +++ b/Open-ILS/web/templates/default/cat/authority/list.tt2 @@ -3,23 +3,6 @@ - -
@@ -63,6 +46,30 @@
+
+ + + +
[% END %]