From d835fb47890a8f3bb3692a2f18790d31b5a532e4 Mon Sep 17 00:00:00 2001 From: Caitlin Goodger Date: Wed, 18 Jan 2017 03:23:02 +0000 Subject: [PATCH] Bug 17886 Don't show option to add to existing list if there are no lists Test Plan 1: Make sure that you don't have any lists and then add a Biblical Record to a list 2: You should see that you can add it to an existing list even though you don't have one. 3: Apply patch 4: Add a Biblical record and if you don't have a list then you shouldn't see the add to existing list. 5: Create a list and then add a Bibical Record and you should see the add to existing list Signed-off-by: Claire Gravely --- .../en/modules/virtualshelves/addbybiblionumber.tt | 61 ++++++++++++---------- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt index 63974a9..a2615e6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt @@ -37,36 +37,38 @@ [% UNLESS ( shelfnumber ) %] [% UNLESS ( newshelf ) %] +[% IF ( private_shelves.count) %]
- Select an existing list -
    -
  1. - - -
  2. -
+ Select an existing list +
    +
  1. + + +
  2. +
+ [% FOREACH biblio IN biblios %][% END %] [% UNLESS ( biblionumbers ) %] @@ -76,6 +78,7 @@

... or...

+ [% END %] [% END %]
Add to a new list: -- 2.1.4