LP#1744996 Webstaff bib rec merged to link
authorBill Erickson <berickxx@gmail.com>
Thu, 25 Jan 2018 16:10:45 +0000 (11:10 -0500)
committerDan Wells <dbw2@calvin.edu>
Tue, 27 Feb 2018 16:40:47 +0000 (11:40 -0500)
Display a message in the web staff bib record display indicating when a
bib record has been merged to another record.  The message includes the
merge date and target record and is rendered as a link to the target
record.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/templates/staff/cat/share/t_record_summary.tt2

index 0675dba..e11eead 100644 (file)
     </div>
   </div>
 </div>
-
+<div ng-if="record.merged_to()" class="row alert alert-warning">
+  <a href="[% ctx.base_path %]/staff/cat/catalog/record/{{record.merged_to()}}">
+    [% l('Record merged to #[_1] on [_2]', 
+         '{{record.merged_to()}}',
+         '{{record.merge_date() | date:$root.egDateAndTimeFormat}}') 
+    %]
+  </a>
+</div>
 <div class="flex-container-striped flex-container-bordered" ng-show="collapse_summary()">
   <div class="flex-row">
     <div class="flex-cell strong-text">[% l('Title:') %]</div>