From 06295237716d49c88745d8156a3193b1e76b6bfa Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 22 Jun 2017 10:14:29 +0200 Subject: [PATCH] Bug 18834: Show distinction between shared and private lists in staff Content-Type: text/plain; charset=utf-8 Just as we show this distinction in OPAC, this patch adds a type column in the Your lists tab that displays Private or Shared. It always contains Public in the other tab. Test plan: [1] Check if you see Shared for a private lists with shares in staff. Signed-off-by: Marcel de Rooy --- C4/Utils/DataTables/VirtualShelves.pm | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt | 3 +++ .../prog/en/modules/virtualshelves/tables/shelves_results.tt | 2 ++ 3 files changed, 6 insertions(+) diff --git a/C4/Utils/DataTables/VirtualShelves.pm b/C4/Utils/DataTables/VirtualShelves.pm index 28f579f..156b68c 100644 --- a/C4/Utils/DataTables/VirtualShelves.pm +++ b/C4/Utils/DataTables/VirtualShelves.pm @@ -122,6 +122,7 @@ sub search { my $s = Koha::Virtualshelves->find( $shelf->{shelfnumber} ); $shelf->{can_manage_shelf} = $s->can_be_managed( $loggedinuser ); $shelf->{can_delete_shelf} = $s->can_be_deleted( $loggedinuser ); + $shelf->{is_shared} = $s->is_shared; } return { iTotalRecords => $iTotalRecords, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index 612449b..f7a6634 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -93,6 +93,7 @@ $(document).ready(function(){ { 'mDataProp': 'dt_type' }, { 'mDataProp': 'dt_shelfname' }, { 'mDataProp': 'dt_count' }, + { 'mDataProp': 'dt_is_shared' }, { 'mDataProp': 'dt_owner' }, { 'mDataProp': 'dt_sortby' }, { 'mDataProp': 'dt_created_on' }, @@ -634,6 +635,7 @@ function AdjustPerms() { Type List name Contents + Type Owner Sort by Creation date @@ -644,6 +646,7 @@ function AdjustPerms() { +