View | Details | Raw Unified | Return to bug 2733
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc (-8 / +8 lines)
Lines 61-75 function export_barcodes() { Link Here
61
	function yuiToolbar() {
61
	function yuiToolbar() {
62
	    var printmenu = [
62
	    var printmenu = [
63
            [% IF ( CAN_user_borrowers ) %]
63
            [% IF ( CAN_user_borrowers ) %]
64
            { text: _("Print page"), onclick: {fn: function(){printx_window("page")}} },
64
	        { text: _("Print summary"), onclick: {fn: function(){printx_window("page")}} },
65
            [% END %]
65
            [% END %]
66
            { text: _("Print slip"), onclick: {fn: function(){printx_window("slip")}} },
66
	        { text: _("Print slip"), onclick: {fn: function(){printx_window("slip")}} },
67
            { text: _("Quick slip"), onclick: {fn: function(){printx_window("qslip")}} }
67
	        { text: _("Print quick slip"), onclick: {fn: function(){printx_window("qslip")}} }
68
	    ];
68
	    ];
69
	
69
	
70
		var moremenu = [
70
		var moremenu = [
71
            { text: _("Renew patron"),  onclick: { fn: confirm_reregistration } },
71
			{ text: _("Renew patron"),  onclick: { fn: confirm_reregistration } },
72
            { text: _("Set permissions"), url: "/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]"[% UNLESS CAN_user_permissions %], disabled: true[% END %]},
72
			{ text: _("Set permissions"), url: "/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]"[% UNLESS CAN_user_permissions %], disabled: true[% END %]},
73
            { text: _("Delete"), [% UNLESS CAN_user_borrowers %]disabled: true, [% END %] onclick: { fn: confirm_deletion } },
73
            { text: _("Delete"), [% UNLESS CAN_user_borrowers %]disabled: true, [% END %] onclick: { fn: confirm_deletion } },
74
            { text: _("Update child to adult patron") , onclick: { fn: update_child }[% UNLESS is_child %], disabled: true[% END %]},
74
            { text: _("Update child to adult patron") , onclick: { fn: update_child }[% UNLESS is_child %], disabled: true[% END %]},
75
            { text: _("Export today's checked in barcodes"), onclick: { fn: export_barcodes }}
75
            { text: _("Export today's checked in barcodes"), onclick: { fn: export_barcodes }}
Lines 129-138 function export_barcodes() { Link Here
129
        [% IF ( CAN_user_borrowers ) %] <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change password</a></li>[% END %]
129
        [% IF ( CAN_user_borrowers ) %] <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change password</a></li>[% END %]
130
    [% END %]
130
    [% END %]
131
    <li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">Duplicate</a></li>
131
    <li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">Duplicate</a></li>
132
    <li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=page">Print page</a></li>
132
	<li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=page">Print summary</a></li>
133
    <li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=slip">Print slip</a></li>
133
	<li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=slip">Print slip</a></li>
134
	<li id="searchtoholdc"><a id="searchtohold" href="#">Search to hold</a></li>
134
	<li id="searchtoholdc"><a id="searchtohold" href="#">Search to hold</a></li>
135
    <li id="moremenuc"><a id="renewpatron" href="/cgi-bin/koha/members/moremember.pl?reregistration=y&amp;borrowernumber=[% borrowernumber %]">Renew account</a></li>
135
	<li id="moremenuc"><a id="renewpatron" href="/cgi-bin/koha/members/moremember.pl?reregistration=y&amp;borrowernumber=[% borrowernumber %]">Renew account</a></li>
136
    [% IF ( CAN_user_permissions ) %]
136
    [% IF ( CAN_user_permissions ) %]
137
        [% IF ( StaffMember ) %]
137
        [% IF ( StaffMember ) %]
138
            [% IF ( CAN_user_staffaccess ) %]
138
            [% IF ( CAN_user_staffaccess ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-11 / +10 lines)
Lines 52-67 function update_child() { Link Here
52
	}
52
	}
53
	function yuiToolbar() {
53
	function yuiToolbar() {
54
	    var printmenu = [
54
	    var printmenu = [
55
            { text: _("Print page"), onclick: {fn: function(){printx_window("page")}} },
55
	        { text: _("Print summary"), onclick: {fn: function(){printx_window("page")}} },
56
            { text: _("Print slip"), onclick: {fn: function(){printx_window("slip")}} },
56
	        { text: _("Print slip"), onclick: {fn: function(){printx_window("slip")}} },
57
            { text: _("Quick slip"), onclick: {fn: function(){printx_window("qslip")}} }
57
	        { text: _("Print quick slip"), onclick: {fn: function(){printx_window("qslip")}} }
58
	    ];
58
	    ];
59
59
60
		var moremenu = [
60
		var moremenu = [
61
            { text: _("Renew patron"),  onclick: { fn: confirm_reregistration } },
61
			{ text: _("Renew patron"),  onclick: { fn: confirm_reregistration } },
62
            { text: _("Set permissions"), url: "/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]"[% UNLESS ( CAN_user_permissions ) %], disabled: true[% END %]},
62
			{ text: _("Set permissions"), url: "/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]"[% UNLESS ( CAN_user_permissions ) %], disabled: true[% END %]},
63
			{ text: _("Delete"), onclick: { fn: confirm_deletion}[% UNLESS ( CANDELETEUSER ) %], disabled: true[% END %] },
63
			{ text: _("Delete"), onclick: { fn: confirm_deletion}[% UNLESS ( CANDELETEUSER ) %], disabled: true[% END %] },
64
            { text: _("Update child to adult patron") , onclick: { fn: update_child }[% UNLESS ( is_child ) %], disabled: true[% END %]}
64
			{ text: _("Update child to adult patron") , onclick: { fn: update_child }[% UNLESS ( is_child ) %], disabled: true[% END %]}
65
		];
65
		];
66
66
67
	    new YAHOO.widget.Button({
67
	    new YAHOO.widget.Button({
Lines 115-124 function update_child() { Link Here
115
            [% END %]
115
            [% END %]
116
        [% END %]
116
        [% END %]
117
	[% IF ( adultborrower AND activeBorrowerRelationship ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=[% borrowernumber %]&amp;category_type=C">Add child</a></li>[% END %]
117
	[% IF ( adultborrower AND activeBorrowerRelationship ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=[% borrowernumber %]&amp;category_type=C">Add child</a></li>[% END %]
118
    [% IF CAN_user_staffaccess %]<li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change password</a></li> [% END %]
118
	[% IF CAN_user_staffaccess %]<li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change password</a></li> [% END %]
119
	<li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">Duplicate</a></li>
119
	<li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">Duplicate</a></li>
120
    <li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=page">Print page</a></li>
120
    <li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=page">Print summary</a></li>
121
    <li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=slip">Print slip</a></li>
121
	<li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=slip">Print slip</a></li>
122
	<li id="searchtoholdc"><a id="searchtohold" href="#">Search to hold</a></li>
122
	<li id="searchtoholdc"><a id="searchtohold" href="#">Search to hold</a></li>
123
    <li id="moremenuc"><a id="renewpatron" href="/cgi-bin/koha/members/moremember.pl?reregistration=y&amp;borrowernumber=[% borrowernumber %]">Renew account</a></li>[% IF ( CAN_user_permissions ) %]<li><a id="patronflags" href="/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]">Set permissions</a></li>[% END %]<li><a id="deletepatron" href="javascript:confirm_deletion();">Delete</a></li>
123
	<li id="moremenuc"><a id="renewpatron" href="/cgi-bin/koha/members/moremember.pl?reregistration=y&amp;borrowernumber=[% borrowernumber %]">Renew account</a></li>[% IF ( CAN_user_permissions ) %]<li><a id="patronflags" href="/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]">Set permissions</a></li>[% END %]<li><a id="deletepatron" href="javascript:confirm_deletion();">Delete</a></li>
124
</ul></div>
124
</ul></div>
125
- 

Return to bug 2733