From 86017f1c20bb1380c994415137eaf8ef1f2513dd Mon Sep 17 00:00:00 2001 From: Garry Collum <gcollum@gmail.com> Date: Thu, 31 May 2018 21:22:35 -0400 Subject: [PATCH] LP#1770246 Catalog linked title column in query and pending buckets 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 | 5 +++++ Open-ILS/src/templates/staff/cat/bucket/record/t_search.tt2 | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Open-ILS/src/templates/staff/cat/bucket/record/t_pending.tt2 b/Open-ILS/src/templates/staff/cat/bucket/record/t_pending.tt2 index 6d3a52552e..2e910b2a4d 100644 --- a/Open-ILS/src/templates/staff/cat/bucket/record/t_pending.tt2 +++ b/Open-ILS/src/templates/staff/cat/bucket/record/t_pending.tt2 @@ -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> diff --git a/Open-ILS/src/templates/staff/cat/bucket/record/t_search.tt2 b/Open-ILS/src/templates/staff/cat/bucket/record/t_search.tt2 index 684b13999f..1f8e9f611c 100644 --- a/Open-ILS/src/templates/staff/cat/bucket/record/t_search.tt2 +++ b/Open-ILS/src/templates/staff/cat/bucket/record/t_search.tt2 @@ -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> -- 2.11.0