From e1ee32c440e6514f4e9fe1274cec9d8ffb96c085 Mon Sep 17 00:00:00 2001 From: Aleisha Date: Tue, 1 Mar 2016 23:09:39 +0000 Subject: [PATCH] [SIGNED-OFF] Bug 15952: Moving cataloging search actions into a drop-down menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" Edit: Have removed the datatables stuff - wasn't necessary. Also fixed a merge conflict To test: 1) Go to Cataloging and do a search in the catalog and reservoir (cataloguing/addbooks.pl) 2) Confirm that for the results found in catalog, the options (MARC and Card preview, Edit biblio, Add/edit items) are there and behave as expected. 3) Confirm that for the results found in reservoir, the options (MARC and Card preview, Add biblio) are there and behave as expected. 4) Set user permissions so that the user cannot edit the catalog or items. (editcatalogue -> edit_catalogue and edit_items) 5) Confirm that you no longer see the options to edit or add items/biblio in either table. Sponsored-by: Catalyst IT Signed-off-by: Frédéric Demians Expected result following the test plan. Signed-off-by: Owen Leonard --- .../prog/en/modules/cataloguing/addbooks.tt | 51 +++++++++++++++------- 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt index 7423430..52f9d3c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt @@ -137,12 +137,14 @@   Title Location - Preview - [% IF ( CAN_user_editcatalogue_edit_catalogue ) %] [% ELSE %][% END %] - [% IF ( CAN_user_editcatalogue_edit_items ) %] [% END %] +   - [% FOREACH resultsloo IN resultsloop %] - + [% FOREACH resultsloo IN resultsloop %] + [% IF ( loop.even ) %] + + [% ELSE %] + + [% END %]

@@ -195,10 +197,19 @@ [% IF ( resultsloo.notforloancount ) %] Not for loan ([% resultsloo.notforloancount %])[% END %] - MARC | Card + +

- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]Edit biblio[% END %] - [% IF ( CAN_user_editcatalogue_edit_items ) %]Add/Edit items[% END %] [% END %] @@ -223,8 +234,7 @@ Date Edition Coming from - Preview - [% IF ( CAN_user_editcatalogue_edit_catalogue ) %] [% END %] +   [% FOREACH breeding_loo IN breeding_loop %] @@ -234,12 +244,21 @@ [% breeding_loo.copyrightdate %] [% breeding_loo.edition %] [% breeding_loo.file %] - MARC | Card - - [% IF ( CAN_user_editcatalogue_edit_catalogue ) %] - Add biblio - [% END %] - + + + + [% END %] [% ELSE %] -- 2.1.4