Lines 6-12
Link Here
|
6 |
<script type="text/javascript"> |
6 |
<script type="text/javascript"> |
7 |
//<![CDATA[ |
7 |
//<![CDATA[ |
8 |
$(document).ready(function(){ |
8 |
$(document).ready(function(){ |
9 |
[% IF ( CAN_user_borrowers ) %] |
9 |
[% IF CAN_user_borrowers_edit_borrowers %] |
10 |
[% IF ( NorwegianPatronDBEnable == 1 ) %] |
10 |
[% IF ( NorwegianPatronDBEnable == 1 ) %] |
11 |
$("#deletepatronlocal").click(function(){ |
11 |
$("#deletepatronlocal").click(function(){ |
12 |
confirm_local_deletion(); |
12 |
confirm_local_deletion(); |
Lines 132-138
function searchToHold(){
Link Here
|
132 |
</script> |
132 |
</script> |
133 |
|
133 |
|
134 |
<div id="toolbar" class="btn-toolbar"> |
134 |
<div id="toolbar" class="btn-toolbar"> |
135 |
[% IF ( CAN_user_borrowers ) %] |
135 |
[% IF CAN_user_borrowers_edit_borrowers %] |
136 |
[% IF ( guarantor ) %] |
136 |
[% IF ( guarantor ) %] |
137 |
<a id="editpatron" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% borrowernumber %]&guarantorid=[% guarantor.borrowernumber %]&categorycode=[% categorycode %]"> |
137 |
<a id="editpatron" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% borrowernumber %]&guarantorid=[% guarantor.borrowernumber %]&categorycode=[% categorycode %]"> |
138 |
[% ELSE %] |
138 |
[% ELSE %] |
Lines 141-151
function searchToHold(){
Link Here
|
141 |
<i class="fa fa-pencil"></i> Edit</a> |
141 |
<i class="fa fa-pencil"></i> Edit</a> |
142 |
[% END %] |
142 |
[% END %] |
143 |
|
143 |
|
144 |
[% IF ( CAN_user_borrowers ) %] |
144 |
[% IF CAN_user_borrowers_edit_borrowers %] |
145 |
[% IF adultborrower AND Koha.Preference("borrowerRelationship") %] |
145 |
[% IF adultborrower AND Koha.Preference("borrowerRelationship") %] |
146 |
<a id="addchild" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=add&guarantorid=[% borrowernumber %]"><i class="fa fa-plus"></i> Add child</a> |
146 |
<a id="addchild" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=add&guarantorid=[% borrowernumber %]"><i class="fa fa-plus"></i> Add child</a> |
147 |
[% END %] |
147 |
[% END %] |
148 |
[% IF ( CAN_user_borrowers ) %] |
148 |
[% IF CAN_user_borrowers_edit_borrowers %] |
149 |
<a id="changepassword" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]"><i class="fa fa-lock"></i> Change password</a> |
149 |
<a id="changepassword" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]"><i class="fa fa-lock"></i> Change password</a> |
150 |
[% END %] |
150 |
[% END %] |
151 |
<a id="duplicate" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&borrowernumber=[% borrowernumber %]&categorycode=[% categorycode %]"><i class="fa fa-copy"></i> Duplicate</a> |
151 |
<a id="duplicate" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&borrowernumber=[% borrowernumber %]&categorycode=[% categorycode %]"><i class="fa fa-copy"></i> Duplicate</a> |
Lines 154-160
function searchToHold(){
Link Here
|
154 |
<div class="btn-group"> |
154 |
<div class="btn-group"> |
155 |
<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-print"></i> Print <span class="caret"></span></button> |
155 |
<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-print"></i> Print <span class="caret"></span></button> |
156 |
<ul class="dropdown-menu"> |
156 |
<ul class="dropdown-menu"> |
157 |
[% IF ( CAN_user_borrowers ) %]<li><a id="printsummary" href="#">Print summary</a></li>[% END %] |
157 |
[% IF CAN_user_borrowers_edit_borrowers %]<li><a id="printsummary" href="#">Print summary</a></li>[% END %] |
158 |
<li><a id="printslip" href="#">Print slip</a></li> |
158 |
<li><a id="printslip" href="#">Print slip</a></li> |
159 |
<li><a id="printquickslip" href="#">Print quick slip</a></li> |
159 |
<li><a id="printquickslip" href="#">Print quick slip</a></li> |
160 |
[% IF Borrowers.HasOverdues( borrowernumber ) %] |
160 |
[% IF Borrowers.HasOverdues( borrowernumber ) %] |
Lines 172-178
function searchToHold(){
Link Here
|
172 |
<div class="btn-group"> |
172 |
<div class="btn-group"> |
173 |
<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">More <span class="caret"></span></button> |
173 |
<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">More <span class="caret"></span></button> |
174 |
<ul class="dropdown-menu"> |
174 |
<ul class="dropdown-menu"> |
175 |
[% IF ( CAN_user_borrowers ) %] |
175 |
[% IF CAN_user_borrowers_edit_borrowers %] |
176 |
<li><a id="renewpatron" href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&destination=[% destination %]&reregistration=y">Renew patron</a></li> |
176 |
<li><a id="renewpatron" href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&destination=[% destination %]&reregistration=y">Renew patron</a></li> |
177 |
[% ELSE %] |
177 |
[% ELSE %] |
178 |
<li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to renew patrons" id="renewpatron" href="#">Renew patron</a></li> |
178 |
<li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to renew patrons" id="renewpatron" href="#">Renew patron</a></li> |
Lines 182-191
function searchToHold(){
Link Here
|
182 |
[% ELSE %] |
182 |
[% ELSE %] |
183 |
<li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to set permissions" id="patronflags" href="#">Set permissions</a></li> |
183 |
<li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to set permissions" id="patronflags" href="#">Set permissions</a></li> |
184 |
[% END %] |
184 |
[% END %] |
185 |
[% IF CAN_user_borrowers && useDischarge %] |
185 |
[% IF CAN_user_borrowers_edit_borrowers && useDischarge %] |
186 |
<li><a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% borrowernumber %]">Discharge</a></li> |
186 |
<li><a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% borrowernumber %]">Discharge</a></li> |
187 |
[% END %] |
187 |
[% END %] |
188 |
[% IF ( CAN_user_borrowers ) %] |
188 |
[% IF CAN_user_borrowers_edit_borrowers %] |
189 |
[% IF ( NorwegianPatronDBEnable == 1 ) %] |
189 |
[% IF ( NorwegianPatronDBEnable == 1 ) %] |
190 |
<li><a id="deletepatronlocal" href="#">Delete local</a></li> |
190 |
<li><a id="deletepatronlocal" href="#">Delete local</a></li> |
191 |
<li><a id="deletepatronremote" href="#">Delete remote</a></li> |
191 |
<li><a id="deletepatronremote" href="#">Delete remote</a></li> |