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

(-)a/C4/AuthoritiesMarc.pm (+3 lines)
Lines 165-170 sub SearchAuthorities { Link Here
165
                elsif ( @$tags[$i] eq "thesaurus" ) {
165
                elsif ( @$tags[$i] eq "thesaurus" ) {
166
                    $attr = " \@attr 1=Subject-heading-thesaurus ";
166
                    $attr = " \@attr 1=Subject-heading-thesaurus ";
167
                }
167
                }
168
                elsif ( @$tags[$i] eq "local-number" ) {
169
                    $attr = " \@attr 1=Local-Number ";
170
                }
168
                elsif ( @$tags[$i] eq "all" ) {
171
                elsif ( @$tags[$i] eq "all" ) {
169
                    $attr = " \@attr 1=Any ";
172
                    $attr = " \@attr 1=Any ";
170
                }
173
                }
(-)a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm (-1 / +2 lines)
Lines 513-519 Arguments: Link Here
513
=item marclist
513
=item marclist
514
514
515
An arrayref containing where the particular term should be searched for.
515
An arrayref containing where the particular term should be searched for.
516
Options are: mainmainentry, mainentry, match, match-heading, see-from, and
516
Options are: mainmainentry, mainentry, match, match-heading, see-from, local-number, and
517
thesaurus. If left blank, any field is used.
517
thesaurus. If left blank, any field is used.
518
518
519
=item and_or
519
=item and_or
Lines 562-567 our $koha_to_index_name = { Link Here
562
    thesaurus       => 'subject-heading-thesaurus',
562
    thesaurus       => 'subject-heading-thesaurus',
563
    'thesaurus-conventions' => 'subject-heading-thesaurus-conventions',
563
    'thesaurus-conventions' => 'subject-heading-thesaurus-conventions',
564
    any             => '',
564
    any             => '',
565
    'local-number'  => 'local-number',
565
    all             => ''
566
    all             => ''
566
};
567
};
567
568
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc (+28 lines)
Lines 153-158 Link Here
153
            </form>
153
            </form>
154
        [% END # /tab_panel %]
154
        [% END # /tab_panel %]
155
155
156
        [% WRAPPER tab_panel tabname="search_id" %]
157
            <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
158
                <input type="hidden" name="op" value="do_search" />
159
                <input type="hidden" name="type" value="intranet" />
160
                <input type="hidden" name="marclist" value="local-number" />
161
162
                <div class="form-title">
163
                    <label class="control-label" for="value_search_id"><span class="control-text">Search ID<span> <i class="fa fa-fw fa-solid fa-hashtag" aria-hidden="true"></i></label>
164
                </div>
165
166
                <div class="form-content">
167
                    <input id="value_search_id" class="form-control head-searchbox" type="text" name="value" value="[% value | html %]" placeholder="Search ID (001)" />
168
                    <button type="button" class="form-extra-content-toggle" title="More options"><i class="form-extra-content-icon fa-solid fa-sliders" aria-hidden="true"></i></button>
169
                </div>
170
171
                <button type="submit" aria-label="Search"><i class="fa fa-arrow-right"></i></button>
172
173
                <div class="form-extra-content">
174
                    [% INCLUDE authtype %]
175
                    [% INCLUDE operator %]
176
                    [% INCLUDE orderby %]
177
                </div>
178
            </form>
179
        [% END # /tab_panel %]
180
156
        [% WRAPPER tab_panel tabname="entire_record" %]
181
        [% WRAPPER tab_panel tabname="entire_record" %]
157
            <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
182
            <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
158
                <input type="hidden" name="op" value="do_search" />
183
                <input type="hidden" name="op" value="do_search" />
Lines 191-196 Link Here
191
        [% WRAPPER tab_item tabname= "matchheading_search" %]
216
        [% WRAPPER tab_item tabname= "matchheading_search" %]
192
            <i class="fa fa-fw fa-align-center" aria-hidden="true"></i> <span class="tab-title">All headings</span>
217
            <i class="fa fa-fw fa-align-center" aria-hidden="true"></i> <span class="tab-title">All headings</span>
193
        [% END %]
218
        [% END %]
219
        [% WRAPPER tab_item tabname= "search_id" %]
220
            <i class="fa fa-fw fa-solid fa-hashtag" aria-hidden="true"></i> <span class="tab-title">Search ID</span>
221
        [% END %]
194
        [% WRAPPER tab_item tabname= "entire_record" %]
222
        [% WRAPPER tab_item tabname= "entire_record" %]
195
            <i class="fa-solid fa-fw fa-folder-open" aria-hidden="true"></i> <span class="tab-title">Entire record</span>
223
            <i class="fa-solid fa-fw fa-folder-open" aria-hidden="true"></i> <span class="tab-title">Entire record</span>
196
        [% END %]
224
        [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc (-1 / +2 lines)
Lines 71-76 $(document).ready(function () { Link Here
71
            $("#header_search a[href='#main_heading']").tab("show");
71
            $("#header_search a[href='#main_heading']").tab("show");
72
        } else if ('match' == searchType) {
72
        } else if ('match' == searchType) {
73
            $("#header_search a[href='#matchheading_search']").tab("show");
73
            $("#header_search a[href='#matchheading_search']").tab("show");
74
        } else if ('local-number' == searchType) {
75
            $("#header_search a[href='#search_id']").tab("show");
74
        } else if ('all' == searchType) {
76
        } else if ('all' == searchType) {
75
            $("#header_search a[href='#entire_record']").tab("show");
77
            $("#header_search a[href='#entire_record']").tab("show");
76
        }
78
        }
77
- 

Return to bug 36509