From 25036ed61d0d2fb25146bcb8a26d01708c3ae51e 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 --- .../en/modules/virtualshelves/addbybiblionumber.tt | 77 +++++++++++----------- 1 file changed, 40 insertions(+), 37 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..6d14c5f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt @@ -37,45 +37,48 @@ [% UNLESS ( shelfnumber ) %] [% UNLESS ( newshelf ) %] +[% IF ( private_shelves.count) %]
- Select an existing list -
    -
  1. - - -
  2. -
- [% FOREACH biblio IN biblios %][% END %] - [% UNLESS ( biblionumbers ) %] - - [% ELSE %] - - [% END %] -
+ Select an existing list +
    +
  1. + + +
  2. +
+ + [% FOREACH biblio IN biblios %][% END %] + [% UNLESS ( biblionumbers ) %] + + [% ELSE %] + + [% END %] + -

... or...

+

... or...

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