Bugzilla – Attachment 64525 Details for
Bug 18834
Show "Anyone seeing this list" permission only for shared and public lists
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18834: Show distinction between shared and private lists in staff
Bug-18834-Show-distinction-between-shared-and-priv.patch (text/plain), 3.93 KB, created by
Marcel de Rooy
on 2017-06-22 08:21:54 UTC
(
hide
)
Description:
Bug 18834: Show distinction between shared and private lists in staff
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2017-06-22 08:21:54 UTC
Size:
3.93 KB
patch
obsolete
>From 2223c97878195867d7b983e2b5c4e32dcf13fa61 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >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. >[2] Run t/db_dependent/Utils/Datatables_Virtualshelves.t > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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() { > <th class="NoVisible">Type</th> > <th>List name</th> > <th>Contents</th> >+ <th>Type</th> > <th>Owner</th> > <th>Sort by</th> > <th>Creation date</th> >@@ -644,6 +646,7 @@ function AdjustPerms() { > <th></th> > <th><input class="filter text_filter" id="searchshelfname_filter" placeholder="List name"></th> > <th></th> >+ <th></th> > <th><input class="filter text_filter" id="searchowner_filter" placeholder="Owner"></th> > <th> > <select class="filter text_filter" id="searchsortby_filter"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt >index bf1305a..2593a7a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt >@@ -13,6 +13,8 @@ > "<a href='/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% data.shelfnumber %]'>[% data.shelfname | html%]</a>", > "dt_count": > "[% data.count %] item(s)", >+ "dt_is_shared": >+ "[% IF data.type == 2 %]Public[% ELSIF data.is_shared %]Shared[% ELSE %]Private[% END %]", > "dt_owner": > "<a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% data.owner %]'>[% data.firstname %] [% data.surname %]</a>", > "dt_sortby": >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18834
:
64491
|
64492
|
64493
|
64510
|
64511
|
64512
|
64520
|
64521
|
64522
|
64523
|
64524
|
64525
|
64545
|
64546
|
64547
|
64548