Bug 6325 Bib detail - z39.50 button functionality should be under "Edit" menu
authorLiz Rea <lrea@nekls.org>
Wed, 11 May 2011 05:55:33 +0000 (01:55 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 1 Aug 2011 01:48:02 +0000 (13:48 +1200)
Moves the button functionality under the "Edit" drop down, as "Replace Record via Z39.50"

To test:
Click Edit -> Replace Record via Z39.50 and attempt to replace the record.

Signed-off-by: D Ruth Bavousett <ruth@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc

index 3c32160..9766494 100644 (file)
@@ -98,6 +98,7 @@ function confirm_items_deletion() {
                [% IF ( CAN_user_editcatalogue_edit_items ) %]{ text: _("Edit Items"), url: "/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber %]" },[% END %]
                [% IF ( CAN_user_editcatalogue_edit_items ) %]{ text: _("Attach Item"), url: "/cgi-bin/koha/cataloguing/moveitem.pl?biblionumber=[% biblionumber %]" },[% END %]
                [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Edit as New (Duplicate)"), url: "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]&amp;frameworkcode=&amp;op=duplicate" },[% END %]
+                       [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Replace Record via Z39.50"), onclick: {fn: PopupZ3950 } },[% END %]
                        [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Delete Record"), onclick: {fn: confirm_deletion }[% IF ( count ) %],id:'disabled'[% END %] },[% END %]
                [% IF ( CAN_user_editcatalogue_edit_items ) %]{ text: _("Delete all Items"), onclick: {fn: confirm_items_deletion } }[% END %]
            ];
@@ -182,15 +183,7 @@ function confirm_items_deletion() {
             });
            [% END %]
            [% END %][% END %]
-           [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
-               new YAHOO.widget.Button({
-                       id: "z3950search",
-                       type: "button", 
-                       label: _("Z39.50 Search"),
-                       container: this,
-                       onclick: {fn:function(){PopupZ3950()}}
-               });
-               [% END %]
+
        });
        //]]>
        </script>