From ebc6f6fcf47001ae1c7ab60e685d6e0fe2045c77 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 7 Feb 2014 10:30:19 -0500 Subject: [PATCH] [Signed-off] Bug 11709 - Bootstrap OPAC lists interface requires some revisions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch makes some revisions to the lists template: - Removed the old prog theme breadcrumbs from the List edit screen. - Added New/Edit/Delete controls to the list view in cases where the list is empty. - Corrected some breadcrumb logic. To test, apply the patch and edit an existing list. You should see a heading "Editing [list name]". If necessary create a list with zero items on it. View the list. You should see New/Edit/Delete links above the message about the list being empty. Patch behaves as expected. Signed-off-by: Marc VĂ©ron --- .../opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 30 ++++++++++++++++++-- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt index cfce27b..eb9f65b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -49,7 +49,7 @@
  • Your lists
  • [% END %] [% ELSIF ( category2 ) %] - [% IF ( viewshelf ) %] + [% IF ( viewshelf || edit ) %]
  • Public lists
  • [% ELSE %]
  • Public lists
  • @@ -61,7 +61,7 @@
  • Your lists
  • [% END %] [% ELSIF ( showpublicshelves ) %] - [% IF ( viewshelf || edit ) %] + [% IF ( viewshelf || edit || shelves ) %]
  • Public lists
  • [% ELSE %]
  • Public lists
  • @@ -462,6 +462,30 @@ [% END %] [% ELSE %] +
    +
    + New list + [% IF ( manageshelf ) %] + | +
    + + + + +
    + +
    + + + [% IF ( showprivateshelves ) %] + + [% END %] + +
    + [% END # / IF manageshelf %] +
    +
    +
    This list is empty. [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] @@ -486,12 +510,12 @@ [% END %] [% IF ( edit ) %] -

    Lists[% shelfname |html %] ⇢ Editing

    + Editing [% shelfname |html %]
    1. -- 1.7.10.4