From 86558805a5bf77c02b682e4769cd1c7db432a0a9 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 7 Feb 2014 10:30:19 -0500 Subject: [PATCH] Bug 11709: revisions to Bootstrap OPAC lists interface MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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 Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton (cherry picked from commit 2d0347c787108657e047c00873e227c8bb043bfc) Signed-off-by: Fridolin Somers --- .../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 cfce27b637..eb9f65bf60 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. -- 2.39.5