View | Details | Raw Unified | Return to bug 35905
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-32 / +61 lines)
Lines 1061-1067 Link Here
1061
                                    <div id="toolbar" class="btn-toolbar">
1061
                                    <div id="toolbar" class="btn-toolbar">
1062
                                        [% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers || batch_borrowernumbers ) %]
1062
                                        [% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers || batch_borrowernumbers ) %]
1063
                                            <div class="btn-group">
1063
                                            <div class="btn-group">
1064
                                                <button class="btn btn-default btn-sm dropdown-toggle" type="button" id="batch_mod_menu" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
1064
                                                [% IF (( CAN_user_tools_items_batchmod || CAN_user_tools_items_batchdel || CAN_user_tools_records_batchmod || CAN_user_tools_records_batchdel ) && ( batch_itemnumbers || batch_biblionumbers )) || ( CAN_user_tools_edit_patrons && batch_borrowernumbers || batch_cardnumbers ) %]
1065
                                                    <button class="btn btn-default btn-sm dropdown-toggle" type="button" id="batch_mod_menu" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
1066
                                                [% ELSE %]
1067
                                                    <button class="btn btn-default btn-sm dropdown-toggle" type="button" id="batch_mod_menu" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true" disabled>
1068
                                                [% END %]
1065
                                                    Batch operations with [% IF unlimited_total >= limit %][% results.size | html %][% ELSE %][% unlimited_total | html %][% END %] visible records
1069
                                                    Batch operations with [% IF unlimited_total >= limit %][% results.size | html %][% ELSE %][% unlimited_total | html %][% END %] visible records
1066
                                                    <span class="caret"></span>
1070
                                                    <span class="caret"></span>
1067
                                                </button>
1071
                                                </button>
Lines 1077-1089 Link Here
1077
                                                        [% END %]
1081
                                                        [% END %]
1078
                                                    [% END %]
1082
                                                    [% END %]
1079
                                                    [% IF show_cardnumber_ops || show_borrowernumber_ops %]
1083
                                                    [% IF show_cardnumber_ops || show_borrowernumber_ops %]
1080
                                                        <li><h6 class="dropdown-header">Patron records</h6></li>
1084
                                                        [% IF ( show_cardnumber_ops || show_borrowernumber_ops) && CAN_user_tools_edit_patrons %]
1081
                                                        [% IF show_cardnumber_ops || show_borrowernumber_ops %]
1085
                                                            <li><h6 class="dropdown-header">Patron records</h6></li>
1082
                                                            <li>
1086
                                                            <li>
1083
                                                                <a href="#" data-submit="batch_patron_modification" data-bs-toggle="tooltip" data-bs-placement="right" title="Send visible results to batch patron modification" class="dropdown-item batch_op send_to_patron_mod">Batch patron modification</a>
1087
                                                                <a href="#" data-submit="batch_patron_modification" data-bs-toggle="tooltip" data-bs-placement="right" title="Send visible results to batch patron modification" class="dropdown-item batch_op send_to_patron_mod">Batch patron modification</a>
1084
                                                            </li>
1088
                                                            </li>
1085
                                                        [% END %]
1089
                                                        [% END %]
1086
                                                        [% IF show_borrowernumber_ops %]
1090
                                                        [% IF show_borrowernumber_ops && CAN_user_tools_edit_patrons %]
1087
                                                            <li>
1091
                                                            <li>
1088
                                                                <a href="#" data-submit="patron_card_creator" data-bs-toggle="tooltip" data-bs-placement="right" title="Send visible results to a new patron card batch" class="dropdown-item batch_op send_to_patron_card_batch">Patron card creator</a>
1092
                                                                <a href="#" data-submit="patron_card_creator" data-bs-toggle="tooltip" data-bs-placement="right" title="Send visible results to a new patron card batch" class="dropdown-item batch_op send_to_patron_card_batch">Patron card creator</a>
1089
                                                            </li>
1093
                                                            </li>
Lines 1091-1115 Link Here
1091
                                                    [% END %]
1095
                                                    [% END %]
1092
                                                    [% FOREACH header_ro IN header_row %]
1096
                                                    [% FOREACH header_ro IN header_row %]
1093
                                                        [% IF header_ro.has_biblionumbers && ( header_ro.cell == 'biblionumber' || header_types.item( header_ro.cell ) == 'biblionumber' ) %]
1097
                                                        [% IF header_ro.has_biblionumbers && ( header_ro.cell == 'biblionumber' || header_types.item( header_ro.cell ) == 'biblionumber' ) %]
1094
                                                            <li><h6 class="dropdown-header">Bibliographic records</h6></li>
1098
                                                            [% IF ( CAN_user_tools_records_batchmod || CAN_user_tools_records_batchdel ) %]
1095
                                                            <li>
1099
                                                                <li><h6 class="dropdown-header">Bibliographic records</h6></li>
1096
                                                                <a href="#" data-submit="batch_record_modification" data-bs-toggle="tooltip" data-bs-placement="right" title="Send visible records to batch record modification" class="dropdown-item batch_op send_to_record_mod">Batch record modification</a>
1100
                                                                [% IF CAN_user_tools_records_batchmod %]
1097
                                                            </li>
1101
                                                                    <li>
1098
                                                            <li>
1102
                                                                        <a href="#" data-submit="batch_record_modification" data-bs-toggle="tooltip" data-bs-placement="right" title="Send visible records to batch record modification" class="dropdown-item batch_op send_to_record_mod">Batch record modification</a>
1099
                                                                <a href="#" data-submit="batch_record_deletion" data-bs-toggle="tooltip" data-bs-placement="right" title="Send visible records to batch record deletion" class="dropdown-item batch_op send_to_record_del">Batch record deletion</a>
1103
                                                                    </li>
1100
                                                            </li>
1104
                                                                [% END %]
1105
                                                                [% IF CAN_user_tools_records_batchdel %]
1106
                                                                    <li>
1107
                                                                        <a href="#" data-submit="batch_record_deletion" data-bs-toggle="tooltip" data-bs-placement="right" title="Send visible records to batch record deletion" class="dropdown-item batch_op send_to_record_del">Batch record deletion</a>
1108
                                                                    </li>
1109
                                                                [% END %]
1110
                                                            [% END # /IF CAN_user_tools_records_batchmod || CAN_user_tools_records_batchdel %]
1101
                                                            <li>
1111
                                                            <li>
1102
                                                                <a href="#" data-submit="batch_add_to_list" data-bs-toggle="tooltip" data-bs-placement="right" title="Send visible records to a list" class="dropdown-item batch_op send_to_list">Add to list</a>
1112
                                                                <a href="#" data-submit="batch_add_to_list" data-bs-toggle="tooltip" data-bs-placement="right" title="Send visible records to a list" class="dropdown-item batch_op send_to_list">Add to list</a>
1103
                                                            </li>
1113
                                                            </li>
1104
                                                        [% END %]
1114
                                                        [% END %]
1105
                                                        [% IF header_ro.has_itemnumbers && ( header_ro.cell == 'itemnumber' || header_types.item( header_ro.cell ) == 'itemnumber' ) %]
1115
                                                        [% IF header_ro.has_itemnumbers && ( header_ro.cell == 'itemnumber' || header_types.item( header_ro.cell ) == 'itemnumber' ) %]
1106
                                                            <li><h6 class="dropdown-header">Item records</h6></li>
1116
                                                            [% IF ( CAN_user_tools_items_batchmod || CAN_user_tools_items_batchdel ) %]
1107
                                                            <li>
1117
                                                                <li><h6 class="dropdown-header">Item records</h6></li>
1108
                                                                <a href="#" data-submit="batch_item_modification" data-bs-toggle="tooltip" data-bs-placement="right" title="Send visible items to batch item modification" class="dropdown-item batch_op send_to_item_mod">Batch item modification</a>
1118
                                                                [% IF CAN_user_tools_items_batchmod %]
1109
                                                            </li>
1119
                                                                    <li>
1110
                                                            <li>
1120
                                                                        <a href="#" data-submit="batch_item_modification" data-bs-toggle="tooltip" data-bs-placement="right" title="Send visible items to batch item modification" class="dropdown-item batch_op send_to_item_mod">Batch item modification</a>
1111
                                                                <a href="#" data-submit="batch_item_deletion" data-bs-toggle="tooltip" data-bs-placement="right" title="Send visible items to batch item deletion" class="dropdown-item batch_op send_to_item_del">Batch item deletion</a>
1121
                                                                    </li>
1112
                                                            </li>
1122
                                                                [% END %]
1123
                                                                [% IF CAN_user_tools_items_batchdel %]
1124
                                                                    <li>
1125
                                                                        <a href="#" data-submit="batch_item_deletion" data-bs-toggle="tooltip" data-bs-placement="right" title="Send visible items to batch item deletion" class="dropdown-item batch_op send_to_item_del">Batch item deletion</a>
1126
                                                                    </li>
1127
                                                                [% END %]
1128
                                                            [% END # /IF CAN_user_tools_items_batchmod || CAN_user_tools_items_batchdel %]
1113
                                                        [% END %]
1129
                                                        [% END %]
1114
                                                    [% END # /FOREACH header_ro %]
1130
                                                    [% END # /FOREACH header_ro %]
1115
                                                </ul> <!-- /.dropdown-menu -->
1131
                                                </ul> <!-- /.dropdown-menu -->
Lines 1143-1149 Link Here
1143
                                            </div>
1159
                                            </div>
1144
                                        [% END # /IF ( unlimited_total > 10 && limit <= 1000 ) %]
1160
                                        [% END # /IF ( unlimited_total > 10 && limit <= 1000 ) %]
1145
1161
1146
                                        [% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %]
1162
                                        [% IF ( batch_biblionumbers || batch_itemnumbers ) ||( batch_cardnumbers || batch_borrowernumbers && (CAN_user_borrowers_list_borrowers || CAN_user_borrowers_edit_borrowers || CAN_user_circulate_circulate_remaining_permissions ) ) %]
1147
                                            <a href="#" class="btn btn-link" id="toggle_auto_links">
1163
                                            <a href="#" class="btn btn-link" id="toggle_auto_links">
1148
                                                <i class="fa-solid fa-eye autolink" aria-hidden="true" style="display:none"></i>
1164
                                                <i class="fa-solid fa-eye autolink" aria-hidden="true" style="display:none"></i>
1149
                                                <i class="fa-solid fa-eye-slash autolink" aria-hidden="true"></i>
1165
                                                <i class="fa-solid fa-eye-slash autolink" aria-hidden="true"></i>
Lines 1190-1196 Link Here
1190
                                                        <span class="data-plain">[% cells.cell | $raw %]</span>
1206
                                                        <span class="data-plain">[% cells.cell | $raw %]</span>
1191
                                                        <div id="itemnumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-bs-toggle="dropdown" href="#">[% cells.cell | $raw %] </a>
1207
                                                        <div id="itemnumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-bs-toggle="dropdown" href="#">[% cells.cell | $raw %] </a>
1192
                                                            <ul class="dropdown-menu pull-right" role="menu">
1208
                                                            <ul class="dropdown-menu pull-right" role="menu">
1193
                                                                <li><a class="dropdown-item" target="_blank" href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&itemnumber=[% cells.cell | $raw %]"><i class="fa-fw fa-solid fa-pencil" aria-hidden="true"></i> Edit item</a></li>
1209
                                                                [% IF CAN_user_editcatalogue_edit_items %]
1210
                                                                    <li><a class="dropdown-item" target="_blank" href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&itemnumber=[% cells.cell | $raw %]"><i class="fa-fw fa-solid fa-pencil" aria-hidden="true"></i> Edit item</a></li>
1211
                                                                [% END # /IF CAN_user_editcatalogue_edit_items %]
1194
                                                                <li><a class="dropdown-item" target="_blank" href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% cells.cell | $raw %]"><i class="fa fa-fw fa-eye" aria-hidden="true"></i> View item</a></li>
1212
                                                                <li><a class="dropdown-item" target="_blank" href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% cells.cell | $raw %]"><i class="fa fa-fw fa-eye" aria-hidden="true"></i> View item</a></li>
1195
                                                            </ul>
1213
                                                            </ul>
1196
                                                        </div>
1214
                                                        </div>
Lines 1200-1227 Link Here
1200
                                                        <span class="data-plain">[% cells.cell | $raw %]</span>
1218
                                                        <span class="data-plain">[% cells.cell | $raw %]</span>
1201
                                                        <div id="biblionumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-bs-toggle="dropdown" href="#">[% cells.cell | $raw %] </a>
1219
                                                        <div id="biblionumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-bs-toggle="dropdown" href="#">[% cells.cell | $raw %] </a>
1202
                                                            <ul class="dropdown-menu pull-right" role="menu">
1220
                                                            <ul class="dropdown-menu pull-right" role="menu">
1203
                                                                <li><a class="dropdown-item" target="_blank" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% cells.cell | $raw %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit record</a></li>
1221
                                                                [% IF CAN_user_editcatalogue_edit_catalogue %]
1222
                                                                    <li><a class="dropdown-item" target="_blank" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% cells.cell | $raw %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit record</a></li>
1223
                                                                [% END # /IF CAN_user_editcatalogue_edit_catalogue %]
1204
                                                                <li><a class="dropdown-item" target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cells.cell | $raw %]"><i class="fa-solid fa-eye" aria-hidden="true"></i> View record</a></li>
1224
                                                                <li><a class="dropdown-item" target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cells.cell | $raw %]"><i class="fa-solid fa-eye" aria-hidden="true"></i> View record</a></li>
1205
                                                            </ul>
1225
                                                            </ul>
1206
                                                        </div>
1226
                                                        </div>
1207
                                                    </td>
1227
                                                    </td>
1208
                                                [% ELSIF header_row.$place.cell == 'borrowernumber' || header_types.item(header_row.$place.cell) == 'borrowernumber' %]
1228
                                                [% ELSIF header_row.$place.cell == 'borrowernumber' || header_types.item(header_row.$place.cell) == 'borrowernumber' %]
1209
                                                    <td class="batch-op borrowernumber" data-number="borrowernumber">
1229
                                                    <td class="batch-op borrowernumber" data-number="borrowernumber">
1210
                                                        <span class="data-plain">[% cells.cell | $raw %]</span>
1230
                                                        [% IF  CAN_user_borrowers_list_borrowers || CAN_user_borrowers_edit_borrowers || CAN_user_circulate_circulate_remaining_permissions %]
1211
                                                        <div id="borrowernumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-bs-toggle="dropdown" href="#">[% cells.cell | $raw %] </a>
1231
                                                            <span class="data-plain">[% cells.cell | $raw %]</span>
1212
                                                            <ul class="dropdown-menu pull-right" role="menu">
1232
                                                            <div id="borrowernumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-bs-toggle="dropdown" href="#">[% cells.cell | $raw %] </a>
1213
                                                                <li><a class="dropdown-item" target="_blank" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% cells.cell | $raw %]"><i class="fa-solid fa-eye" aria-hidden="true"></i> View patron</a></li>
1233
                                                                <ul class="dropdown-menu pull-right" role="menu">
1214
                                                                <li><a class="dropdown-item" target="_blank" href="/cgi-bin/koha/members/memberentry.pl?op=edit_form&amp;borrowernumber=[% cells.cell | $raw %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit patron</a></li>
1234
                                                                    [% IF CAN_user_borrowers_list_borrowers %]
1215
                                                                <li><a class="dropdown-item" target="_blank" href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% cells.cell | $raw %]"><i class="fa fa-barcode" aria-hidden="true"></i> Check out</a></li>
1235
                                                                        <li><a class="dropdown-item" target="_blank" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% cells.cell | $raw %]"><i class="fa-solid fa-eye" aria-hidden="true"></i> View patron</a></li>
1216
                                                            </ul>
1236
                                                                    [% END %]
1217
                                                        </div>
1237
                                                                    [% IF CAN_user_borrowers_edit_borrowers %]
1238
                                                                        <li><a class="dropdown-item" target="_blank" href="/cgi-bin/koha/members/memberentry.pl?op=edit_form&amp;borrowernumber=[% cells.cell | $raw %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit patron</a></li>
1239
                                                                    [% END %]
1240
                                                                    [% IF CAN_user_circulate_circulate_remaining_permissions %]
1241
                                                                        <li><a class="dropdown-item" target="_blank" href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% cells.cell | $raw %]"><i class="fa fa-barcode" aria-hidden="true"></i> Check out</a></li>
1242
                                                                    [% END %]
1243
                                                                </ul>
1244
                                                            </div>
1245
                                                        [% ELSE %]
1246
                                                            [% cells.cell | $raw %]
1247
                                                        [% END %]
1218
                                                    </td>
1248
                                                    </td>
1219
                                                [% ELSIF header_row.$place.cell == 'cardnumber' || header_types.item(header_row.$place.cell) == 'cardnumber' %]
1249
                                                [% ELSIF CAN_user_circulate_circulate_remaining_permissions && header_row.$place.cell == 'cardnumber' || header_types.item(header_row.$place.cell) == 'cardnumber' %]
1220
                                                    <td class="batch-op cardnumber" data-number="cardnumber">
1250
                                                    <td class="batch-op cardnumber" data-number="cardnumber">
1221
                                                        <span class="data-plain">[% cells.cell | $raw %]</span>
1251
                                                        <span class="data-plain">[% cells.cell | $raw %]</span>
1222
                                                        <div id="cardnumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-bs-toggle="dropdown" href="#">[% cells.cell | $raw %] </a>
1252
                                                        <div id="cardnumber_autolink" class="btn-group dropup autolink"><a class="btn btn-link dropdown-toggle" role="button" data-bs-toggle="dropdown" href="#">[% cells.cell | $raw %] </a>
1223
                                                            <ul class="dropdown-menu pull-right" role="menu">
1253
                                                            <ul class="dropdown-menu pull-right" role="menu">
1224
                                                                <li><a target="_blank" href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cells.cell | $raw %]"><i class="fa fa-barcode" aria-hidden="true"></i> Check out</a></li>
1254
                                                                <li><a class="dropdown-item" target="_blank" href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cells.cell | $raw %]"><i class="fa fa-barcode" aria-hidden="true"></i> Check out</a></li>
1225
                                                            </ul>
1255
                                                            </ul>
1226
                                                        </div>
1256
                                                        </div>
1227
                                                    </td>
1257
                                                    </td>
1228
- 

Return to bug 35905