Bug 21297: Display public lists to existing lists when adding a new item
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 14 Sep 2018 22:56:44 +0000 (15:56 -0700)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 28 Sep 2018 19:18:43 +0000 (19:18 +0000)
If there are no private lists the public lists are not displayed.

Test plan:
1) Add 10 public lists (This is when the 'More lists' menu item becomes
view-able)
2) Select an item
3) Click Add to list
4) Select 'More Lists' menu item
5) Note that 'Select an existing list' is an available option

Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt

index 3377990..898a8b3 100644 (file)
@@ -35,7 +35,7 @@
 [% UNLESS ( shelfnumber ) %]
 
 [% UNLESS ( newshelf ) %]
-    [% IF ( private_shelves.count ) %]
+    [% IF private_shelves.count OR public_shelves.count OR private_shelves_shared_with_me.count %]
      <fieldset class="rows">
     <legend>Select an existing list</legend>
     <ol>