Lines 63-75
function update_child() {
Link Here
|
63 |
|
63 |
|
64 |
var moremenu = [ |
64 |
var moremenu = [ |
65 |
{ text: _("Renew Patron"), onclick: { fn: confirm_reregistration } }, |
65 |
{ text: _("Renew Patron"), onclick: { fn: confirm_reregistration } }, |
66 |
{ text: _("Set Permissions"), url: "/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]" |
66 |
{ text: _("Set Permissions"), url: "/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]"[% UNLESS CAN_user_permissions %], disabled: true[% END %]}, |
67 |
[% IF ( CAN_user_permissions ) %][% IF ( StaffMember ) %] |
67 |
{ text: _("Delete"), [% UNLESS CAN_user_borrowers %]disabled: true, [% END %] onclick: { fn: confirm_deletion } }, |
68 |
[% UNLESS ( CAN_user_staffaccess ) %], disabled: true[% END %] |
68 |
{ text: _("Update Child to Adult Patron") , onclick: { fn: update_child }[% UNLESS is_child" %], disabled: true[% END %]} |
69 |
[% ELSE %][% END %] |
|
|
70 |
[% ELSE %], disabled: true[% END %]}, |
71 |
{ text: _("Delete"), [% IF ( StaffMember ) %][% UNLESS ( CAN_user_staffaccess ) %]disabled: true, [% END %][% ELSE %][% UNLESS ( CAN_user_borrowers ) %]disabled: true, [% END %][% END %] onclick: { fn: confirm_deletion } }, |
72 |
{ text: _("Update Child to Adult Patron") , onclick: { fn: update_child }[% UNLESS ( is_child ) %], disabled: true[% END %]} |
73 |
]; |
69 |
]; |
74 |
|
70 |
|
75 |
new YAHOO.widget.Button({ |
71 |
new YAHOO.widget.Button({ |
Lines 97-119
function update_child() {
Link Here
|
97 |
[% IF ( adultborrower ) %]new YAHOO.widget.Button("addchild");[% END %] |
93 |
[% IF ( adultborrower ) %]new YAHOO.widget.Button("addchild");[% END %] |
98 |
new YAHOO.widget.Button("editpatron"); |
94 |
new YAHOO.widget.Button("editpatron"); |
99 |
new YAHOO.widget.Button("addnote"); |
95 |
new YAHOO.widget.Button("addnote"); |
100 |
[% IF ( StaffMember ) %][% IF ( CAN_user_staffaccess ) %] new YAHOO.widget.Button("changepassword"); [% END %] |
96 |
[% IF CAN_user_staffaccess %] new YAHOO.widget.Button("changepassword"); [% END %] |
101 |
[% ELSE %] new YAHOO.widget.Button("changepassword"); [% END %] |
|
|
102 |
new YAHOO.widget.Button("duplicate"); |
103 |
new YAHOO.widget.Button("printslip"); |
97 |
new YAHOO.widget.Button("printslip"); |
104 |
new YAHOO.widget.Button("printpage"); |
98 |
new YAHOO.widget.Button("printpage"); |
105 |
new YAHOO.widget.Button("renewpatron"); |
|
|
106 |
[% IF ( CAN_user_permissions ) %] |
107 |
[% IF ( StaffMember ) %] |
108 |
[% IF ( CAN_user_staffaccess ) %] |
109 |
new YAHOO.widget.Button("patronflags"); |
110 |
[% END %] |
111 |
[% ELSE %] |
112 |
new YAHOO.widget.Button("patronflags"); |
113 |
[% END %] |
114 |
[% END %] |
115 |
[% IF ( StaffMember ) %][% UNLESS ( CAN_user_staffaccess ) %]new YAHOO.widget.Button("deletepatron");[% END %] |
116 |
[% ELSE %]new YAHOO.widget.Button("deletepatron");[% END %] |
117 |
} |
99 |
} |
118 |
|
100 |
|
119 |
//]]> |
101 |
//]]> |
Lines 136-144
function update_child() {
Link Here
|
136 |
[% END %] |
118 |
[% END %] |
137 |
[% IF ( CAN_user_borrowers ) %] |
119 |
[% IF ( CAN_user_borrowers ) %] |
138 |
[% IF ( adultborrower ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&guarantorid=[% borrowernumber %]&category_type=C">Add child</a></li>[% END %] |
120 |
[% IF ( adultborrower ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&guarantorid=[% borrowernumber %]&category_type=C">Add child</a></li>[% END %] |
139 |
[% IF ( StaffMember ) %][% IF ( CAN_user_staffaccess ) %] <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li>[% END %] |
121 |
[% CAN_user_staffaccess %] <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li>[% END %] |
140 |
[% ELSE %] <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li>[% END %] |
|
|
141 |
[% END %] |
142 |
<li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&borrowernumber=[% borrowernumber %]&category_type=[% category_type %]">Duplicate</a></li> |
122 |
<li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&borrowernumber=[% borrowernumber %]&category_type=[% category_type %]">Duplicate</a></li> |
143 |
<li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&print=page">Print Page</a></li> |
123 |
<li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&print=page">Print Page</a></li> |
144 |
<li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&print=slip">Print Slip</a></li> |
124 |
<li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&print=slip">Print Slip</a></li> |