LP#1402797 Add record summary bar to the catalog display, and hide Actions for this...
authorMike Rylander <mrylander@gmail.com>
Mon, 19 Jan 2015 20:17:37 +0000 (15:17 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 25 Feb 2015 16:16:05 +0000 (11:16 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2

index 0549d7d..8953bb7 100644 (file)
@@ -1,12 +1,16 @@
 
-<div class="row pad-vert">
-  <div class="col-md-9">
-    <div class="alert alert-info alert-less-pad strong-text-2">
-      <span ng-if="record_tab == 'catalog'">[% l('Catalog') %]</span>
-      <span ng-if="record_tab == 'marc_html'">[% l('MARC HTML') %]</span>
-      <span ng-if="record_tab == 'holds'">[% l('Holds for Record') %]</span>
-    </div>
-  </div>
+<div class="row pad-vert col-md-12 alert alert-info alert-less-pad strong-text-2">
+  <span ng-if="record_tab == 'catalog'">[% l('Catalog') %]</span>
+  <span ng-if="record_tab == 'marc_html'">[% l('MARC HTML') %]</span>
+  <span ng-if="record_tab == 'holds'">[% l('Holds for Record') %]</span>
+</div>
+
+<div ng-show="record_id" class="row col-md-12">
+    <eg-record-summary record-id="record_id" record="summary_pane_record"></eg-record-summary>
+</div>
+
+<div ng-show="record_id" class="row col-md-12 pad-vert">
+  <div class="col-md-9"></div> <!-- padding -->
   <div class="col-md-3">
     <!-- actions for this record menu -->
     <div class="btn-group pull-right" dropdown>
@@ -32,7 +36,7 @@
   </div>
 </div>
 
-<div>
+<div class="row col-md-12">
   <!-- ng-show allows the catalog iframe to stay loaded (unlike ng-if) -->
   <div ng-show="record_tab == 'catalog'">
     <eg-embed-frame url="catalog_url" handlers="handlers" onchange="handle_page"></eg-embed-frame>