Lines 63-74
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=<!-- TMPL_VAR NAME="borrowernumber" -->" |
66 |
{ text: _("Set Permissions"), url: "/cgi-bin/koha/members/member-flags.pl?member=<!-- TMPL_VAR NAME="borrowernumber" -->"<!-- TMPL_UNLESS NAME="CAN_user_permissions" -->, disabled: true<!-- /TMPL_UNLESS -->}, |
67 |
<!-- TMPL_IF NAME="CAN_user_permissions" --><!-- TMPL_IF NAME="StaffMember" --> |
67 |
{ text: _("Delete"), <!-- TMPL_UNLESS NAME="CAN_user_borrowers" -->disabled: true, <!-- /TMPL_UNLESS --> onclick: { fn: confirm_deletion } }, |
68 |
<!-- TMPL_UNLESS NAME="CAN_user_staffaccess" -->, disabled: true<!-- /TMPL_UNLESS--> |
|
|
69 |
<!-- TMPL_ELSE --><!-- /TMPL_IF --> |
70 |
<!-- TMPL_ELSE -->, disabled: true<!-- /TMPL_IF-->}, |
71 |
{ text: _("Delete"), <!-- TMPL_IF NAME="StaffMember" --><!-- TMPL_UNLESS NAME="CAN_user_staffaccess" -->disabled: true, <!-- /TMPL_UNLESS --><!-- TMPL_ELSE --><!-- TMPL_UNLESS NAME="CAN_user_borrowers" -->disabled: true, <!-- /TMPL_UNLESS --><!-- /TMPL_IF --> onclick: { fn: confirm_deletion } }, |
72 |
{ text: _("Update Child to Adult Patron") , onclick: { fn: update_child }<!-- TMPL_UNLESS NAME="is_child" -->, disabled: true<!-- /TMPL_UNLESS -->} |
68 |
{ text: _("Update Child to Adult Patron") , onclick: { fn: update_child }<!-- TMPL_UNLESS NAME="is_child" -->, disabled: true<!-- /TMPL_UNLESS -->} |
73 |
]; |
69 |
]; |
74 |
|
70 |
|
Lines 97-118
function update_child() {
Link Here
|
97 |
<!-- TMPL_IF name="adultborrower" -->new YAHOO.widget.Button("addchild");<!-- /TMPL_IF --> |
93 |
<!-- TMPL_IF name="adultborrower" -->new YAHOO.widget.Button("addchild");<!-- /TMPL_IF --> |
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 |
<!-- TMPL_IF NAME="StaffMember" --><!-- TMPL_IF NAME="CAN_user_staffaccess" --> new YAHOO.widget.Button("changepassword"); <!-- /TMPL_IF--> |
96 |
<!-- TMPL_IF NAME="CAN_user_staffaccess" --> new YAHOO.widget.Button("changepassword"); <!-- /TMPL_IF--> |
101 |
<!-- TMPL_ELSE--> new YAHOO.widget.Button("changepassword"); <!-- /TMPL_IF --> |
|
|
102 |
new YAHOO.widget.Button("printslip"); |
97 |
new YAHOO.widget.Button("printslip"); |
103 |
new YAHOO.widget.Button("printpage"); |
98 |
new YAHOO.widget.Button("printpage"); |
104 |
new YAHOO.widget.Button("renewpatron"); |
|
|
105 |
<!-- TMPL_IF NAME="CAN_user_permissions" --> |
106 |
<!-- TMPL_IF NAME="StaffMember" --> |
107 |
<!-- TMPL_IF NAME="CAN_user_staffaccess" --> |
108 |
new YAHOO.widget.Button("patronflags"); |
109 |
<!-- /TMPL_IF --> |
110 |
<!-- TMPL_ELSE--> |
111 |
new YAHOO.widget.Button("patronflags"); |
112 |
<!-- /TMPL_IF --> |
113 |
<!-- /TMPL_IF --> |
114 |
<!-- TMPL_IF NAME="StaffMember" --><!-- TMPL_UNLESS NAME="CAN_user_staffaccess" -->new YAHOO.widget.Button("deletepatron");<!-- /TMPL_UNLESS --> |
115 |
<!-- TMPL_ELSE -->new YAHOO.widget.Button("deletepatron");<!-- /TMPL_IF --> |
116 |
} |
99 |
} |
117 |
|
100 |
|
118 |
//]]> |
101 |
//]]> |
Lines 135-143
function update_child() {
Link Here
|
135 |
<!-- /TMPL_IF --> |
118 |
<!-- /TMPL_IF --> |
136 |
<!-- TMPL_IF NAME="CAN_user_borrowers" --> |
119 |
<!-- TMPL_IF NAME="CAN_user_borrowers" --> |
137 |
<!-- TMPL_IF name="adultborrower" --><li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&guarantorid=<!-- TMPL_VAR NAME="borrowernumber" -->&category_type=C">Add child</a></li><!-- /TMPL_IF --> |
120 |
<!-- TMPL_IF name="adultborrower" --><li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&guarantorid=<!-- TMPL_VAR NAME="borrowernumber" -->&category_type=C">Add child</a></li><!-- /TMPL_IF --> |
138 |
<!-- TMPL_IF NAME="StaffMember" --><!-- TMPL_IF NAME="CAN_user_staffaccess" --> <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=<!-- TMPL_VAR NAME="borrowernumber" -->">Change Password</a></li><!-- /TMPL_IF--> |
121 |
<!-- TMPL_IF NAME="CAN_user_staffaccess" --> <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=<!-- TMPL_VAR NAME="borrowernumber" -->">Change Password</a></li><!-- /TMPL_IF--> |
139 |
<!-- TMPL_ELSE--> <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=<!-- TMPL_VAR NAME="borrowernumber" -->">Change Password</a></li><!-- /TMPL_IF --> |
|
|
140 |
<!-- /TMPL_IF --> |
141 |
<li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&print=page">Print Page</a></li> |
122 |
<li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&print=page">Print Page</a></li> |
142 |
<li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&print=slip">Print Slip</a></li> |
123 |
<li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&print=slip">Print Slip</a></li> |
143 |
<li id="searchtoholdc"><a id="searchtohold" href="#">Search to hold</a></li> |
124 |
<li id="searchtoholdc"><a id="searchtohold" href="#">Search to hold</a></li> |