Lines 1003-1008
Link Here
|
1003 |
</textarea> |
1003 |
</textarea> |
1004 |
</form> |
1004 |
</form> |
1005 |
|
1005 |
|
|
|
1006 |
<form action="/cgi-bin/koha/patroncards/edit-batch.pl" id="patron_card_creator" method="post" target="_blank"> |
1007 |
<input type="hidden" name="op" value="add" /> |
1008 |
<input type="hidden" name="batch_id" value="0" /> |
1009 |
[% # Preserve the whitespace of the following textarea in order to format the values correctly %] |
1010 |
<textarea style="display:none;" name="bor_num_list" id="bor_num_list"> |
1011 |
[%- borrowernumbers = PROCESS batch_list results=results batch_type='borrowernumber' | trim | html %][% IF borrowernumbers %][% SET batch_borrowernumbers = 1 %][% borrowernumbers | html %][% END -%] |
1012 |
</textarea> |
1013 |
</form> |
1014 |
|
1006 |
[% BLOCK batch_list %] |
1015 |
[% BLOCK batch_list %] |
1007 |
[%- FOREACH result IN results %] |
1016 |
[%- FOREACH result IN results %] |
1008 |
[%- FOREACH cells IN result.cells %] |
1017 |
[%- FOREACH cells IN result.cells %] |
Lines 1026-1040
Link Here
|
1026 |
<input type="hidden" name="limit" id="limit" value="20" /> |
1035 |
<input type="hidden" name="limit" id="limit" value="20" /> |
1027 |
</form> <!-- /#limitselect --> |
1036 |
</form> <!-- /#limitselect --> |
1028 |
|
1037 |
|
1029 |
[% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) || ( unlimited_total > 10 && limit <= 1000 ) %] |
1038 |
[% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers || batch_borrowernumbers ) || ( unlimited_total > 10 && limit <= 1000 ) %] |
1030 |
<div id="toolbar" class="btn-toolbar"> |
1039 |
<div id="toolbar" class="btn-toolbar"> |
1031 |
[% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %] |
1040 |
[% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers || batch_borrowernumbers ) %] |
1032 |
<div class="btn-group"> |
1041 |
<div class="btn-group"> |
1033 |
<button class="btn btn-default btn-sm dropdown-toggle" type="button" id="batch_mod_menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> |
1042 |
<button class="btn btn-default btn-sm dropdown-toggle" type="button" id="batch_mod_menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> |
1034 |
Batch operations with [% IF unlimited_total >= limit %][% limit | html %][% ELSE %][% unlimited_total | html %][% END %] visible records |
1043 |
Batch operations with [% IF unlimited_total >= limit %][% limit | html %][% ELSE %][% unlimited_total | html %][% END %] visible records |
1035 |
<span class="caret"></span> |
1044 |
<span class="caret"></span> |
1036 |
</button> |
1045 |
</button> |
1037 |
<ul class="dropdown-menu" aria-labelledby="batch_mod_menu"> |
1046 |
<ul class="dropdown-menu" aria-labelledby="batch_mod_menu"> |
|
|
1047 |
[% FOREACH header_ro IN header_row %] |
1048 |
[% IF header_ro.cell == 'cardnumber' || header_types.item( header_ro.cell ) == 'cardnumber' || header_ro.cell == 'borrowernumber' || header_types.item( header_ro.cell ) == 'borrowernumber' %] |
1049 |
[% IF header_ro.cell == 'cardnumber' || header_types.item( header_ro.cell ) == 'cardnumber' %] |
1050 |
[% SET show_cardnumber_ops = 1 %] |
1051 |
[% END %] |
1052 |
[% IF header_ro.cell == 'borrowernumber' || header_types.item( header_ro.cell ) == 'borrowernumber' %] |
1053 |
[% SET show_borrowernumber_ops = 1 %] |
1054 |
[% END %] |
1055 |
[% END %] |
1056 |
[% END %] |
1057 |
[% IF show_cardnumber_ops || show_borrowernumber_ops %] |
1058 |
<li class="dropdown-header">Patron records</li> |
1059 |
[% IF show_cardnumber_ops %] |
1060 |
<li> |
1061 |
<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> |
1062 |
</li> |
1063 |
[% END %] |
1064 |
[% IF show_borrowernumber_ops %] |
1065 |
<li> |
1066 |
<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> |
1067 |
</li> |
1068 |
[% END %] |
1069 |
[% END %] |
1038 |
[% FOREACH header_ro IN header_row %] |
1070 |
[% FOREACH header_ro IN header_row %] |
1039 |
[% IF header_ro.has_biblionumbers && ( header_ro.cell == 'biblionumber' || header_types.item( header_ro.cell ) == 'biblionumber' ) %] |
1071 |
[% IF header_ro.has_biblionumbers && ( header_ro.cell == 'biblionumber' || header_types.item( header_ro.cell ) == 'biblionumber' ) %] |
1040 |
<li class="dropdown-header">Bibliographic records</li> |
1072 |
<li class="dropdown-header">Bibliographic records</li> |
Lines 1057-1068
Link Here
|
1057 |
<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> |
1089 |
<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> |
1058 |
</li> |
1090 |
</li> |
1059 |
[% END %] |
1091 |
[% END %] |
1060 |
[% IF header_ro.cell == 'cardnumber' || header_types.item( header_ro.cell ) == 'cardnumber' %] |
|
|
1061 |
<li class="dropdown-header">Patron records</li> |
1062 |
<li> |
1063 |
<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> |
1064 |
</li> |
1065 |
[% END %] |
1066 |
[% END # /FOREACH header_ro %] |
1092 |
[% END # /FOREACH header_ro %] |
1067 |
</ul> <!-- /.dropdown-menu --> |
1093 |
</ul> <!-- /.dropdown-menu --> |
1068 |
</div> <!-- /.dropdown --> |
1094 |
</div> <!-- /.dropdown --> |
1069 |
- |
|
|