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

(-)a/koha-tmpl/intranet-tmpl/prog/css/cateditor.css (-3 / +5 lines)
Lines 205-218 body { Link Here
205
205
206
/*> Search */
206
/*> Search */
207
207
208
#advanced-search-ui, #search-results-ui, #macro-ui {
208
#advanced-search-ui .modal-lg, #search-results-ui .modal-lg, #macro-ui .modal-lg {
209
    padding: 5px;
210
    width: 90%;
209
    width: 90%;
211
}
210
}
212
211
213
.modal-body {
212
.modal-body {
214
    max-height: none;
213
    max-height: none;
215
    padding: 0;
214
}
215
216
.modal-lg .modal-body {
217
    overflow-y: auto;
216
}
218
}
217
219
218
#quicksearch-overlay {
220
#quicksearch-overlay {
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc (-4 / +4 lines)
Lines 387-393 require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr Link Here
387
    }
387
    }
388
388
389
    function showResultsBox(data) {
389
    function showResultsBox(data) {
390
        $('#search-top-pages, #search-bottom-pages').find('.pagination').empty();
390
        $('#search-top-pages, #search-bottom-pages').find('nav').empty();
391
        $('#searchresults thead tr').empty();
391
        $('#searchresults thead tr').empty();
392
        $('#searchresults tbody').empty();
392
        $('#searchresults tbody').empty();
393
        $('#search-serversinfo').empty().append('<li>' + _("Loading...") + '</li>');
393
        $('#search-serversinfo').empty().append('<li>' + _("Loading...") + '</li>');
Lines 527-533 require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr Link Here
527
        var max_page = Math.ceil( data.total_fetched / data.page_size ) - 1;
527
        var max_page = Math.ceil( data.total_fetched / data.page_size ) - 1;
528
528
529
        if ( cur_page != 0 ) {
529
        if ( cur_page != 0 ) {
530
            pages.push( '<li><a class="search-nav" href="#" data-offset="' + (data.offset - data.page_size) + '">&laquo; ' + _("Previous") + '</a></li>' );
530
            pages.push( '<li><a class="search-nav" href="#" data-offset="' + (data.offset - data.page_size) + '"><span aria-hidden="true">&laquo;</span> ' + _("Previous") + '</a></li>' );
531
        }
531
        }
532
532
533
        for ( var page = Math.max( 0, cur_page - 9 ); page <= Math.min( max_page, cur_page + 9 ); page++ ) {
533
        for ( var page = Math.max( 0, cur_page - 9 ); page <= Math.min( max_page, cur_page + 9 ); page++ ) {
Lines 539-548 require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr Link Here
539
        }
539
        }
540
540
541
        if ( cur_page < max_page ) {
541
        if ( cur_page < max_page ) {
542
            pages.push( ' <li><a class="search-nav" href="#" data-offset="' + (data.offset + data.page_size) + '">' + _("Next") + ' &raquo;</a></li>' );
542
            pages.push( ' <li><a class="search-nav" href="#" data-offset="' + (data.offset + data.page_size) + '">' + _("Next") + ' <span aria-hidden="true">&raquo;</span></a></li>' );
543
        }
543
        }
544
544
545
        $( '#search-top-pages, #search-bottom-pages' ).find( '.pagination' ).html( pages.length > 1 ? ( '<ul>' + pages.join( '' ) + '</ul>' ) : '' );
545
        $( '#search-top-pages, #search-bottom-pages' ).find( 'nav' ).html( pages.length > 1 ? ( '<ul class="pagination pagination-sm">' + pages.join( '' ) + '</ul>' ) : '' );
546
546
547
        var $overlay = $('#search-overlay');
547
        var $overlay = $('#search-overlay');
548
        $overlay.find('span').text(_("Loading"));
548
        $overlay.find('span').text(_("Loading"));
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt (-8 / +8 lines)
Lines 105-112 Link Here
105
    <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
105
    <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
106
    <h3 id="advanced-search-title">Advanced search</h3>
106
    <h3 id="advanced-search-title">Advanced search</h3>
107
</div>
107
</div>
108
108
<div class="modal-body">
109
<form id="advanced-search" class="modal-body">
109
  <form id="advanced-search">
110
    <div class="row">
110
    <div class="row">
111
    <div class="col-md-3">
111
    <div class="col-md-3">
112
        <div id="search-facets">
112
        <div id="search-facets">
Lines 172-178 Link Here
172
        </ul>
172
        </ul>
173
    </div>
173
    </div>
174
    </div>
174
    </div>
175
</form>
175
  </form>
176
</div>
176
</div>
177
</div>
177
</div>
178
</div>
178
</div>
179
</div>
Lines 199-206 Link Here
199
        <!-- tabindex attribute allows JS-controlled focus -->
200
        <!-- tabindex attribute allows JS-controlled focus -->
200
        <div id="searchresults" tabindex="-1">
201
        <div id="searchresults" tabindex="-1">
201
            <div id="search-top-pages">
202
            <div id="search-top-pages">
202
                <div class="pagination pagination-small">
203
                <nav aria-label="Search results navigation">
203
                </div>
204
                </nav>
204
            </div>
205
            </div>
205
206
206
            <table>
207
            <table>
Lines 211-218 Link Here
211
            </table>
212
            </table>
212
213
213
            <div id="search-bottom-pages">
214
            <div id="search-bottom-pages">
214
                <div class="pagination pagination-small">
215
                <nav aria-label="Search results navigation">
215
                </div>
216
                </nav>
216
            </div>
217
            </div>
217
        </div>
218
        </div>
218
    </div>
219
    </div>
219
- 

Return to bug 16239