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

(-)a/koha-tmpl/opac-tmpl/bootstrap/less/opac.less (+101 lines)
Lines 304-309 td { Link Here
304
    }
304
    }
305
}
305
}
306
306
307
/*opac browse search*/
308
#browse-search {
309
310
    form {
311
        label {
312
            display: inline-block;
313
            margin-right:5px;
314
        }
315
316
        [type=submit] {
317
            margin-top: 10px;
318
        }
319
    }
320
321
    #browse-resultswrapper {
322
       margin-top: 4em;
323
324
        @media (min-width: 768px) and (max-width: 984px) {
325
            margin-top: 2em;
326
        }
327
328
        @media (max-width: 767px) {
329
            margin-top: 1em;
330
        }
331
    }
332
    #browse-searchresults, #browse-selectionsearch {
333
        border: 1px solid #E3E3E3;
334
        .border-radius-all(4px);
335
        padding: 0;
336
        overflow-y: auto;
337
        max-height: 31em;
338
        margin-bottom: 2em;
339
    }
340
    #browse-searchresults {
341
        max-height: 31em;
342
        list-style: none;
343
        padding: 10px;
344
345
        a {
346
            display: block;
347
            margin-bottom: 5px;
348
349
            &.selected {
350
                background-color:#EEE;
351
            }
352
        }
353
354
        li:last-child a {
355
            margin-bottom: 0;
356
        }
357
358
        @media (max-width: 767px) {
359
            max-height: 13em;
360
        }
361
    }
362
    #browse-selection {
363
        margin-top: -40px;
364
        padding-top: 0;
365
366
        @media (max-width: 767px) {
367
            margin-top: 0;
368
        }
369
    }
370
    #browse-selectionsearch ol {
371
        list-style: none;
372
        margin: 0;
373
374
        li {
375
            padding: 1em;
376
377
            &:nth-child(odd) {
378
                background-color: #F4F4F4;
379
            }
380
        }
381
    }
382
   #browse-selectionsearch p.subjects {
383
        font-size: 0.9em;
384
        margin-bottom: 0;
385
    }
386
    #browse-selectionsearch h4 {
387
        margin: 0;
388
    }
389
    .error, .no-results {
390
        background-color: #EEE;
391
        border: 1px solid #E8E8E8;
392
        text-align: left;
393
        padding: 0.5em;
394
        .border-radius-all(3px);
395
    }
396
    .loading {
397
        text-align: center;
398
399
        img {
400
            margin:0.5em 0;
401
            position: relative;
402
            left: -5px;
403
        }
404
    }
405
}
406
/*end browse search*/
407
307
/* Override Bootstrap alert */
408
/* Override Bootstrap alert */
308
.alert {
409
.alert {
309
    background: #fffbe5; /* Old browsers */
410
    background: #fffbe5; /* Old browsers */
(-)a/opac/opac-browse.pl (-2 / +11 lines)
Lines 24-29 use CGI qw( -utf8 :standard ); Link Here
24
24
25
use C4::Auth;
25
use C4::Auth;
26
use C4::Context;
26
use C4::Context;
27
use C4::Output;
27
28
28
use Koha::ElasticSearch;
29
use Koha::ElasticSearch;
29
use Koha::SearchEngine::Elasticsearch::Browse;
30
use Koha::SearchEngine::Elasticsearch::Browse;
Lines 41-48 binmode STDOUT, ':utf8'; Link Here
41
my $api = $query->param('api');
42
my $api = $query->param('api');
42
43
43
if ( !$api ) {
44
if ( !$api ) {
45
    my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
46
        {
47
            template_name   => "opac-browse.tt",
48
           query           => $query,
49
            type            => "opac",
50
            authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ),
51
        }
52
    );
53
   $template->param();
54
    output_html_with_http_headers $query, $cookie, $template->output;
44
55
45
    # No parameters, so we just render the template.
46
56
47
}
57
}
48
elsif ( $api eq 'GetSuggestions' ) {
58
elsif ( $api eq 'GetSuggestions' ) {
49
- 

Return to bug 14567