|
Lines 987-992
Link Here
|
| 987 |
</textarea> |
987 |
</textarea> |
| 988 |
</form> |
988 |
</form> |
| 989 |
|
989 |
|
|
|
990 |
<form action="/cgi-bin/koha/patroncards/edit-batch.pl" id="patron_card_creator" method="post" target="_blank"> |
| 991 |
<input type="hidden" name="op" value="add" /> |
| 992 |
<input type="hidden" name="batch_id" value="0" /> |
| 993 |
[% # Preserve the whitespace of the following textarea in order to format the values correctly %] |
| 994 |
<textarea style="display:none;" name="bor_num_list" id="bor_num_list"> |
| 995 |
[%- borrowernumbers = PROCESS batch_list results=results batch_type='borrowernumber' | trim | html %][% IF borrowernumbers %][% SET batch_borrowernumbers = 1 %][% borrowernumbers | html %][% END -%] |
| 996 |
</textarea> |
| 997 |
</form> |
| 998 |
|
| 990 |
[% BLOCK batch_list %] |
999 |
[% BLOCK batch_list %] |
| 991 |
[%- FOREACH result IN results %] |
1000 |
[%- FOREACH result IN results %] |
| 992 |
[%- FOREACH cells IN result.cells %] |
1001 |
[%- FOREACH cells IN result.cells %] |
|
Lines 1010-1024
Link Here
|
| 1010 |
<input type="hidden" name="limit" id="limit" value="20" /> |
1019 |
<input type="hidden" name="limit" id="limit" value="20" /> |
| 1011 |
</form> <!-- /#limitselect --> |
1020 |
</form> <!-- /#limitselect --> |
| 1012 |
|
1021 |
|
| 1013 |
[% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) || ( unlimited_total > 10 && limit <= 1000 ) %] |
1022 |
[% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers || batch_borrowernumbers ) || ( unlimited_total > 10 && limit <= 1000 ) %] |
| 1014 |
<div id="toolbar" class="btn-toolbar"> |
1023 |
<div id="toolbar" class="btn-toolbar"> |
| 1015 |
[% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %] |
1024 |
[% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers || batch_borrowernumbers ) %] |
| 1016 |
<div class="btn-group"> |
1025 |
<div class="btn-group"> |
| 1017 |
<button class="btn btn-default btn-sm dropdown-toggle" type="button" id="batch_mod_menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> |
1026 |
<button class="btn btn-default btn-sm dropdown-toggle" type="button" id="batch_mod_menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> |
| 1018 |
Batch operations with [% IF unlimited_total >= limit %][% limit | html %][% ELSE %][% unlimited_total | html %][% END %] visible records |
1027 |
Batch operations with [% IF unlimited_total >= limit %][% limit | html %][% ELSE %][% unlimited_total | html %][% END %] visible records |
| 1019 |
<span class="caret"></span> |
1028 |
<span class="caret"></span> |
| 1020 |
</button> |
1029 |
</button> |
| 1021 |
<ul class="dropdown-menu" aria-labelledby="batch_mod_menu"> |
1030 |
<ul class="dropdown-menu" aria-labelledby="batch_mod_menu"> |
|
|
1031 |
[% FOREACH header_ro IN header_row %] |
| 1032 |
[% IF header_ro.cell == 'cardnumber' || header_types.item( header_ro.cell ) == 'cardnumber' || header_ro.cell == 'borrowernumber' || header_types.item( header_ro.cell ) == 'borrowernumber' %] |
| 1033 |
[% IF header_ro.cell == 'cardnumber' || header_types.item( header_ro.cell ) == 'cardnumber' %] |
| 1034 |
[% SET show_cardnumber_ops = 1 %] |
| 1035 |
[% END %] |
| 1036 |
[% IF header_ro.cell == 'borrowernumber' || header_types.item( header_ro.cell ) == 'borrowernumber' %] |
| 1037 |
[% SET show_borrowernumber_ops = 1 %] |
| 1038 |
[% END %] |
| 1039 |
[% END %] |
| 1040 |
[% END %] |
| 1041 |
[% IF show_cardnumber_ops || show_borrowernumber_ops %] |
| 1042 |
<li class="dropdown-header">Patron records</li> |
| 1043 |
[% IF show_cardnumber_ops %] |
| 1044 |
<li> |
| 1045 |
<a href="#" data-submit="batch_patron_modification" data-toggle="tooltip" data-placement="right" title="Send visible results to batch patron modification" class="batch_op send_to_patron_mod">Batch patron modification</a> |
| 1046 |
</li> |
| 1047 |
[% END %] |
| 1048 |
[% IF show_borrowernumber_ops %] |
| 1049 |
<li> |
| 1050 |
<a href="#" data-submit="patron_card_creator" data-toggle="tooltip" data-placement="right" title="Send visible results to a new patron card batch" class="batch_op send_to_patron_card_batch">Patron card creator</a> |
| 1051 |
</li> |
| 1052 |
[% END %] |
| 1053 |
[% END %] |
| 1022 |
[% FOREACH header_ro IN header_row %] |
1054 |
[% FOREACH header_ro IN header_row %] |
| 1023 |
[% IF header_ro.has_biblionumbers && ( header_ro.cell == 'biblionumber' || header_types.item( header_ro.cell ) == 'biblionumber' ) %] |
1055 |
[% IF header_ro.has_biblionumbers && ( header_ro.cell == 'biblionumber' || header_types.item( header_ro.cell ) == 'biblionumber' ) %] |
| 1024 |
<li class="dropdown-header">Bibliographic records</li> |
1056 |
<li class="dropdown-header">Bibliographic records</li> |
|
Lines 1041-1052
Link Here
|
| 1041 |
<a href="#" data-submit="batch_item_deletion" data-toggle="tooltip" data-placement="right" title="Send visible items to batch item deletion" class="batch_op send_to_item_del">Batch item deletion</a> |
1073 |
<a href="#" data-submit="batch_item_deletion" data-toggle="tooltip" data-placement="right" title="Send visible items to batch item deletion" class="batch_op send_to_item_del">Batch item deletion</a> |
| 1042 |
</li> |
1074 |
</li> |
| 1043 |
[% END %] |
1075 |
[% END %] |
| 1044 |
[% IF header_ro.cell == 'cardnumber' || header_types.item( header_ro.cell ) == 'cardnumber' %] |
|
|
| 1045 |
<li class="dropdown-header">Patron records</li> |
| 1046 |
<li> |
| 1047 |
<a href="#" data-submit="batch_patron_modification" data-toggle="tooltip" data-placement="right" title="Send visible results to batch patron modification" class="batch_op send_to_patron_mod">Batch patron modification</a> |
| 1048 |
</li> |
| 1049 |
[% END %] |
| 1050 |
[% END # /FOREACH header_ro %] |
1076 |
[% END # /FOREACH header_ro %] |
| 1051 |
</ul> <!-- /.dropdown-menu --> |
1077 |
</ul> <!-- /.dropdown-menu --> |
| 1052 |
</div> <!-- /.dropdown --> |
1078 |
</div> <!-- /.dropdown --> |
| 1053 |
- |
|
|