From: Owen Leonard Date: Fri, 7 Feb 2014 15:30:19 +0000 (-0500) Subject: Bug 11709: revisions to Bootstrap OPAC lists interface X-Git-Tag: v3.16.00-beta~766 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=2d0347c787108657e047c00873e227c8bb043bfc;p=koha_fer Bug 11709: revisions to Bootstrap OPAC lists interface 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 --- 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 %]