From 2252f6cf67b65458a04f81dfdded2b225be4c3f7 Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Fri, 11 Jan 2013 12:16:29 +0100 Subject: [PATCH 2/2] 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. --- .../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 a5ae0c6..415c65f 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 3e25344..f01c682 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 %] -- 1.7.9.5