Line 0
Link Here
|
0 |
- |
1 |
[% USE Koha %] |
|
|
2 |
[% USE Asset %] |
3 |
[% USE raw %] |
4 |
[% SET footerjs = 1 %] |
5 |
|
6 |
[% INCLUDE 'doc-head-open.inc' %] |
7 |
|
8 |
<title>Browse the catalog › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title> |
9 |
[% INCLUDE 'doc-head-close.inc' %] |
10 |
</head> |
11 |
|
12 |
<body id="browse_results" class="catalog"> |
13 |
[% INCLUDE 'header.inc' %] |
14 |
[% INCLUDE 'cat-search.inc' %] |
15 |
|
16 |
[% IntranetCoce = Koha.Preference('IntranetCoce') %] |
17 |
[% CoceProviders = Koha.Preference('CoceProviders') %] |
18 |
[% CoceHost = Koha.Preference('CoceHost') %] |
19 |
|
20 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs"> |
21 |
<ol class="breadcrumb"> |
22 |
<li class="breadcrumb-item"> |
23 |
<a href="/cgi-bin/koha/opac-main.pl">Home</a> |
24 |
</li> |
25 |
<li class="breadcrumb-item active"> |
26 |
<a href="#" aria-current="page">Browse search</a> |
27 |
</li> |
28 |
</ol> |
29 |
</nav> <!-- /#breadcrumbs --> |
30 |
|
31 |
<div class="main container-fluid"> |
32 |
<div class="row"> |
33 |
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> |
34 |
[% IF Koha.Preference('SearchEngine') == 'Elasticsearch' && Koha.Preference('OpacBrowseSearch') %] |
35 |
<div id="browse-search" class="maincontent"> |
36 |
<h1>Browse search</h1> |
37 |
|
38 |
<form> |
39 |
<legend class="sr-only">Browse search</legend> |
40 |
<div class="form-row"> |
41 |
<div class="col"> |
42 |
<label for="browse-searchterm">Search for:</label> |
43 |
<input type="search" id="browse-searchterm" class="form-control" name="searchterm" value="" /> |
44 |
</div> <!-- /.col-12.col-sm-9 --> |
45 |
<div class="col-auto"> |
46 |
<label for="browse-searchfield">Search type:</label> |
47 |
<select id="browse-searchfield" name="searchfield" class="form-control"> |
48 |
<option value="author">Author</option> |
49 |
<option value="subject">Subject</option> |
50 |
<option value="title">Title</option> |
51 |
</select> |
52 |
</div> <!-- /.col-auto --> |
53 |
</div> <!-- /.form-row --> |
54 |
<div class="form-row"> |
55 |
<div class="col"> |
56 |
<div id="browse-searchfuzziness"> |
57 |
<div class="form-check form-check-inline"> |
58 |
<label for="exact" class="form-check-label"> |
59 |
<input class="form-check-input" type="radio" name="browse-searchfuzziness" id="exact" value="0" />Exact |
60 |
</label> |
61 |
</div> <!-- /.form-check.form-check-inline --> |
62 |
<div class="form-check form-check-inline"> |
63 |
<label for="fuzzy" class="form-check-label"> |
64 |
<input class="form-check-input" type="radio" name="browse-searchfuzziness" id="fuzzy" value="1" checked="checked" /> Fuzzy |
65 |
</label> |
66 |
</div> <!-- /.form-check.form-check-inline --> |
67 |
<div class="form-check form-check-inline"> |
68 |
<label for="reallyfuzzy" class="form-check-label"> |
69 |
<input class="form-check-input" type="radio" name="browse-searchfuzziness" id="reallyfuzzy" value="2" /> Really fuzzy |
70 |
</label> |
71 |
</div> <!-- /.form-check.form-check-inline --> |
72 |
</div> <!-- /#browse-searchfuzziness --> |
73 |
</div> <!-- /.col --> |
74 |
</div> <!-- /.form-row --> |
75 |
<div class="form-row"> |
76 |
<div class="col"> |
77 |
<button class="btn btn-primary" type="submit" accesskey="s">Search</button> |
78 |
</div> |
79 |
</div> |
80 |
</form> |
81 |
|
82 |
<div id="browse-suggestionserror" class="alert alert-warning d-none" role="alert"> |
83 |
An error occurred, please try again. |
84 |
</div> |
85 |
|
86 |
<div id="browse-resultswrapper" class="d-none"> |
87 |
<h2>Results</h2> |
88 |
|
89 |
<div class="loading d-none"><img src="[% interface | html %]/[% theme |html %]/images/loading.gif" alt=""> Loading</div> |
90 |
<div class="alert alert-warning no-results d-none" role="alert">Sorry, there are no results. Try a different search term.</div> |
91 |
|
92 |
<div class="accordion" id="browse-searchresults"> |
93 |
<div id="card_template" class="card"> |
94 |
<div class="card-header" id="heading"> |
95 |
<a class="expand-result" href="#" data-toggle="collapse" aria-expanded="false" aria-controls="collapse"> |
96 |
</a> |
97 |
</div> <!-- /#heading.card-header --> |
98 |
<div id="collapse" class="collapse" aria-labelledby="heading" data-parent="#browse-searchresults"> |
99 |
<div class="card-body"> |
100 |
</div> |
101 |
</div> <!-- /#collapse.collapse --> |
102 |
</div> <!-- /#card_template.card --> |
103 |
</div> <!-- /#browse-searchresults.accordion --> |
104 |
</div><!-- / #browse-resultswrapper --> |
105 |
</div><!-- /#browse-search --> |
106 |
[% ELSE %] |
107 |
<h1>Browse search</h1> |
108 |
<div class="alert alert-info"> |
109 |
This feature is not enabled |
110 |
</div> |
111 |
[% END %] |
112 |
|
113 |
</div><!-- / .col/col-10 --> |
114 |
</div><!-- / .row --> |
115 |
|
116 |
[% MACRO jsinclude BLOCK %] |
117 |
[% Asset.js("js/browse.js") | $raw %] |
118 |
[% END %] |
119 |
[% INCLUDE 'intranet-bottom.inc' %] |