LP#1770246 Catalog linked title column in query and pending buckets
authorGarry Collum <gcollum@gmail.com>
Fri, 1 Jun 2018 01:22:35 +0000 (21:22 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 5 Oct 2018 20:37:28 +0000 (16:37 -0400)
To mirror the Record Bucket View grid, this patch adds a title column
in the query and pending bucket tabs that links to the catalog record
of the title displayed. The catalog record is opened in a new tab, so
the query and pending data is not lost.

Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/cat/bucket/record/t_pending.tt2
Open-ILS/src/templates/staff/cat/bucket/record/t_search.tt2

index 6d3a525..2e910b2 100644 (file)
@@ -17,4 +17,9 @@
   <eg-grid-action label="[% l('Clear List') %]" 
     handler="resetPendingList"></eg-grid-action>
 
+  <eg-grid-field label="[% l('Title') %]" path="title">
+    <a target="_blank" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.id}}">
+    {{item.title}}
+    </a>
+  </eg-grid-field>
 </eg-grid>
index 684b139..1f8e9f6 100644 (file)
@@ -43,4 +43,9 @@
   <eg-grid-action label="[% l('Add To Bucket') %]" 
     handler="addToBucket"></eg-grid-action>
 
+  <eg-grid-field label="[% l('Title') %]" path="title">
+    <a target="_blank" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.id}}">
+    {{item.title}}
+    </a>
+  </eg-grid-field>
 </eg-grid>