From 5c627db14fec13da692d21abe1bb223e70bdf5ca Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Fri, 11 Jan 2013 12:16:29 +0100 Subject: [PATCH] Bug 7253: followup : manage toolbar for fastcataloging During fast cataloging, hide some toolbar menus of biblio edition page : - Save and view record - Z3950 Search - Framework change Also display "(fast cataloging)" in biblio and item editon. Signed-off-by: koha.aixmarseille Signed-off-by: Katrin Fischer Passes all tests and QA script. Tested: - adding a fast add with duplicate and without - adding a new record, checked toolbar showed up correctly - editing existing record, checked toolbar showed up correctly Signed-off-by: Jared Camins-Esakov --- .../prog/en/modules/cataloguing/addbiblio.tt | 29 +++++++++++++++---- .../prog/en/modules/cataloguing/additem.tt | 6 ++-- 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt index a5ae0c6cc9..415c65f12e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -276,7 +276,12 @@ function Changefwk(FwkList) {
-

[% IF ( biblionumber ) %]Editing [% title |html %] (Record number [% biblionumber %])

[% ELSE %]Add MARC record[% END %] +

+[% IF ( biblionumber ) %]Editing [% title |html %] (Record number [% biblionumber %]) +[% ELSE %]Add MARC record [% IF (circborrowernumber) %](fast cataloging)[% END %] +[% END %] +

+ [% IF marcflavour != 'NORMARC' %]
Show MARC tag documentation links
[% END %] @@ -354,6 +359,15 @@ function Changefwk(FwkList) { function yuiToolbar() { [% IF ( CAN_user_editcatalogue_edit_items ) %] + [% IF (circborrowernumber) %][%# fast cataloging must lead to items %] + new YAHOO.widget.Button({ + id: "addbiblio", + type: "button", + label: _("Save"), + container: "savebutton", + onclick: {fn:function(){redirect("items");}} + }); + [% ELSE %] var savesplitmenu = new YAHOO.widget.Button({ type: "split", label: _("Save"), @@ -362,8 +376,8 @@ function Changefwk(FwkList) { menu: savemenu, container: "savebutton" }); - - savesplitmenu.on("click", onOption); + savesplitmenu.on("click", onOption); + [% END %] [% ELSE %] new YAHOO.widget.Button({ id: "addbiblio", @@ -387,6 +401,7 @@ function Changefwk(FwkList) {
  • + [% UNLESS (circborrowernumber) %][%# Hide in fast cataloging %]
  • -
  • + + [% END %]
[% IF ( popup ) %] [% END %] + @@ -571,13 +588,13 @@ function Changefwk(FwkList) {
-[%# Fields for fast cataloguing %] +[%# Fields for fast cataloging %] -[%# End of fields for fast cataloguing %] +[%# End of fields for fast cataloging %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt index 3e253445bb..f01c6829b6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -162,7 +162,7 @@ $(document).ready(function() { [% END %] [% IF ( opisadd ) %] -

Add item

+

Add item [% IF (circborrowernumber) %](fast cataloging)[% END %]

[% ELSE %]

Edit Item #[% itemnumber %][% IF ( barcode ) %] / Barcode [% barcode %][% END %]

[% END %] @@ -215,12 +215,12 @@ $(document).ready(function() { [% END %] - [%# Fields for fast cataloguing %] + [%# Fields for fast cataloging %] - [%# End fields for fast cataloguing %] + [%# End fields for fast cataloging %] -- 2.39.5