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

(-)a/catalogue/search.pl (+3 lines)
Lines 200-205 my ( $template, $borrowernumber, $cookie ) = get_template_and_user( Link Here
200
200
201
my $lang = C4::Languages::getlanguage($cgi);
201
my $lang = C4::Languages::getlanguage($cgi);
202
202
203
my $userenv_branch = C4::Context->userenv->{'branch'} || '';
204
$template->param( userbranch => $userenv_branch );
205
203
if ( C4::Context->preference("marcflavour") eq "UNIMARC" ) {
206
if ( C4::Context->preference("marcflavour") eq "UNIMARC" ) {
204
    $template->param( 'UNIMARC' => 1 );
207
    $template->param( 'UNIMARC' => 1 );
205
}
208
}
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-2 / +7 lines)
Lines 2006-2012 li { Link Here
2006
2006
2007
        &.unavailable {
2007
        &.unavailable {
2008
            clear: left;
2008
            clear: left;
2009
            display: block;
2010
        }
2009
        }
2011
    }
2010
    }
2012
2011
Lines 2023-2028 li { Link Here
2023
            display: block;
2022
            display: block;
2024
        }
2023
        }
2025
    }
2024
    }
2025
    .all {
2026
        display: block;
2027
    }
2028
    .branch_specific {
2029
        display: none;
2030
    }
2026
}
2031
}
2027
2032
2028
#searchresults,
2033
#searchresults,
Lines 4895-4898 div .suggestion_note { Link Here
4895
            display: block;
4900
            display: block;
4896
        }
4901
        }
4897
    }
4902
    }
4898
}
4903
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-796 / +669 lines)
Lines 11-38 Link Here
11
[% USE AuthorisedValues %]
11
[% USE AuthorisedValues %]
12
[% INCLUDE 'doc-head-open.inc' %]
12
[% INCLUDE 'doc-head-open.inc' %]
13
13
14
<title
14
<title>[% FILTER collapse %]
15
    >[% FILTER collapse %]
15
    [% IF ( searchdesc ) %]
16
        [% IF ( searchdesc ) %]
16
        [% IF ( query_desc ) %]
17
            [% IF ( query_desc ) %]
17
            [% IF ( limit_desc ) %]
18
                [% IF ( limit_desc ) %]
18
                [% tx("Results of search for {query_desc} with limit(s): '{limit_desc}'", { query_desc = query_desc, limit_desc = limit_desc }) | html %]
19
                    [% tx("Results of search for {query_desc} with limit(s): '{limit_desc}'", { query_desc = query_desc, limit_desc = limit_desc }) | html %]
20
                [% ELSE %]
21
                    [% tx("Results of search for {query_desc}", { query_desc = query_desc }) | html %]
22
                [% END %]
23
            [% ELSE %]
19
            [% ELSE %]
24
                [% IF ( limit_desc ) %]
20
                [% tx("Results of search for {query_desc}", { query_desc = query_desc }) | html %]
25
                    [% tx("Results of search for {limit_desc}", { limit_desc = limit_desc }) | html %]
26
                [% ELSE %]
27
                    [% t("Results of search") | html %]
28
                [% END %]
29
            [% END %]
21
            [% END %]
30
        [% ELSE %]
22
        [% ELSE %]
31
            [% t("You did not specify any search criteria") | html %]
23
            [% IF ( limit_desc ) %]
24
                [% tx("Results of search for {limit_desc}", { limit_desc = limit_desc }) | html %]
25
            [% ELSE %]
26
                [% t("Results of search") | html %]
27
            [% END %]
32
        [% END %]
28
        [% END %]
33
        &rsaquo; [% t("Catalog") | html %] &rsaquo; [% t("Koha") | html %]
29
    [% ELSE %]
34
    [% END %]</title
30
        [% t("You did not specify any search criteria") | html %]
35
>
31
    [% END %] &rsaquo;
32
    [% t("Catalog") | html %] &rsaquo;
33
    [% t("Koha") | html %]
34
[% END %]</title>
36
[% INCLUDE 'doc-head-close.inc' %]
35
[% INCLUDE 'doc-head-close.inc' %]
37
</head>
36
</head>
38
37
Lines 67-921 Link Here
67
[% END #/ WRAPPER sub-header.inc %]
66
[% END #/ WRAPPER sub-header.inc %]
68
67
69
[% WRAPPER 'main-container.inc' aside='facets' %]
68
[% WRAPPER 'main-container.inc' aside='facets' %]
70
    <h1>Search results</h1>
69
71
70
            <h1>Search results</h1>
72
    [% IF ( total ) %]
71
73
        <h3>
72
                [% IF ( total ) %]
74
            [% total | html %] result(s) found
73
75
            [% IF ( query_desc ) %]for <span class="results_query_desc">'[% query_desc | html %]'</span>[% END %][% IF limit_desc %]
74
                    <h3>
76
                &nbsp;with limit(s): <span class="results_limit_desc">'[% limit_desc | html %]'</span>
75
                        [% total | html %] result(s) found [% IF ( query_desc ) %]for <span class="results_query_desc">'[% query_desc | html %]'</span>[% END %][% IF limit_desc  %]&nbsp;with limit(s): <span class="results_limit_desc">'[% limit_desc | html %]'</span>[% END %][% IF ( LibraryName ) %] in [% LibraryName | html %] Catalog[% END %].
77
            [% END %][% IF ( LibraryName ) %]in [% LibraryName | html %] Catalog[% END %].
76
                    </h3>
78
        </h3>
77
79
78
                [% UNLESS scan %]
80
        [% UNLESS scan %]
79
                    <!-- prettier-ignore-start -->
81
            <!-- prettier-ignore-start -->
82
                    <a href="/cgi-bin/koha/catalogue/search.pl?advsearch=1&edit_search=1&[% query_cgi | $raw %]&[% limit_cgi | $raw %]&sort_by=[% sort_by | uri %]">Edit this search</a>
80
                    <a href="/cgi-bin/koha/catalogue/search.pl?advsearch=1&edit_search=1&[% query_cgi | $raw %]&[% limit_cgi | $raw %]&sort_by=[% sort_by | uri %]">Edit this search</a>
83
                    <!-- prettier-ignore-end -->
81
                    <!-- prettier-ignore-end -->
84
            [% IF ( Koha.Preference('SavedSearchFilters') && CAN_user_parameters_manage_search_filters ) %]
82
                    [% IF ( Koha.Preference('SavedSearchFilters') && CAN_user_parameters_manage_search_filters ) %]
85
                | <a href="#" id="save_search_filter">Save search as filter</a>
83
                        | <a href="#" id="save_search_filter">Save search as filter</a>
86
            [% END %]
87
88
            <div id="search_within_results">
89
                <form method="get" id="refine_search">
90
                    <label for="limit">Search within results</label>
91
                    [% IF ( Koha.Preference('IntranetCatalogSearchPulldown') ) %]
92
                        [% INCLUDE 'search_indexes.inc' ms_kw = 1 refiner = 1 %]
93
                    [% END %]
94
                    <input name="limit" id="refiner" type="text" title="Search results" />
95
                    <input type="submit" id="refine" class="btn btn-primary btn-xs" value="Search" />
96
                </form>
97
            </div>
98
99
            <div class="searchheader sticky" id="searchheader">
100
                <div id="selection_ops">
101
                    <a href="#" class="btn btn-link" id="select_all"><i class="fa fa-check"></i> Select all</a>
102
                    <a href="#" class="btn btn-link" id="clear_all"><i class="fa fa-times"></i> Clear all</a>
103
                    |
104
                    [% IF Koha.Preference("StaffHighlightedWords") == 1 %]
105
                        <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
106
                        <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
107
                        |
108
                    [% END %]
84
                    [% END %]
109
85
110
                    [% IF (Koha.Preference("intranetbookbag")) %]
86
                    <div id="search_within_results">
111
                        <div class="btn-group">
87
                        <form method="get" id="refine_search">
112
                            <a id="cartsubmit" class="btn btn-default btn-xs" href="#"><i class="fa fa-shopping-cart"></i> Add to cart</a>
88
                            <label for="limit">Search within results</label>
113
                        </div>
89
                            [% IF ( Koha.Preference('IntranetCatalogSearchPulldown') ) %]
114
                    [% END %]
90
                                [% INCLUDE 'search_indexes.inc' ms_kw = 1 refiner = 1 %]
91
                            [% END %]
92
                            <input name="limit" id="refiner" type="text"  title="Search results">
93
                            <input type="submit" id="refine" class="btn btn-primary btn-xs" value="Search" />
94
                        </form>
95
                    </div>
115
96
116
                    [% IF Koha.Preference('virtualshelves') %]
97
                    <div class="searchheader sticky" id="searchheader">
117
                        <div class="btn-group">
98
                        <div id="selection_ops">
118
                            <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-list"></i> Add to list </button>
99
                            <a href="#" class="btn btn-link" id="select_all"><i class="fa fa-check"></i> Select all</a>
119
                            <ul class="dropdown-menu">
100
                            <a href="#" class="btn btn-link" id="clear_all"><i class="fa fa-times"></i> Clear all</a>
120
                                [% IF add_to_some_private_shelves.count %]
101
                            |
121
                                    <li><h6 class="dropdown-header">Your lists</h6></li>
102
                            [% IF Koha.Preference("StaffHighlightedWords") == 1 %]
122
                                    [% SET number_of_private_shelves = 0 %]
103
                                <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
123
                                    [% FOREACH s IN add_to_some_private_shelves %]
104
                                <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
124
                                        [% IF shelfnumber != s.shelfnumber %]
105
                                |
125
                                            <li>
106
                            [% END %]
126
                                                <a href="#" class="addtolist dropdown-item" data-shelfnumber="[% s.shelfnumber | html %]">[% s.shelfname | html %]</a>
107
127
                                            </li>
108
                            [% IF (Koha.Preference("intranetbookbag")) %]
128
                                            [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
109
                                <div class="btn-group">
129
                                            [% IF number_of_private_shelves == 10 %][% LAST %][% END %]
110
                                    <a id="cartsubmit" class="btn btn-default btn-xs" href="#"><i class="fa fa-shopping-cart"></i> Add to cart</a>
111
                                </div>
112
                            [% END %]
113
114
                            [% IF Koha.Preference('virtualshelves') %]
115
                                <div class="btn-group">
116
                                    <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
117
                                        <i class="fa fa-list"></i> Add to list
118
                                    </button>
119
                                    <ul class="dropdown-menu">
120
                                        [% IF add_to_some_private_shelves.count %]
121
                                            <li><h6 class="dropdown-header">Your lists</h6></li>
122
                                            [% SET number_of_private_shelves = 0 %]
123
                                            [% FOREACH s IN add_to_some_private_shelves %]
124
                                                [% IF shelfnumber != s.shelfnumber %]
125
                                                    <li>
126
                                                        <a href="#" class="addtolist dropdown-item" data-shelfnumber="[% s.shelfnumber | html %]">[% s.shelfname | html %]</a>
127
                                                    </li>
128
                                                    [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
129
                                                    [% IF number_of_private_shelves == 10 %][% LAST %][% END %]
130
                                                [% END %]
131
                                            [% END %]
130
                                        [% END %]
132
                                        [% END %]
131
                                    [% END %]
133
                                        [% IF add_to_some_public_shelves.count %]
132
                                [% END %]
134
                                            <li><h6 class="dropdown-header">Public lists</h6></li>
133
                                [% IF add_to_some_public_shelves.count %]
135
                                            [% SET number_of_public_shelves = 0 %]
134
                                    <li><h6 class="dropdown-header">Public lists</h6></li>
136
                                            [% FOREACH s IN add_to_some_public_shelves %]
135
                                    [% SET number_of_public_shelves = 0 %]
137
                                                [% IF shelfnumber != s.shelfnumber %]
136
                                    [% FOREACH s IN add_to_some_public_shelves %]
138
                                                    <li>
137
                                        [% IF shelfnumber != s.shelfnumber %]
139
                                                        <a class="addtolist dropdown-item" href="#" data-shelfnumber="[% s.shelfnumber | html %]">[% s.shelfname | html %]</a>
140
                                                    </li>
141
                                                    [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
142
                                                    [% IF number_of_public_shelves == 10 %][% LAST %][% END %]
143
                                                [% END %]
144
                                            [% END %]
145
                                        [% END %]
146
                                        <li><hr class="dropdown-divider"></li>
147
                                        [% IF add_to_some_private_shelves.count > 10 or add_to_some_public_shelves.count > 10 %]
138
                                            <li>
148
                                            <li>
139
                                                <a class="addtolist dropdown-item" href="#" data-shelfnumber="[% s.shelfnumber | html %]">[% s.shelfname | html %]</a>
149
                                                <a href="#" class="addtolist morelists dropdown-item">More lists</a>
140
                                            </li>
150
                                            </li>
141
                                            [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
142
                                            [% IF number_of_public_shelves == 10 %][% LAST %][% END %]
143
                                        [% END %]
151
                                        [% END %]
152
                                        <li>
153
                                            <a href="#" class="dropdown-item addtolist newlist dropdown-item">New list</a>
154
                                        </li>
155
                                    </ul>
156
                                </div>
157
                            [% END # /IF virtualshelves %]
158
159
                            [% IF ( CAN_user_reserveforothers_place_holds && DisplayMultiPlaceHold ) %]
160
                                [% IF ( holdfor or holdforclub ) %]
161
                                    <div id="placeholdc" class="btn-group">
162
                                        <button class="btn btn-default btn-xs placehold"><i class="fa-solid fa-bookmark"></i> Place hold</button>
163
                                        <button class="btn btn-default btn-xs dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
164
165
                                        </button>
166
                                        <ul class="dropdown-menu">
167
                                            <li><a href="#" class="placehold dropdown-item">Place hold</a></li>
168
                                            [% IF holdfor %]
169
                                            <li><a href="#" class="placeholdfor dropdown-item">Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 no_cardnumber => 1 %]</a></li>
170
                                                <li><hr class="dropdown-divider" /></li>
171
                                                <li><a class="dropdown-item" href="#" id="forgetholdfor">Forget [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 no_cardnumber => 1 %]</a></li>
172
                                            [% END %]
173
                                            [% IF holdforclub %]
174
                                                <li><a href="#" class="placeholdforclub dropdown-item">Place hold for [% holdforclub_name | html %]</a></li>
175
                                                <li><hr class="dropdown-divider" /></li>
176
                                                <li><a class="dropdown-item" href="#" id="forgetholdforclub">Forget  [% holdforclub_name | html %]</a></li>
177
                                            [% END %]
178
                                        </ul>
179
                                    </div>
180
                                [% ELSE %]
181
                                    <div id="placeholdc" class="btn-group">
182
                                        <a class="btn btn-default btn-xs placehold" href="#"><i class="fa-solid fa-bookmark"></i> Place hold</a>
183
                                    </div>
184
                                [% END # /IF holfor %]
185
                            [% END # /IF CAN_user_reserveforothers_place_holds %]
186
187
                            [% IF Koha.Preference('BrowseResultSelection') %]
188
                                <div id="browse_selection" class="btn-group">
189
                                    <a class="btn btn-default btn-xs browse_selection" href="#"><i class="fa-solid fa-note-sticky"></i> Browse selected records</a>
190
                                </div>
191
                            [% END %]
192
193
                            [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
194
                                <div class="btn-group">
195
                                    <a class="btn btn-default btn-xs" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50/SRU search</a>
196
                                </div>
197
198
                                <div class="btn-group">
199
                                    <button type="button" id="results_batch_ops" class="btn btn-default btn-xs dropdown-toggle disabled" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
200
                                        <i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit
201
                                    </button>
202
                                    [% IF ( CAN_user_tools_records_batchmod || CAN_user_tools_records_batchdel || CAN_user_editcatalogue_edit_catalogue ) %]
203
                                    <ul class="dropdown-menu">
204
                                        [% IF ( CAN_user_tools_records_batchmod ) %]
205
                                        <li><a class="results_batch_op dropdown-item" data-op="edit" href="#">Batch edit records</a></li>
206
                                        [% END %]
207
                                        [% IF ( CAN_user_tools_records_batchdel ) %]
208
                                        <li><a class="results_batch_op dropdown-item" data-op="delete" href="#">Batch delete records</a></li>
209
                                        [% END %]
210
                                        <li><a class="results_batch_op dropdown-item" data-op="merge" href="#">Merge records</a></li>
211
                                    </ul>
144
                                    [% END %]
212
                                    [% END %]
145
                                [% END %]
213
                                </div>
146
                                <li><hr class="dropdown-divider" /></li>
214
                            [% END %]
147
                                [% IF add_to_some_private_shelves.count > 10 or add_to_some_public_shelves.count > 10 %]
148
                                    <li>
149
                                        <a href="#" class="addtolist morelists dropdown-item">More lists</a>
150
                                    </li>
151
                                [% END %]
152
                                <li>
153
                                    <a href="#" class="dropdown-item addtolist newlist dropdown-item">New list</a>
154
                                </li>
155
                            </ul>
156
                        </div>
157
                    [% END # /IF virtualshelves %]
158
215
159
                    [% IF ( CAN_user_reserveforothers_place_holds && DisplayMultiPlaceHold ) %]
216
                            [% IF ( searchdesc ) %]
160
                        [% IF ( holdfor or holdforclub ) %]
217
                                [% BLOCK sort_search_query ~%]
161
                            <div id="placeholdc" class="btn-group">
218
                                    [%~ FOREACH QUERY_INPUT IN QUERY_INPUTS ~%]
162
                                <button class="btn btn-default btn-xs placehold"><i class="fa-solid fa-bookmark"></i> Place hold</button>
219
                                        &amp;[% QUERY_INPUT.input_name | uri %]=[% QUERY_INPUT.input_value | uri %]
163
                                <button class="btn btn-default btn-xs dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"> </button>
220
                                    [%~ END ~%]
221
                                    [%~ FOREACH LIMIT_INPUT IN LIMIT_INPUTS ~%]
222
                                        &amp;[% LIMIT_INPUT.input_name | uri %]=[% LIMIT_INPUT.input_value | uri %]
223
                                    [%~ END ~%]
224
                                [%~ END %]
225
                            [% END %]
226
227
                            <div class="btn-group">
228
                                <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
229
                                    Sort
230
                                </button>
164
                                <ul class="dropdown-menu">
231
                                <ul class="dropdown-menu">
165
                                    <li><a href="#" class="placehold dropdown-item">Place hold</a></li>
232
                                    [% IF ( sort_by == "relevance" ) %]
166
                                    [% IF holdfor %]
233
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=relevance[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Relevance</a></li>
167
                                        <li><a href="#" class="placeholdfor dropdown-item">Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 no_cardnumber => 1 %]</a></li>
234
                                    [% ELSE %]
168
                                        <li><hr class="dropdown-divider" /></li>
235
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=relevance[% PROCESS sort_search_query %]">Relevance</a></li>
169
                                        <li><a class="dropdown-item" href="#" id="forgetholdfor">Forget [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 no_cardnumber => 1 %]</a></li>
170
                                    [% END %]
236
                                    [% END %]
171
                                    [% IF holdforclub %]
237
                                    <li><h6 class="dropdown-header">Popularity</h6></li>
172
                                        <li><a href="#" class="placeholdforclub dropdown-item">Place hold for [% holdforclub_name | html %]</a></li>
238
                                    [% IF ( sort_by == "popularity_dsc" ) %]
173
                                        <li><hr class="dropdown-divider" /></li>
239
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=popularity_dsc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Popularity (most to least)</a></li>
174
                                        <li><a class="dropdown-item" href="#" id="forgetholdforclub">Forget [% holdforclub_name | html %]</a></li>
240
                                    [% ELSE %]
241
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=popularity_dsc[% PROCESS sort_search_query %]">Popularity (most to least)</a></li>
175
                                    [% END %]
242
                                    [% END %]
176
                                </ul>
177
                            </div>
178
                        [% ELSE %]
179
                            <div id="placeholdc" class="btn-group">
180
                                <a class="btn btn-default btn-xs placehold" href="#"><i class="fa-solid fa-bookmark"></i> Place hold</a>
181
                            </div>
182
                        [% END # /IF holfor %]
183
                    [% END # /IF CAN_user_reserveforothers_place_holds %]
184
243
185
                    [% IF Koha.Preference('BrowseResultSelection') %]
244
                                    [% IF ( sort_by == "popularity_asc" ) %]
186
                        <div id="browse_selection" class="btn-group">
245
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=popularity_asc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Popularity (least to most)</a></li>
187
                            <a class="btn btn-default btn-xs browse_selection" href="#"><i class="fa-solid fa-note-sticky"></i> Browse selected records</a>
246
                                    [% ELSE %]
188
                        </div>
247
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=popularity_asc[% PROCESS sort_search_query %]">Popularity (least to most)</a></li>
189
                    [% END %]
248
                                    [% END %]
190
249
191
                    [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
250
                                    <li><h6 class="dropdown-header">Author</h6></li>
192
                        <div class="btn-group">
193
                            <a class="btn btn-default btn-xs" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50/SRU search</a>
194
                        </div>
195
251
196
                        <div class="btn-group">
252
                                    [% IF ( sort_by == "author_az" || sort_by == "author_asc" ) %]
197
                            <button type="button" id="results_batch_ops" class="btn btn-default btn-xs dropdown-toggle disabled" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
253
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=author_a[% PROCESS sort_search_query %]z"><i class="fa fa-check"></i> Author (A-Z)</a></li>
198
                                <i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit
254
                                    [% ELSE %]
199
                            </button>
255
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=author_az[% PROCESS sort_search_query %]">Author (A-Z)</a></li>
200
                            [% IF ( CAN_user_tools_records_batchmod || CAN_user_tools_records_batchdel || CAN_user_editcatalogue_edit_catalogue ) %]
201
                                <ul class="dropdown-menu">
202
                                    [% IF ( CAN_user_tools_records_batchmod ) %]
203
                                        <li><a class="results_batch_op dropdown-item" data-op="edit" href="#">Batch edit records</a></li>
204
                                    [% END %]
256
                                    [% END %]
205
                                    [% IF ( CAN_user_tools_records_batchdel ) %]
257
206
                                        <li><a class="results_batch_op dropdown-item" data-op="delete" href="#">Batch delete records</a></li>
258
                                    [% IF ( sort_by == "author_za" || sort_by == "author_dsc" ) %]
259
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=author_za[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Author (Z-A)</a></li>
260
                                    [% ELSE %]
261
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=author_za[% PROCESS sort_search_query %]">Author (Z-A)</a></li>
207
                                    [% END %]
262
                                    [% END %]
208
                                    <li><a class="results_batch_op dropdown-item" data-op="merge" href="#">Merge records</a></li>
209
                                </ul>
210
                            [% END %]
211
                        </div>
212
                    [% END %]
213
263
214
                    [% IF ( searchdesc ) %]
264
                                    <li><h6 class="dropdown-header">Call number</h6></li>
215
                        [% BLOCK sort_search_query ~%]
216
                            [%~ FOREACH QUERY_INPUT IN QUERY_INPUTS ~%]
217
                                &amp;[% QUERY_INPUT.input_name | uri %]=[% QUERY_INPUT.input_value | uri %]
218
                            [%~ END ~%]
219
                            [%~ FOREACH LIMIT_INPUT IN LIMIT_INPUTS ~%]
220
                                &amp;[% LIMIT_INPUT.input_name | uri %]=[% LIMIT_INPUT.input_value | uri %]
221
                            [%~ END ~%]
222
                        [%~ END %]
223
                    [% END %]
224
265
225
                    <div class="btn-group">
266
                                    [% IF ( sort_by == "call_number_asc" ) %]
226
                        <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Sort </button>
267
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=call_number_asc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Call number (0-9 to A-Z)</a></li>
227
                        <ul class="dropdown-menu">
268
                                    [% ELSE %]
228
                            [% IF ( sort_by == "relevance" ) %]
269
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=call_number_asc[% PROCESS sort_search_query %]">Call number (0-9 to A-Z)</a></li>
229
                                <li
270
                                    [% END %]
230
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=relevance[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Relevance</a></li
231
                                >
232
                            [% ELSE %]
233
                                <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=relevance[% PROCESS sort_search_query %]">Relevance</a></li>
234
                            [% END %]
235
                            <li><h6 class="dropdown-header">Popularity</h6></li>
236
                            [% IF ( sort_by == "popularity_dsc" ) %]
237
                                <li
238
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=popularity_dsc[% PROCESS sort_search_query %]"
239
                                        ><i class="fa fa-check"></i> Popularity (most to least)</a
240
                                    ></li
241
                                >
242
                            [% ELSE %]
243
                                <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=popularity_dsc[% PROCESS sort_search_query %]">Popularity (most to least)</a></li>
244
                            [% END %]
245
271
246
                            [% IF ( sort_by == "popularity_asc" ) %]
272
                                    [% IF ( sort_by == "call_number_dsc" ) %]
247
                                <li
273
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=call_number_dsc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Call number (Z-A to 9-0)</a></li>
248
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=popularity_asc[% PROCESS sort_search_query %]"
274
                                    [% ELSE %]
249
                                        ><i class="fa fa-check"></i> Popularity (least to most)</a
275
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=call_number_dsc[% PROCESS sort_search_query %]">Call number (Z-A to 9-0)</a></li>
250
                                    ></li
276
                                    [% END %]
251
                                >
252
                            [% ELSE %]
253
                                <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=popularity_asc[% PROCESS sort_search_query %]">Popularity (least to most)</a></li>
254
                            [% END %]
255
277
256
                            <li><h6 class="dropdown-header">Author</h6></li>
278
                                    <li><h6 class="dropdown-header">Dates</h6></li>
279
                                    [% IF ( sort_by == "pubdate_dsc" ) %]
280
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=pubdate_dsc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Publication/Copyright date: newest to oldest</a></li>
281
                                    [% ELSE %]
282
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=pubdate_dsc[% PROCESS sort_search_query %]">Publication/Copyright date: newest to oldest</a></li>
283
                                    [% END %]
257
284
258
                            [% IF ( sort_by == "author_az" || sort_by == "author_asc" ) %]
285
                                    [% IF ( sort_by == "pubdate_asc" ) %]
259
                                <li
286
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=pubdate_asc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Publication/Copyright date: oldest to newest</a></li>
260
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=author_a[% PROCESS sort_search_query %]z"><i class="fa fa-check"></i> Author (A-Z)</a></li
287
                                    [% ELSE %]
261
                                >
288
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=pubdate_asc[% PROCESS sort_search_query %]">Publication/Copyright date: oldest to newest</a></li>
262
                            [% ELSE %]
289
                                    [% END %]
263
                                <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=author_az[% PROCESS sort_search_query %]">Author (A-Z)</a></li>
264
                            [% END %]
265
290
266
                            [% IF ( sort_by == "author_za" || sort_by == "author_dsc" ) %]
291
                                    [% IF ( sort_by == "acqdate_dsc" ) %]
267
                                <li
292
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=acqdate_dsc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Acquisition date: newest to oldest</a></li>
268
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=author_za[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Author (Z-A)</a></li
293
                                    [% ELSE %]
269
                                >
294
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=acqdate_dsc[% PROCESS sort_search_query %]">Acquisition date: newest to oldest</a></li>
270
                            [% ELSE %]
295
                                    [% END %]
271
                                <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=author_za[% PROCESS sort_search_query %]">Author (Z-A)</a></li>
272
                            [% END %]
273
296
274
                            <li><h6 class="dropdown-header">Call number</h6></li>
297
                                    [% IF ( sort_by == "acqdate_asc" ) %]
298
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=acqdate_asc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Acquisition date: oldest to newest</a></li>
299
                                    [% ELSE %]
300
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=acqdate_asc[% PROCESS sort_search_query %]">Acquisition date: oldest to newest</a></li>
301
                                    [% END %]
275
302
276
                            [% IF ( sort_by == "call_number_asc" ) %]
303
                                    <li><h6 class="dropdown-header">Title</h6></li>
277
                                <li
304
                                    [% IF ( sort_by == "title_az" || sort_by == "title_asc" ) %]
278
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=call_number_asc[% PROCESS sort_search_query %]"
305
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=title_az[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Title (A-Z)</a></li>
279
                                        ><i class="fa fa-check"></i> Call number (0-9 to A-Z)</a
306
                                    [% ELSE %]
280
                                    ></li
307
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=title_az[% PROCESS sort_search_query %]">Title (A-Z)</a></li>
281
                                >
308
                                    [% END %]
282
                            [% ELSE %]
283
                                <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=call_number_asc[% PROCESS sort_search_query %]">Call number (0-9 to A-Z)</a></li>
284
                            [% END %]
285
309
286
                            [% IF ( sort_by == "call_number_dsc" ) %]
310
                                    [% IF ( sort_by == "title_za" || sort_by == "title_dsc" ) %]
287
                                <li
311
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=title_za[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Title (Z-A)</a></li>
288
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=call_number_dsc[% PROCESS sort_search_query %]"
312
                                    [% ELSE %]
289
                                        ><i class="fa fa-check"></i> Call number (Z-A to 9-0)</a
313
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=title_za[% PROCESS sort_search_query %]">Title (Z-A)</a></li>
290
                                    ></li
314
                                    [% END %]
291
                                >
315
                                </ul>
292
                            [% ELSE %]
316
                            </div> <!-- /.btn-group -->
293
                                <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=call_number_dsc[% PROCESS sort_search_query %]">Call number (Z-A to 9-0)</a></li>
317
318
                            [% IF Koha.Preference('numSearchResultsDropdown') %]
319
                                <div class="btn-group">
320
                                    <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
321
                                        Results per page: [% results_per_page | html %]
322
                                    </button>
323
                                    <ul class="dropdown-menu">
324
                                        [% IF Koha.Preference('numSearchResults') %]
325
                                            <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% Koha.Preference('numSearchResults') | uri %][% PROCESS sort_search_query %]" id="resultsperpage-default">
326
                                                [% IF results_per_page == Koha.Preference('numSearchResults') %]
327
                                                    <i class="fa fa-check"></i>
328
                                                [% END %] [% Koha.Preference('numSearchResults') | html %] (default)
329
                                            </a></li>
330
                                        [% END %]
331
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=20[% PROCESS sort_search_query %]">[% IF results_per_page == '20' %]<i class="fa fa-check"></i>[% END %] 20</a></li>
332
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=40[% PROCESS sort_search_query %]" id="resultsperpage-40">[% IF results_per_page == '40' %]<i class="fa fa-check"></i>[% END %] 40</a></li>
333
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=60[% PROCESS sort_search_query %]" id="resultsperpage-60">[% IF results_per_page == '60' %]<i class="fa fa-check"></i>[% END %] 60</a></li>
334
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=80[% PROCESS sort_search_query %]" id="resultsperpage-80">[% IF results_per_page == '80' %]<i class="fa fa-check"></i>[% END %] 80</a></li>
335
                                        <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=100[% PROCESS sort_search_query %]" id="resultsperpage-100">[% IF results_per_page == '100' %]<i class="fa fa-check"></i>[% END %] 100</a></li>
336
                                    </ul>
337
                                </div> <!-- /.btn-group -->
294
                            [% END %]
338
                            [% END %]
295
339
296
                            <li><h6 class="dropdown-header">Dates</h6></li>
340
                        </div> <!-- /#selection_ops -->
297
                            [% IF ( sort_by == "pubdate_dsc" ) %]
341
                        <form id="build_batch_record_modification" method="post" action="/cgi-bin/koha/tools/batch_record_modification.pl">
298
                                <li
342
                            [% INCLUDE 'csrf-token.inc' %]
299
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=pubdate_dsc[% PROCESS sort_search_query %]"
343
                            <input type="hidden" name="recordtype" value="biblio">
300
                                        ><i class="fa fa-check"></i> Publication/Copyright date: newest to oldest</a
344
                            <input type="hidden" name="op" value="cud-list">
301
                                    ></li
345
                            <textarea id="recordnumber_list" name="bib_list" style="display:none"></textarea>
302
                                >
346
                        </form>
303
                            [% ELSE %]
347
                    </div> <!-- /#searchheader -->
304
                                <li
348
                [% END %]
305
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=pubdate_dsc[% PROCESS sort_search_query %]"
306
                                        >Publication/Copyright date: newest to oldest</a
307
                                    ></li
308
                                >
309
                            [% END %]
310
349
311
                            [% IF ( sort_by == "pubdate_asc" ) %]
350
                [% ELSE # /IF total %]
312
                                <li
351
                    <div id="toolbar" class="btn-toolbar fz3950bigrpad" style="background-color:transparent">
313
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=pubdate_asc[% PROCESS sort_search_query %]"
352
                        <div>
314
                                        ><i class="fa fa-check"></i> Publication/Copyright date: oldest to newest</a
353
                            <a class="btn btn-default" type="button" id="z3950submit"><i class="fa fa-search"></i> Z39.50/SRU search</a>
315
                                    ></li
354
                        </div>
316
                                >
355
                    </div>
317
                            [% ELSE %]
318
                                <li
319
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=pubdate_asc[% PROCESS sort_search_query %]"
320
                                        >Publication/Copyright date: oldest to newest</a
321
                                    ></li
322
                                >
323
                            [% END %]
324
356
325
                            [% IF ( sort_by == "acqdate_dsc" ) %]
326
                                <li
327
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=acqdate_dsc[% PROCESS sort_search_query %]"
328
                                        ><i class="fa fa-check"></i> Acquisition date: newest to oldest</a
329
                                    ></li
330
                                >
331
                            [% ELSE %]
332
                                <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=acqdate_dsc[% PROCESS sort_search_query %]">Acquisition date: newest to oldest</a></li>
333
                            [% END %]
334
357
335
                            [% IF ( sort_by == "acqdate_asc" ) %]
358
                    <div id="searchheader">
336
                                <li
359
                        <h3>No results found</h3>
337
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=acqdate_asc[% PROCESS sort_search_query %]"
360
                        [% IF ( searchdesc ) %]
338
                                        ><i class="fa fa-check"></i> Acquisition date: oldest to newest</a
361
                            <p>
339
                                    ></li
362
                                No results match your search [% IF ( query_desc ) %]for <span style="font-weight: bold;">'[% query_desc | html %]'</span>[% END %][% IF ( limit_desc ) %]&nbsp;with limit(s): <span style="font-weight: bold;">'[% limit_desc | html %]'</span>[% END %][% IF ( LibraryName ) %] in [% LibraryName | html %] Catalog[% END %].
340
                                >
363
                            </p>
341
                            [% ELSE %]
364
                            [% IF CAN_user_acquisition_order_manage && searchtoorder_basketno && searchtoorder_vendorid %][%# Coming from the basket or vendor view %]
342
                                <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=acqdate_asc[% PROCESS sort_search_query %]">Acquisition date: oldest to newest</a></li>
365
                                <p><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% searchtoorder_basketno | uri %]">View basket</a></p>
343
                            [% END %]
366
                            [% END %]
344
367
                            <!-- prettier-ignore-start -->
345
                            <li><h6 class="dropdown-header">Title</h6></li>
368
                            <a href="/cgi-bin/koha/catalogue/search.pl?advsearch=1&edit_search=1&[% query_cgi | $raw %]&[% limit_cgi | $raw %]&sort_by=[% sort_by | uri %]">Edit this search</a>
346
                            [% IF ( sort_by == "title_az" || sort_by == "title_asc" ) %]
369
                            <!-- prettier-ignore-end -->
347
                                <li
370
                            [% IF ( Koha.Preference('SavedSearchFilters') && CAN_user_parameters_manage_search_filters ) %]
348
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=title_az[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Title (A-Z)</a></li
371
                                | <a href="#" id="save_search_filter">Save search as filter</a>
349
                                >
350
                            [% ELSE %]
351
                                <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=title_az[% PROCESS sort_search_query %]">Title (A-Z)</a></li>
352
                            [% END %]
372
                            [% END %]
373
                        [% ELSE %]
374
                            <p>You did not specify any search criteria.</p>
375
                        [% END %]
376
                    </div>
377
                [% END # /IF total %]
378
379
                [% IF ( query_error ) %]
380
                    <div class="alert alert-warning"><p><strong>Error:</strong> [% query_error | html %]</p></div>
381
                [% END %]
353
382
354
                            [% IF ( sort_by == "title_za" || sort_by == "title_dsc" ) %]
383
                <!-- Search Results Table -->
355
                                <li
384
                [% IF ( total ) %]
356
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=title_za[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Title (Z-A)</a></li
385
                    [% IF ( scan ) %]
357
                                >
386
                    <div class="page-section">
387
                        <h2>Scan index</h2>
388
                        <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
389
                           <label for="scan-index">Scan index:</label>
390
                            <select name="idx" id="scan-index">
391
                                [% IF ( header_pulldown == "" ) %]<option selected="selected" value="">Any word</option>
392
                                [% ELSE %]<option selected="selected" value="">Any word</option>[% END %]
393
                                [% IF ( header_pulldown == "ms_anycommaphr" ) %]<option selected="selected" value="any,phr">Any phrase</option>
394
                                [% ELSE %]<option value="any,phr">Any phrase</option>[% END %]
395
                                [% IF ( header_pulldown == "ms_ti" ) %]<option selected="selected" value="ti">Title</option>
396
                                [% ELSE %]<option value="ti">Title</option>[% END %]
397
                                [% IF ( header_pulldown == "ms_ticommaphr" ) %]<option selected="selected" value="ti,phr">Title phrase</option>
398
                                [% ELSE %]<option value="ti,phr">Title phrase</option>[% END %]
399
                                [% IF ( header_pulldown == ( "ms_au" || "ms_aucommaphr" ) ) %]<option selected="selected" value="au,phr">Author</option>
400
                                [% ELSE %]<option value="au,phr">Author</option>[% END %]
401
                                [% IF ( header_pulldown == "ms_su" ) %]<option selected="selected" value="su">Subject</option>
402
                                [% ELSE %]<option value="su">Subject</option>[% END %]
403
                                [% IF ( header_pulldown == "ms_sucommaphr" ) %]<option selected="selected" value="su,phr">Subject phrase</option>
404
                                [% ELSE %]<option value="su,phr">Subject phrase</option>[% END %]
405
                                [% IF ( header_pulldown ==  "ms_se" ) %]<option selected="selected" value="se">Series</option>
406
                                [% ELSE %]<option value="se">Series</option>[% END %]
407
                                [% IF ( header_pulldown ==  "ms_pb" ) %]<option selected="selected" value="pb">Publisher</option>
408
                                [% ELSE %]<option value="pb">Publisher</option>[% END %]
409
                                [% IF ( header_pulldown ==  "ms_nt" ) %]<option selected="selected" value="nt">Notes</option>
410
                                [% ELSE %]<option value="nt">Notes</option>[% END %]
411
                                [% IF ( header_pulldown ==  "ms_sn" ) %]<option selected="selected" value="sn">ISBN</option>
412
                                [% ELSE %]<option value="sn">ISBN</option>[% END %]
413
                                [% IF ( header_pulldown ==  "ms_ss" ) %]<option selected="selected" value="ss">ISSN</option>
414
                                [% ELSE %]<option value="ss">ISSN</option>[% END %]
415
                                [% IF ( header_pulldown ==  "ms_callnum" ) %]<option selected="selected" value="callnum">Call number</option>
416
                                [% ELSE %]<option value="callnum">Call number</option>[% END %]
417
                            </select>
418
                            [% IF ( scan_search_term_to_use ) %]
419
                                 <input type="text" name="q" id="scan-index-term" size="35" value="[% scan_search_term_to_use | html %]" />
358
                            [% ELSE %]
420
                            [% ELSE %]
359
                                <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=title_za[% PROCESS sort_search_query %]">Title (Z-A)</a></li>
421
                                Scan index for: <input type="text" name="q" id="scan-index-term" size="35" value="" />
360
                            [% END %]
422
                            [% END %]
361
                        </ul>
423
                            <input type="hidden" name="scan" value="1" />
424
                            <input class="submit" type="submit" value="Submit" />
425
                        </form>
426
427
                        <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
428
                            <table>
429
                                <tr>
430
                                    <th>Term/Phrase</th>
431
                                    <th>Count</th>
432
                                </tr>
433
                                [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
434
                                    <tr>
435
                                        <td>
436
                                            <a href="/cgi-bin/koha/catalogue/search.pl?idx=[% scan_index_to_use | uri %]&amp;q=[% SEARCH_RESULT.scan_use |url %]&quot;[% SEARCH_RESULT.title | uri %]&quot;">[% SEARCH_RESULT.title | html %]</a>
437
                                        </td>
438
                                        <td>
439
                                            [% SEARCH_RESULT.author | html %]
440
                                        </td>
441
                                    </tr>
442
                                [% END %]
443
                            </table>
444
                        </form>
362
                    </div>
445
                    </div>
363
                    <!-- /.btn-group -->
446
                    [% ELSE # /IF scan %]
364
447
365
                    [% IF Koha.Preference('numSearchResultsDropdown') %]
448
                        <div id="searchresults">
366
                        <div class="btn-group">
449
                            [% INCLUDE 'page-numbers.inc' %]
367
                            <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Results per page: [% results_per_page | html %] </button>
450
                            <button href="#" id="toggleitems" class="btn btn-primary btn-xs" style="float: right;">Show local items only</button>
368
                            <ul class="dropdown-menu">
451
                            <form action="/cgi-bin/koha/catalogue/search.pl" method="get" name="bookbag_form" id="bookbag_form">
369
                                [% IF Koha.Preference('numSearchResults') %]
452
                                [% IF ( searchdesc ) %]
370
                                    <li
453
                                    [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
371
                                        ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=[% Koha.Preference('numSearchResults') | uri %][% PROCESS sort_search_query %]" id="resultsperpage-default">
454
                                        <input type="hidden" name="[% QUERY_INPUT.input_name | html %]" value="[% QUERY_INPUT.input_value | html %]"/>
372
                                            [% IF results_per_page == Koha.Preference('numSearchResults') %]
455
                                    [% END %]
373
                                                <i class="fa fa-check"></i>
456
                                    [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
374
                                            [% END %]
457
                                        <input type="hidden" name="[% LIMIT_INPUT.input_name | html %]" value="[% LIMIT_INPUT.input_value | html %]"/>
375
                                            [% Koha.Preference('numSearchResults') | html %]
458
                                    [% END %]
376
                                            (default)
377
                                        </a></li
378
                                    >
379
                                [% END %]
459
                                [% END %]
380
                                <li><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=20[% PROCESS sort_search_query %]">[% IF results_per_page == '20' %]<i class="fa fa-check"></i>[% END %] 20</a></li>
460
381
                                <li
461
                                <!-- TABLE RESULTS START -->
382
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=40[% PROCESS sort_search_query %]" id="resultsperpage-40"
462
                                <table>
383
                                        >[% IF results_per_page == '40' %]<i class="fa fa-check"></i>[% END %] 40</a
463
                                    <thead>
384
                                    ></li
464
                                    <tr>
385
                                >
465
                                        [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
386
                                <li
466
                                            <th>&nbsp;</th>
387
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=60[% PROCESS sort_search_query %]" id="resultsperpage-60"
467
                                        [% END %]
388
                                        >[% IF results_per_page == '60' %]<i class="fa fa-check"></i>[% END %] 60</a
468
                                        <th colspan="2">Results</th>
389
                                    ></li
469
                                        <th>Location</th>
390
                                >
470
                                    </tr>
391
                                <li
471
                                    </thead>
392
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=80[% PROCESS sort_search_query %]" id="resultsperpage-80"
472
                                    <!-- Actual Search Results -->
393
                                        >[% IF results_per_page == '80' %]<i class="fa fa-check"></i>[% END %] 80</a
473
                                    [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
394
                                    ></li
474
                                    <tbody>
395
                                >
475
                                    [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
396
                                <li
476
                                        <tr id="row[% SEARCH_RESULT.biblionumber | html %]">
397
                                    ><a class="dropdown-item" href="/cgi-bin/koha/catalogue/search.pl?count=100[% PROCESS sort_search_query %]" id="resultsperpage-100"
477
                                            [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
398
                                        >[% IF results_per_page == '100' %]<i class="fa fa-check"></i>[% END %] 100</a
478
    <td class="bookcoverimg">
399
                                    ></li
479
        <div id="cover-slides-[% SEARCH_RESULT.biblionumber | html %]" class="cover-slides" data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]" data-isbn="[% To.json(SEARCH_RESULT.normalized_isbn) | $raw %]" data-processedbiblio="[% PROCESS biblio_a_href biblionumber => SEARCH_RESULT.biblionumber | $raw %]">
400
                                >
480
            [% IF ( LocalCoverImages && SEARCH_RESULT.has_local_cover_image ) %]
401
                            </ul>
481
                <div id="local-coverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image local-coverimg">
482
                    <a href="[% PROCESS biblio_a_href biblionumber => SEARCH_RESULT.biblionumber %]">
483
                        <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&amp;biblionumber=[% SEARCH_RESULT.biblionumber | uri %]" alt="Local cover image" />
484
                    </a>
485
                    <div class="hint">Local cover image</div>
486
                </div>
487
            [% END %]
488
489
            [% IF ( AmazonCoverImages && SEARCH_RESULT.normalized_isbn ) %]
490
                <div id="amazon-bookcoverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image amazon-bookcoverimg">
491
                    <a href="[% PROCESS biblio_a_href biblionumber => SEARCH_RESULT.biblionumber %]">
492
                        <img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn | html %].01.TZZZZZZZ.jpg" alt="Cover image from Amazon.com" />
493
                    </a>
494
                    <div class="hint">Amazon cover image</div>
495
                </div>
496
            [% END # /IF AmazonCoverImages %]
497
498
            [% IF ( SyndeticsCovers ) %]
499
                    [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %]
500
                        <div id="syndetics-bookcoverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image syndetics-bookcoverimg">
501
                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">
502
                                <img src="https://secure.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn | html %]/[% SyndeticsCoverImageSize | uri %].GIF&amp;client=[% Koha.Preference('SyndeticsClientCode') | html %]&amp;type=xw10&amp;upc=[% SEARCH_RESULT.normalized_upc | html %]&amp;oclc=[% SEARCH_RESULT.normalized_oclc | html %]" alt="Cover from Syndetics" />
503
                            </a>
504
                            <div class="hint">Syndetics cover image</div>
402
                        </div>
505
                        </div>
403
                        <!-- /.btn-group -->
404
                    [% END %]
506
                    [% END %]
405
                </div>
507
            [% END %]
406
                <!-- /#selection_ops -->
407
                <form id="build_batch_record_modification" method="post" action="/cgi-bin/koha/tools/batch_record_modification.pl">
408
                    [% INCLUDE 'csrf-token.inc' %]
409
                    <input type="hidden" name="recordtype" value="biblio" />
410
                    <input type="hidden" name="op" value="cud-list" />
411
                    <textarea id="recordnumber_list" name="bib_list" style="display:none"></textarea>
412
                </form>
413
            </div>
414
            <!-- /#searchheader -->
415
        [% END %]
416
    [% ELSE # /IF total %]
417
        <div id="toolbar" class="btn-toolbar fz3950bigrpad" style="background-color:transparent">
418
            <div>
419
                <a class="btn btn-default" type="button" id="z3950submit"><i class="fa fa-search"></i> Z39.50/SRU search</a>
420
            </div>
421
        </div>
422
508
423
        <div id="searchheader">
509
            [% IF ( IntranetCoce && CoceProviders && SEARCH_RESULT.normalized_isbn ) %]
424
            <h3>No results found</h3>
510
                [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
425
            [% IF ( searchdesc ) %]
511
                [% IF ( coce_id ) %]
426
                <p>
512
                    <div id="coce-coverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image coce-coverimg">
427
                    No results match your search
513
                        <a href="[% PROCESS biblio_a_href biblionumber => SEARCH_RESULT.biblionumber %]">
428
                    [% IF ( query_desc ) %]for <span style="font-weight: bold;">'[% query_desc | html %]'</span>[% END %][% IF ( limit_desc ) %]
514
                            <span style="block" title="[% SEARCH_RESULT.biblionumber | url %]" class="[% coce_id | html %]" id="coce-thumbnail[% SEARCH_RESULT.biblionumber | html %]"></span>
429
                        &nbsp;with limit(s): <span style="font-weight: bold;">'[% limit_desc | html %]'</span>
515
                        </a>
430
                    [% END %][% IF ( LibraryName ) %]in [% LibraryName | html %] Catalog[% END %].
516
                        <div class="hint">Coce cover image</div>
431
                </p>
517
                    </div>
432
                [% IF CAN_user_acquisition_order_manage && searchtoorder_basketno && searchtoorder_vendorid %]
433
                    [%# Coming from the basket or vendor view %]
434
                    <p><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% searchtoorder_basketno | uri %]">View basket</a></p>
435
                [% END %]
518
                [% END %]
436
                <!-- prettier-ignore-start -->
519
            [% END %]
437
                            <a href="/cgi-bin/koha/catalogue/search.pl?advsearch=1&edit_search=1&[% query_cgi | $raw %]&[% limit_cgi | $raw %]&sort_by=[% sort_by | uri %]">Edit this search</a>
520
438
                            <!-- prettier-ignore-end -->
521
            [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
439
                [% IF ( Koha.Preference('SavedSearchFilters') && CAN_user_parameters_manage_search_filters ) %]
522
                [% SET custom_cover_image_url = SEARCH_RESULT.biblio_object.custom_cover_image_url %]
440
                    | <a href="#" id="save_search_filter">Save search as filter</a>
523
                [% IF custom_cover_image_url %]
524
                    <div id="custom-coverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image custom-coverimg">
525
                        <a class="custom_cover_image" href="[% custom_cover_image_url | url %]">
526
                            <img alt="Custom cover image" src="[% custom_cover_image_url | url %]" />
527
                        </a>
528
                        <div class="hint">Custom cover image</div>
529
                    </div>
441
                [% END %]
530
                [% END %]
442
            [% ELSE %]
443
                <p>You did not specify any search criteria.</p>
444
            [% END %]
531
            [% END %]
445
        </div>
532
        </div>
446
    [% END # /IF total %]
533
    </td>
447
534
[% END # /IF( AmazonCoverImages || LocalCoverImages || IntranetCoce )%]
448
    [% IF ( query_error ) %]
535
449
        <div class="alert alert-warning"
536
                                            <td>
450
            ><p><strong>Error:</strong> [% query_error | html %]</p></div
537
                                                <input type="checkbox" class="selection" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" style="display:none" />
451
        >
538
                                            </td>
452
    [% END %]
539
453
540
                                            <td>
454
    <!-- Search Results Table -->
541
                                                [% IF ( !item_level_itypes ) || Koha.Preference('BiblioItemtypeInfo') %]
455
    [% IF ( total ) %]
542
                                                    <div class="result-biblio-itemtype">
456
        [% IF ( scan ) %]
543
                                                        [% IF !noItemTypeImages && SEARCH_RESULT.imageurl %]
457
            <div class="page-section">
544
                                                            <img class="itemtype-image" src="[% SEARCH_RESULT.imageurl | html %]" alt="[%  SEARCH_RESULT.description | html %]" />
458
                <h2>Scan index</h2>
545
                                                        [% END %]
459
                <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
546
                                                        <span class="itypetext">[% SEARCH_RESULT.description | html %]</span>
460
                    <label for="scan-index">Scan index:</label>
461
                    <select name="idx" id="scan-index">
462
                        [% IF ( header_pulldown == "" ) %]
463
                            <option selected="selected" value="">Any word</option>
464
                        [% ELSE %]
465
                            <option selected="selected" value="">Any word</option>
466
                        [% END %]
467
                        [% IF ( header_pulldown == "ms_anycommaphr" ) %]
468
                            <option selected="selected" value="any,phr">Any phrase</option>
469
                        [% ELSE %]
470
                            <option value="any,phr">Any phrase</option>
471
                        [% END %]
472
                        [% IF ( header_pulldown == "ms_ti" ) %]
473
                            <option selected="selected" value="ti">Title</option>
474
                        [% ELSE %]
475
                            <option value="ti">Title</option>
476
                        [% END %]
477
                        [% IF ( header_pulldown == "ms_ticommaphr" ) %]
478
                            <option selected="selected" value="ti,phr">Title phrase</option>
479
                        [% ELSE %]
480
                            <option value="ti,phr">Title phrase</option>
481
                        [% END %]
482
                        [% IF ( header_pulldown == ( "ms_au" || "ms_aucommaphr" ) ) %]
483
                            <option selected="selected" value="au,phr">Author</option>
484
                        [% ELSE %]
485
                            <option value="au,phr">Author</option>
486
                        [% END %]
487
                        [% IF ( header_pulldown == "ms_su" ) %]
488
                            <option selected="selected" value="su">Subject</option>
489
                        [% ELSE %]
490
                            <option value="su">Subject</option>
491
                        [% END %]
492
                        [% IF ( header_pulldown == "ms_sucommaphr" ) %]
493
                            <option selected="selected" value="su,phr">Subject phrase</option>
494
                        [% ELSE %]
495
                            <option value="su,phr">Subject phrase</option>
496
                        [% END %]
497
                        [% IF ( header_pulldown ==  "ms_se" ) %]
498
                            <option selected="selected" value="se">Series</option>
499
                        [% ELSE %]
500
                            <option value="se">Series</option>
501
                        [% END %]
502
                        [% IF ( header_pulldown ==  "ms_pb" ) %]
503
                            <option selected="selected" value="pb">Publisher</option>
504
                        [% ELSE %]
505
                            <option value="pb">Publisher</option>
506
                        [% END %]
507
                        [% IF ( header_pulldown ==  "ms_nt" ) %]
508
                            <option selected="selected" value="nt">Notes</option>
509
                        [% ELSE %]
510
                            <option value="nt">Notes</option>
511
                        [% END %]
512
                        [% IF ( header_pulldown ==  "ms_sn" ) %]
513
                            <option selected="selected" value="sn">ISBN</option>
514
                        [% ELSE %]
515
                            <option value="sn">ISBN</option>
516
                        [% END %]
517
                        [% IF ( header_pulldown ==  "ms_ss" ) %]
518
                            <option selected="selected" value="ss">ISSN</option>
519
                        [% ELSE %]
520
                            <option value="ss">ISSN</option>
521
                        [% END %]
522
                        [% IF ( header_pulldown ==  "ms_callnum" ) %]
523
                            <option selected="selected" value="callnum">Call number</option>
524
                        [% ELSE %]
525
                            <option value="callnum">Call number</option>
526
                        [% END %]
527
                    </select>
528
                    [% IF ( scan_search_term_to_use ) %]
529
                        <input type="text" name="q" id="scan-index-term" size="35" value="[% scan_search_term_to_use | html %]" />
530
                    [% ELSE %]
531
                        Scan index for: <input type="text" name="q" id="scan-index-term" size="35" value="" />
532
                    [% END %]
533
                    <input type="hidden" name="scan" value="1" />
534
                    <input class="submit" type="submit" value="Submit" />
535
                </form>
536
537
                <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
538
                    <table>
539
                        <tr>
540
                            <th>Term/Phrase</th>
541
                            <th>Count</th>
542
                        </tr>
543
                        [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
544
                            <tr>
545
                                <td>
546
                                    <a href='/cgi-bin/koha/catalogue/search.pl?idx=[% scan_index_to_use | uri %]&amp;q=[% SEARCH_RESULT.scan_use |url %]"[% SEARCH_RESULT.title | uri %]"'>[% SEARCH_RESULT.title | html %]</a>
547
                                </td>
548
                                <td> [% SEARCH_RESULT.author | html %] </td>
549
                            </tr>
550
                        [% END %]
551
                    </table>
552
                </form>
553
            </div>
554
        [% ELSE # /IF scan %]
555
            <div id="searchresults">
556
                [% INCLUDE 'page-numbers.inc' %]
557
558
                <form action="/cgi-bin/koha/catalogue/search.pl" method="get" name="bookbag_form" id="bookbag_form">
559
                    [% IF ( searchdesc ) %]
560
                        [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
561
                            <input type="hidden" name="[% QUERY_INPUT.input_name | html %]" value="[% QUERY_INPUT.input_value | html %]" />
562
                        [% END %]
563
                        [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
564
                            <input type="hidden" name="[% LIMIT_INPUT.input_name | html %]" value="[% LIMIT_INPUT.input_value | html %]" />
565
                        [% END %]
566
                    [% END %]
567
568
                    <!-- TABLE RESULTS START -->
569
                    <table>
570
                        <thead>
571
                            <tr>
572
                                [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
573
                                    <th>&nbsp;</th>
574
                                [% END %]
575
                                <th colspan="2">Results</th>
576
                                <th>Location</th>
577
                            </tr>
578
                        </thead>
579
                        <!-- Actual Search Results -->
580
                        [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
581
                        <tbody>
582
                            [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
583
                                <tr id="row[% SEARCH_RESULT.biblionumber | html %]">
584
                                    [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
585
                                        <td class="bookcoverimg">
586
                                            <div
587
                                                id="cover-slides-[% SEARCH_RESULT.biblionumber | html %]"
588
                                                class="cover-slides"
589
                                                data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]"
590
                                                data-isbn="[% To.json(SEARCH_RESULT.normalized_isbn) | $raw %]"
591
                                                data-processedbiblio="[% PROCESS biblio_a_href biblionumber => SEARCH_RESULT.biblionumber | $raw %]"
592
                                            >
593
                                                [% IF ( LocalCoverImages && SEARCH_RESULT.has_local_cover_image ) %]
594
                                                    <div id="local-coverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image local-coverimg">
595
                                                        <a href="[% PROCESS biblio_a_href biblionumber => SEARCH_RESULT.biblionumber %]">
596
                                                            <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&amp;biblionumber=[% SEARCH_RESULT.biblionumber | uri %]" alt="Local cover image" />
597
                                                        </a>
598
                                                        <div class="hint">Local cover image</div>
599
                                                    </div>
547
                                                    </div>
600
                                                [% END %]
548
                                                [% END %]
601
549
602
                                                [% IF ( AmazonCoverImages && SEARCH_RESULT.normalized_isbn ) %]
550
                                                [% SEARCH_RESULT.result_number | html %].
603
                                                    <div id="amazon-bookcoverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image amazon-bookcoverimg">
551
                                                [% SEARCH_RESULT.XSLTResultsRecord | $raw %]
604
                                                        <a href="[% PROCESS biblio_a_href biblionumber => SEARCH_RESULT.biblionumber %]">
605
                                                            <img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn | html %].01.TZZZZZZZ.jpg" alt="Cover image from Amazon.com" />
606
                                                        </a>
607
                                                        <div class="hint">Amazon cover image</div>
608
                                                    </div>
609
                                                [% END # /IF AmazonCoverImages %]
610
611
                                                [% IF ( SyndeticsCovers ) %]
612
                                                    [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %]
613
                                                        <div id="syndetics-bookcoverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image syndetics-bookcoverimg">
614
                                                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">
615
                                                                <img
616
                                                                    src="https://secure.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn | html %]/[% SyndeticsCoverImageSize | uri %].GIF&amp;client=[% Koha.Preference('SyndeticsClientCode') | html %]&amp;type=xw10&amp;upc=[% SEARCH_RESULT.normalized_upc | html %]&amp;oclc=[% SEARCH_RESULT.normalized_oclc | html %]"
617
                                                                    alt="Cover from Syndetics"
618
                                                                />
619
                                                            </a>
620
                                                            <div class="hint">Syndetics cover image</div>
621
                                                        </div>
622
                                                    [% END %]
623
                                                [% END %]
624
552
625
                                                [% IF ( IntranetCoce && CoceProviders && SEARCH_RESULT.normalized_isbn ) %]
553
                                                <p class="hold">
626
                                                    [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
554
                                                    [% IF ( SEARCH_RESULT.norequests ) %]
627
                                                    [% IF ( coce_id ) %]
555
                                                        <span class="noholdstext">No holds allowed</span>
628
                                                        <div id="coce-coverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image coce-coverimg">
556
                                                    [% ELSE %]
629
                                                            <a href="[% PROCESS biblio_a_href biblionumber => SEARCH_RESULT.biblionumber %]">
557
                                                        [% IF CAN_user_reserveforothers_place_holds %]
630
                                                                <span style="block" title="[% SEARCH_RESULT.biblionumber | url %]" class="[% coce_id | html %]" id="coce-thumbnail[% SEARCH_RESULT.biblionumber | html %]"></span>
558
                                                            <a id="reserve_[% SEARCH_RESULT.biblionumber | html %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Holds ([% SEARCH_RESULT.biblio_object.holds.count | html %])</a>
631
                                                            </a>
559
                                                            [% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]&amp;findborrower=[% holdfor_patron.cardnumber | uri %]">Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 no_cardnumber => 1 %]</a></span>[% END %]
632
                                                            <div class="hint">Coce cover image</div>
560
                                                            [% IF ( holdforclub ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]&amp;club=[% holdforclub | uri %]">Place hold for [% holdforclub_name | html %]</a></span>[% END %]
633
                                                        </div>
561
                                                        [% ELSE %]
634
                                                    [% END %]
562
                                                            <span>Holds ([% SEARCH_RESULT.biblio_object.holds.count | html %])</span>
635
                                                [% END %]
563
                                                        [% END %]
636
564
                                                    [% END # /IF SEARCH_RESULT.norequests %]
637
                                                [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
565
                                                    [% IF Koha.Preference('UseRecalls') and CAN_user_recalls %]
638
                                                    [% SET custom_cover_image_url = SEARCH_RESULT.biblio_object.custom_cover_image_url %]
566
                                                        | <a id="recall_[% SEARCH_RESULT.biblionumber | html %]" href="/cgi-bin/koha/recalls/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Recalls ([% SEARCH_RESULT.biblio_object.recalls.search( completed => 0 ).count | html %])</a>
639
                                                    [% IF custom_cover_image_url %]
640
                                                        <div id="custom-coverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image custom-coverimg">
641
                                                            <a class="custom_cover_image" href="[% custom_cover_image_url | url %]">
642
                                                                <img alt="Custom cover image" src="[% custom_cover_image_url | url %]" />
643
                                                            </a>
644
                                                            <div class="hint">Custom cover image</div>
645
                                                        </div>
646
                                                    [% END %]
567
                                                    [% END %]
647
                                                [% END %]
648
                                            </div>
649
                                        </td>
650
                                    [% END # /IF( AmazonCoverImages || LocalCoverImages || IntranetCoce ) %]
651
568
652
                                    <td>
569
                                                    [% IF Koha.Preference('intranetbookbag') == 1 %]
653
                                        <input type="checkbox" class="selection" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" style="display:none" />
570
                                                        [% IF ( SEARCH_RESULT.incart ) %]
654
                                    </td>
571
                                                            | <a class="addtocart" id="cart[% SEARCH_RESULT.biblionumber | html %]" href="#">In your cart</a> <a class="cartRemove" id="cartR[% SEARCH_RESULT.biblionumber | html %]" href="#">(remove)</a>
572
                                                        [% ELSE %]
573
                                                            | <a class="addtocart" id="cart[% SEARCH_RESULT.biblionumber | html %]" href="#">Add to cart</a> <a style="display:none;" class="cartRemove" id="cartR[% SEARCH_RESULT.biblionumber | html %]" href="#">(remove)</a>
574
                                                        [% END %]
575
                                                    [% END # / IF intranetbookbag %]
655
576
656
                                    <td>
577
                                                    [% IF Koha.Preference('ArticleRequests') %]
657
                                        [% IF ( !item_level_itypes ) || Koha.Preference('BiblioItemtypeInfo') %]
578
                                                        | <a id="requst_article_[% SEARCH_RESULT.biblionumber | html %]" href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Request article</a>
658
                                            <div class="result-biblio-itemtype">
579
                                                    [% END %]
659
                                                [% IF !noItemTypeImages && SEARCH_RESULT.imageurl %]
660
                                                    <img class="itemtype-image" src="[% SEARCH_RESULT.imageurl | html %]" alt="[% SEARCH_RESULT.description | html %]" />
661
                                                [% END %]
662
                                                <span class="itypetext">[% SEARCH_RESULT.description | html %]</span>
663
                                            </div>
664
                                        [% END %]
665
580
666
                                        [% SEARCH_RESULT.result_number | html %].
581
                                                    [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
667
                                        [% SEARCH_RESULT.XSLTResultsRecord | $raw %]
582
                                                        | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">Edit record</a>
668
669
                                        <p class="hold">
670
                                            [% IF ( SEARCH_RESULT.norequests ) %]
671
                                                <span class="noholdstext">No holds allowed</span>
672
                                            [% ELSE %]
673
                                                [% IF CAN_user_reserveforothers_place_holds %]
674
                                                    <a id="reserve_[% SEARCH_RESULT.biblionumber | html %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]"
675
                                                        >Holds ([% SEARCH_RESULT.biblio_object.holds.count | html %])</a
676
                                                    >
677
                                                    [% IF ( holdfor ) %]
678
                                                        <span class="holdforlink"
679
                                                            >|
680
                                                            <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]&amp;findborrower=[% holdfor_patron.cardnumber | uri %]"
681
                                                                >Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 no_cardnumber => 1 %]</a
682
                                                            ></span
683
                                                        >
684
                                                    [% END %]
583
                                                    [% END %]
685
                                                    [% IF ( holdforclub ) %]
584
                                                    [% IF ( CAN_user_editcatalogue_edit_items ) %]
686
                                                        <span class="holdforlink"
585
                                                        | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">Edit items</a>
687
                                                            >|
688
                                                            <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]&amp;club=[% holdforclub | uri %]"
689
                                                                >Place hold for [% holdforclub_name | html %]</a
690
                                                            ></span
691
                                                        >
692
                                                    [% END %]
586
                                                    [% END %]
693
                                                [% ELSE %]
694
                                                    <span>Holds ([% SEARCH_RESULT.biblio_object.holds.count | html %])</span>
695
                                                [% END %]
696
                                            [% END # /IF SEARCH_RESULT.norequests %]
697
                                            [% IF Koha.Preference('UseRecalls') and CAN_user_recalls %]
698
                                                |
699
                                                <a id="recall_[% SEARCH_RESULT.biblionumber | html %]" href="/cgi-bin/koha/recalls/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]"
700
                                                    >Recalls ([% SEARCH_RESULT.biblio_object.recalls.search( completed => 0 ).count | html %])</a
701
                                                >
702
                                            [% END %]
703
587
704
                                            [% IF Koha.Preference('intranetbookbag') == 1 %]
588
                                                    [% IF ( CAN_user_acquisition_order_manage ) %]
705
                                                [% IF ( SEARCH_RESULT.incart ) %]
589
                                                        [% IF ( searchtoorder_basketno && searchtoorder_vendorid ) %]
706
                                                    | <a class="addtocart" id="cart[% SEARCH_RESULT.biblionumber | html %]" href="#">In your cart</a>
590
                                                            | <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% searchtoorder_vendorid | uri %]&amp;basketno=[% searchtoorder_basketno | uri %]&amp;biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">Add order</a>
707
                                                    <a class="cartRemove" id="cartR[% SEARCH_RESULT.biblionumber | html %]" href="#">(remove)</a>
591
                                                        [% END %]
708
                                                [% ELSE %]
592
                                                    [% END %]
709
                                                    | <a class="addtocart" id="cart[% SEARCH_RESULT.biblionumber | html %]" href="#">Add to cart</a>
710
                                                    <a style="display:none;" class="cartRemove" id="cartR[% SEARCH_RESULT.biblionumber | html %]" href="#">(remove)</a>
711
                                                [% END %]
712
                                            [% END # / IF intranetbookbag %]
713
714
                                            [% IF Koha.Preference('ArticleRequests') %]
715
                                                | <a id="requst_article_[% SEARCH_RESULT.biblionumber | html %]" href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Request article</a>
716
                                            [% END %]
717
593
718
                                            [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
594
                                                    [% IF ( OPACBaseURL ) %]
719
                                                | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">Edit record</a>
595
                                                        <span class="view-in-opac">
720
                                            [% END %]
596
                                                            | <a href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]" target="_blank">OPAC view</a>
721
                                            [% IF ( CAN_user_editcatalogue_edit_items ) %]
597
                                                        </span>
722
                                                | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">Edit items</a>
598
                                                    [% END %]
723
                                            [% END %]
599
                                                </p> <!-- /.holds -->
600
                                            </td>
601
602
                                            <td>
603
                                                <div class="availability">
604
                                                    [% IF ( SEARCH_RESULT.items_count ) %]
605
                                                        <div class="results_available_count">
606
                                                            [% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %]
607
                                                                <span class="blocker inaccurate-item-statuses" title="Item statuses may be inaccurate. Please view the record details for accurate item statuses">
608
                                                            [% END %]
724
609
725
                                            [% IF ( CAN_user_acquisition_order_manage ) %]
610
                                                            <div class="all">[% tnx('{count} item', '{count} items', SEARCH_RESULT.items_count, {count = SEARCH_RESULT.items_count}) | html %][% IF ( SEARCH_RESULT.availablecount ) %], [% SEARCH_RESULT.availablecount | html %] <span>available:</span>[% ELSE %], <span>None available</span>[% END %]</div>
726
                                                [% IF ( searchtoorder_basketno && searchtoorder_vendorid ) %]
611
                                                            [% IF SEARCH_RESULT.branchtotalcount > 0 %]
727
                                                    |
612
                                                                <div class="branch_specific">[% tnx('{count} item', '{count} items', SEARCH_RESULT.branchtotalcount, {count = SEARCH_RESULT.branchtotalcount}) | html %][% IF ( SEARCH_RESULT.branchavailablecount ) %], [% SEARCH_RESULT.branchavailablecount | html %] <span>available:</span>[% ELSE %], <span>None available</span>[% END %]</div>
728
                                                    <a
613
                                                            [% END %]
729
                                                        href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% searchtoorder_vendorid | uri %]&amp;basketno=[% searchtoorder_basketno | uri %]&amp;biblionumber=[% SEARCH_RESULT.biblionumber | uri %]"
730
                                                        >Add order</a
731
                                                    >
732
                                                [% END %]
733
                                            [% END %]
734
614
735
                                            [% IF ( OPACBaseURL ) %]
615
                                                            [% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %]
736
                                                <span class="view-in-opac">
616
                                                                </span>
737
                                                    | <a href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]" target="_blank">OPAC view</a>
738
                                                </span>
739
                                            [% END %]
740
                                        </p>
741
                                        <!-- /.holds -->
742
                                    </td>
743
744
                                    <td>
745
                                        <div class="availability">
746
                                            [% IF ( SEARCH_RESULT.items_count ) %]
747
                                                <div class="results_available_count">
748
                                                    [% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %]
749
                                                        <span class="blocker inaccurate-item-statuses" title="Item statuses may be inaccurate. Please view the record details for accurate item statuses">
750
                                                            [% tnx('{count} item', '{count} items', SEARCH_RESULT.items_count, {count = SEARCH_RESULT.items_count}) | html %][% IF ( SEARCH_RESULT.availablecount ) %]
751
                                                                , [% SEARCH_RESULT.availablecount | html %] <span>available:</span>
752
                                                            [% ELSE %]
617
                                                            [% ELSE %]
753
                                                                , <span>None available</span>
618
                                                                [% tnx('{count} item', '{count} items', SEARCH_RESULT.items_count, {count = SEARCH_RESULT.items_count}) | html %][% IF ( SEARCH_RESULT.availablecount ) %], [% SEARCH_RESULT.availablecount | html %] <span>available:</span>[% ELSE %], <span>None available</span>[% END %]
754
                                                            [% END %]
619
                                                            [% END %]
755
                                                        </span>
620
                                                        </div> <!-- /.results_available_count -->
756
                                                    [% ELSE %]
757
                                                        [% tnx('{count} item', '{count} items', SEARCH_RESULT.items_count, {count = SEARCH_RESULT.items_count}) | html %][% IF ( SEARCH_RESULT.availablecount ) %]
758
                                                            , [% SEARCH_RESULT.availablecount | html %] <span>available:</span>
759
                                                        [% ELSE %]
760
                                                            , <span>None available</span>
761
                                                        [% END %]
762
                                                    [% END %]
763
                                                </div>
764
                                                <!-- /.results_available_count -->
765
621
766
                                                [% BLOCK search_result_items %]
622
                                                        [% BLOCK search_result_items %]
767
                                                    [% IF status_count == "onloancount" %]
623
                                                            [% IF status_count == "onloancount" %]
768
                                                        [% IF SEARCH_RESULT.${status_count} > 0 %]
624
                                                                [% IF SEARCH_RESULT.${status_count} > 0 %]
769
                                                            <div class="results_checkedout">[% SEARCH_RESULT.${status_count} | html %] checked out:</div>
625
                                                                    <div class="results_checkedout all">[% SEARCH_RESULT.${status_count} | html %] checked out:</div>
770
                                                        [% END %]
626
                                                                    <div class="results_checkedout branch_specific">[% SEARCH_RESULT.branchonloancount | html %] checked out:</div>
771
                                                    [% ELSIF status_count == "othercount" %]
772
                                                        [% IF SEARCH_RESULT.${status_count} > 0 %]
773
                                                            <div class="results_unavailable">[% SEARCH_RESULT.${status_count} | html %] unavailable:</div>
774
                                                        [% END %]
775
                                                    [% END %]
776
                                                    [% IF SEARCH_RESULT.${items_loop}.size > 0 %]
777
                                                        <ul class="[% items_loop | html %]_items">
778
                                                            [% FOREACH items_loo IN SEARCH_RESULT.${items_loop} %]
779
                                                                [% IF item_level_itypes && !noItemTypeImages && items_loo.imageurl %]
780
                                                                    [% SET li_class='result_itype_image' %]
781
                                                                [% END %]
627
                                                                [% END %]
782
                                                                <li class="[% items_loo.branchcode | html %] [% li_class | html %]">
628
                                                            [% ELSIF status_count == "othercount" %]
783
                                                                    [% IF item_level_itypes && !noItemTypeImages && items_loo.imageurl %]
629
                                                                [% IF SEARCH_RESULT.${status_count} > 0 %]
784
                                                                        <img class="itemtype-image" src="[% items_loo.imageurl | html %]" title="[% items_loo.description | html %]" alt="[% items_loo.description | html %]" />
630
                                                                    <div class="results_unavailablei all">[% SEARCH_RESULT.${status_count} | html %] unavailable:</div>
785
                                                                    [% END %]
631
                                                                    <div class="results_unavailablei branch_specific">[% SEARCH_RESULT.branchothercount | html %] unavailable:</div>
786
                                                                    [% IF ( items_loo.branchname ) %]
632
                                                                [% END %]
787
                                                                        [% items_loo.branchname | html %]
633
                                                            [% END %]
788
                                                                    [% END %]
634
                                                            [% IF SEARCH_RESULT.${items_loop}.size > 0 %]
789
                                                                    [% IF ( items_loo.location ) %]
635
                                                                <ul class="[% items_loop | html %]_items">
790
                                                                        <span class="shelvingloc">[% items_loo.location | html %]</span>
636
                                                                    [% FOREACH items_loo IN SEARCH_RESULT.${items_loop} %]
791
                                                                    [% END %]
637
                                                                        [% IF item_level_itypes && !noItemTypeImages && items_loo.imageurl %]
792
                                                                    [% IF ( items_loo.collectioncode ) %]
638
                                                                            [% SET li_class='result_itype_image'%]
793
                                                                        <span class="ccode">[% items_loo.collectioncode | html %]</span>
794
                                                                    [% END %]
795
796
                                                                    [% IF ( items_loo.itemcallnumber ) %]
797
                                                                        <a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% items_loo.itemcallnumber |uri %]%22">[% items_loo.itemcallnumber | html %]</a>
798
                                                                    [% END %]
799
                                                                    <div class="result_item_details">
800
                                                                        [% IF ( items_loo.withdrawn ) %]
801
                                                                            ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => items_loo.withdrawn ) | html %])
802
                                                                        [% END %]
803
                                                                        [% IF ( items_loo.itemlost ) %]
804
                                                                            ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => items_loo.itemlost ) | html %])
805
                                                                        [% END %]
806
                                                                        [% IF ( items_loo.damaged ) %]
807
                                                                            ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => items_loo.damaged ) | html %])
808
                                                                        [% END %]
639
                                                                        [% END %]
809
                                                                        [% IF ( items_loo.intransit ) %]
640
                                                                        <li class="[% items_loo.branchcode | html %] [% li_class | html %]">
810
                                                                            (<span>In transit</span>)
641
                                                                            [% IF item_level_itypes && !noItemTypeImages && items_loo.imageurl %]
642
                                                                                <img class="itemtype-image" src="[% items_loo.imageurl | html %]" title="[% items_loo.description | html %]" alt="[% items_loo.description | html %]" />
643
                                                                            [% END %]
644
                                                                        [% IF ( items_loo.branchname ) %]
645
                                                                            [% items_loo.branchname | html %]
811
                                                                        [% END %]
646
                                                                        [% END %]
812
                                                                        [% IF ( items_loo.onhold ) %]
647
                                                                        [% IF ( items_loo.location ) %]
813
                                                                            (<span>On hold</span>)
648
                                                                            <span class="shelvingloc">[% items_loo.location | html %]</span>
814
                                                                        [% END %]
649
                                                                        [% END %]
815
                                                                        [% IF ( items_loo.notforloan ) %]
650
                                                                        [% IF ( items_loo.collectioncode ) %]
816
                                                                            [% items_loo.notforloan | html %]
651
                                                                            <span class="ccode">[% items_loo.collectioncode | html %]</span>
817
                                                                        [% END %]
652
                                                                        [% END %]
818
                                                                        <span class="item_count">[% items_loo.count | html %]</span>
653
819
                                                                    </div>
654
                                                                            [% IF ( items_loo.itemcallnumber ) %]
820
                                                                    <!-- /.result_item_details -->
655
                                                                                <a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% items_loo.itemcallnumber |uri %]%22">[% items_loo.itemcallnumber | html %]</a>
821
656
                                                                            [% END %]
822
                                                                    [% IF status_count == "onloancount" %]
657
                                                                            <div class="result_item_details">
823
                                                                        <span class="item-date-due"> Due: [% items_loo.due_date | $KohaDates %] </span>
658
                                                                                [% IF ( items_loo.withdrawn ) %]
824
                                                                    [% END %]
659
                                                                                    ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => items_loo.withdrawn ) | html %])
825
660
                                                                                [% END %]
826
                                                                    [% IF item_level_itypes && items_loo.description %]
661
                                                                                [% IF ( items_loo.itemlost ) %]
827
                                                                        <span class="item-itype-desc itypetext">[% items_loo.description | html %]</span>
662
                                                                                    ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => items_loo.itemlost ) | html %])
828
                                                                    [% END %]
663
                                                                                [% END %]
829
                                                                </li>
664
                                                                                [% IF ( items_loo.damaged ) %]
830
                                                            [% END # /FOREACH other_items_loo %]
665
                                                                                    ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => items_loo.damaged ) | html %])
831
                                                        </ul>
666
                                                                                [% END %]
832
                                                        <!-- /.[% items_loop | html %]_items -->
667
                                                                                [% IF ( items_loo.intransit ) %]
833
                                                    [% END # /IF SEARCH_RESULT.${items_loop}.size %]
668
                                                                                    (<span>In transit</span>)
834
                                                [% END # /BLOCK search_result_items %]
669
                                                                                [% END %]
835
670
                                                                                [% IF ( items_loo.onhold ) %]
836
                                                [% PROCESS search_result_items status_count="availablecount" items_loop="available_items_loop" %]
671
                                                                                    (<span>On hold</span>)
837
672
                                                                                [% END %]
838
                                                [% PROCESS search_result_items status_count="onloancount" items_loop="onloan_items_loop" %]
673
                                                                                [% IF ( items_loo.notforloan ) %]
839
674
                                                                                    [% items_loo.notforloan | html %]
840
                                                [% PROCESS search_result_items status_count="othercount" items_loop="other_items_loop" %]
675
                                                                                [% END %]
841
                                            [% ELSE # /IF ( SEARCH_RESULT.items_count ) %]
676
                                                                                <span class="item_count">[% items_loo.count | html %]</span>
842
677
                                                                            </div> <!-- /.result_item_details -->
843
                                                [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS.size ) %]
678
844
                                                    <strong id="altholdings_heading">Other holdings:</strong>
679
                                                                            [% IF status_count == "onloancount" %]
845
                                                    <ul>
680
                                                                                <span class="item-date-due">
846
                                                        [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
681
                                                                                    Due: [% items_loo.due_date | $KohaDates %]
847
                                                            <li id="alternateholdings">[% ALTERNATEHOLDING.holding | html %]</li>
682
                                                                                </span>
683
                                                                            [% END %]
684
685
                                                                            [% IF item_level_itypes && items_loo.description %]
686
                                                                                <span class="item-itype-desc itypetext">[% items_loo.description | html %]</span>
687
                                                                            [% END %]
688
                                                                        </li>
689
                                                                    [% END # /FOREACH other_items_loo %]
690
                                                                </ul> <!-- /.[% items_loop | html %]_items -->
691
                                                            [% END # /IF SEARCH_RESULT.${items_loop}.size %]
692
                                                        [% END # /BLOCK search_result_items %]
693
694
                                                        [% PROCESS search_result_items status_count="availablecount" items_loop="available_items_loop" %]
695
696
                                                        [% PROCESS search_result_items status_count="onloancount" items_loop="onloan_items_loop" %]
697
698
                                                        [% PROCESS search_result_items status_count="othercount" items_loop="other_items_loop" %]
699
700
701
                                                    [% ELSE # /IF ( SEARCH_RESULT.items_count ) %]
702
703
                                                        [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS.size ) %]
704
                                                            <strong id="altholdings_heading">Other holdings:</strong>
705
                                                            <ul>
706
                                                                [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
707
                                                                    <li id="alternateholdings">[% ALTERNATEHOLDING.holding | html %]</li>
708
                                                                [% END %]
709
                                                            </ul>
710
                                                        [% ELSE %]
711
                                                            <span class="unavailable all">No items</span>
848
                                                        [% END %]
712
                                                        [% END %]
849
                                                    </ul>
713
                                                    [% END # /IF ( SEARCH_RESULT.items_count ) %]
850
                                                [% ELSE %]
714
                                                    [% IF SEARCH_RESULT.branchtotalcount == 0 %]
851
                                                    <span class="unavailable">No items</span>
715
                                                            <span class="unavailable branch_specific">No items</span>
852
                                                [% END %]
716
                                                    [% END %]
853
                                            [% END # /IF ( SEARCH_RESULT.items_count ) %]
717
                                                </div> <!-- /.availability -->
854
                                        </div>
718
                                            </td>
855
                                        <!-- /.availability -->
719
                                        </tr>
856
                                    </td>
720
                                    [% END # /FOREACH SEARCH_RESULT %]
857
                                </tr>
721
                                    </tbody>
858
                            [% END # /FOREACH SEARCH_RESULT %]
722
                                </table>
859
                        </tbody>
723
                            </form>
860
                    </table>
724
                        </div> <!-- /#bookbag_form -->
861
                </form>
725
                    [% END # /IF scan %]
862
            </div>
726
                    [% INCLUDE 'page-numbers.inc' %]
863
            <!-- /#bookbag_form -->
727
                [% ELSE #/IF total %]
864
        [% END # /IF scan %]
728
                    <!-- No Results Found -->
865
        [% INCLUDE 'page-numbers.inc' %]
729
                [% END #/IF total %]
866
    [% ELSE #/IF total %]
730
867
        <!-- No Results Found -->
731
                [% IF ( Koha.Preference('SavedSearchFilters') && CAN_user_parameters_manage_search_filters ) %]
868
    [% END #/IF total %]
732
                    <div id="search_filters_modal" class="modal" role="dialog" aria-hidden="true">
869
733
                        <div class="modal-dialog">
870
    [% IF ( Koha.Preference('SavedSearchFilters') && CAN_user_parameters_manage_search_filters ) %]
734
                        <div class="modal-content">
871
        <div id="search_filters_modal" class="modal" role="dialog" aria-hidden="true">
735
                            <div class="modal-header">
872
            <div class="modal-dialog">
736
                                <h1 class="modal-title" id="search_filters_label">Save: '[% query_desc | html %]' with limits '[% limit_desc | html %]' as filter</h1>
873
                <div class="modal-content">
737
                                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
874
                    <div class="modal-header">
738
                            </div>
875
                        <h1 class="modal-title" id="search_filters_label">Save: '[% query_desc | html %]' with limits '[% limit_desc | html %]' as filter</h1>
739
                            <div class="modal-body">
876
                        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
740
                                <h6>Visibility:</h6>
877
                    </div>
741
                                <label for="show_filter_opac">Show in OPAC?</label>
878
                    <div class="modal-body">
742
                                <input type="checkbox" id="show_filter_opac" name="show_filter_opac">
879
                        <h6>Visibility:</h6>
743
                                <label for="show_filter_staff_client">Show in staff interface?</label>
880
                        <label for="show_filter_opac">Show in OPAC?</label>
744
                                <input type="checkbox" id="show_filter_staff_client" name="show_filter_staff_client">
881
                        <input type="checkbox" id="show_filter_opac" name="show_filter_opac" />
745
                                <hr>
882
                        <label for="show_filter_staff_client">Show in staff interface?</label>
746
                                <h6>Save as new search filter:</h6>
883
                        <input type="checkbox" id="show_filter_staff_client" name="show_filter_staff_client" />
747
                                <label for="new_filter">Name:</label>
884
                        <hr />
748
                                <input id="new_filter" name="new_filter" type="text">
885
                        <h6>Save as new search filter:</h6>
749
                                <a id="save_new_filter" class="btn btn-default btn-xs" href="#">Save</a>
886
                        <label for="new_filter">Name:</label>
750
                                <span class="existing_filters_section">
887
                        <input id="new_filter" name="new_filter" type="text" />
751
                                    <br/>OR<br/>
888
                        <a id="save_new_filter" class="btn btn-default btn-xs" href="#">Save</a>
752
                                    <h6>Replace existing search filter:</h6>
889
                        <span class="existing_filters_section">
753
                                    <label for="existing_filters">Choose</label>
890
                            <br />OR<br />
754
                                    <select id="existing_filters" name="existing_filters" class="search_filters_list"></select>
891
                            <h6>Replace existing search filter:</h6>
755
                                    <a id="replace_existing_filter" class="btn btn-default btn-xs" href="#">Replace</a>
892
                            <label for="existing_filters">Choose</label>
756
                                </span>
893
                            <select id="existing_filters" name="existing_filters" class="search_filters_list"></select>
757
                            </div>
894
                            <a id="replace_existing_filter" class="btn btn-default btn-xs" href="#">Replace</a>
758
                            <div class="modal-footer">
895
                        </span>
759
                                <button type="button" class="btn btn-default" data-bs-dismiss="modal">Cancel</button>
896
                    </div>
760
                            </div>
897
                    <div class="modal-footer">
761
                        </div>
898
                        <button type="button" class="btn btn-default" data-bs-dismiss="modal">Cancel</button>
762
                        </div>
899
                    </div>
763
                    </div>
900
                </div>
764
                [% END %]
901
            </div>
765
902
        </div>
766
                <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
903
    [% END %]
767
                    <!-- Value will be set here by placeHold() -->
904
768
                    <input type="hidden" name="findborrower" id="holdFor" value="" />
905
    <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
769
                    <input type="hidden" name="club" id="holdForClub" value="" />
906
        <!-- Value will be set here by placeHold() -->
770
                </form>
907
        <input type="hidden" name="findborrower" id="holdFor" value="" />
771
908
        <input type="hidden" name="club" id="holdForClub" value="" />
772
                <form id="list_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
909
    </form>
773
                    <!-- Value will be set here by addToList() -->
910
774
                    <input type="hidden" name="multi_listadd" value="1"/>
911
    <form id="list_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
775
                </form>
912
        <!-- Value will be set here by addToList() -->
776
913
        <input type="hidden" name="multi_listadd" value="1" />
914
    </form>
915
[% END %]
777
[% END %]
916
778
917
<input type="hidden" id="query_json" value="[% query_json | html %]" />
779
<input type="hidden" id="query_json" value="[% query_json | html %]">
918
<input type="hidden" id="limit_json" value="[% limit_json | html %]" />
780
<input type="hidden" id="limit_json" value="[% limit_json | html %]">
919
[% MACRO jsinclude BLOCK %]
781
[% MACRO jsinclude BLOCK %]
920
    [% Asset.js("js/browser.js") | $raw %]
782
    [% Asset.js("js/browser.js") | $raw %]
921
    [% Asset.js("js/coce.js") | $raw %]
783
    [% Asset.js("js/coce.js") | $raw %]
Lines 935-940 Link Here
935
        var biblionumber = "[% biblionumber | html %]";
797
        var biblionumber = "[% biblionumber | html %]";
936
        var holdfor_cardnumber = "[% holdfor_patron.cardnumber | html %]";
798
        var holdfor_cardnumber = "[% holdfor_patron.cardnumber | html %]";
937
        var holdforclub = "[% holdforclub | html %]";
799
        var holdforclub = "[% holdforclub | html %]";
800
        var userbranch = "[% userbranch | html %]";
801
802
        $('#toggleitems').click( function() {
803
            $('#toggleitems').text() === 'Show local items only' ? $('#toggleitems').text("Show items in all libraries") : $('#toggleitems').text("Show local items only");
804
            $('.branch_specific').toggle();
805
            $('.all').toggle();
806
            $('ul[class*="_loop_items"] li').each( function() {
807
                if ( !$(this).hasClass(userbranch) ) {
808
                    $(this).toggle();
809
                }
810
            });
811
        });
938
        [% IF SEARCH_RESULTS %]
812
        [% IF SEARCH_RESULTS %]
939
            var SEARCH_RESULTS = 1;
813
            var SEARCH_RESULTS = 1;
940
        [% ELSE %]
814
        [% ELSE %]
Lines 1057-1060 Link Here
1057
    [% CoverImagePlugins | $raw %]
931
    [% CoverImagePlugins | $raw %]
1058
[% END %]
932
[% END %]
1059
933
1060
[% INCLUDE 'intranet-bottom.inc' %]
934
[% INCLUDE 'intranet-bottom.inc' %]
1061
- 

Return to bug 37883