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

(-)a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm (-1 / +2 lines)
Lines 514-520 Arguments: Link Here
514
=item marclist
514
=item marclist
515
515
516
An arrayref containing where the particular term should be searched for.
516
An arrayref containing where the particular term should be searched for.
517
Options are: mainmainentry, mainentry, match, match-heading, see-from, and
517
Options are: mainmainentry, mainentry, match, match-heading, see-from, local-number, and
518
thesaurus. If left blank, any field is used.
518
thesaurus. If left blank, any field is used.
519
519
520
=item and_or
520
=item and_or
Lines 563-568 our $koha_to_index_name = { Link Here
563
    thesaurus       => 'subject-heading-thesaurus',
563
    thesaurus       => 'subject-heading-thesaurus',
564
    'thesaurus-conventions' => 'subject-heading-thesaurus-conventions',
564
    'thesaurus-conventions' => 'subject-heading-thesaurus-conventions',
565
    any             => '',
565
    any             => '',
566
    'local-number'  => 'local-number',
566
    all             => ''
567
    all             => ''
567
};
568
};
568
569
(-)a/admin/searchengine/elasticsearch/mappings.yaml (-1 / +1 lines)
Lines 910-916 authorities: Link Here
910
      suggestible: ''
910
      suggestible: ''
911
    opac: 1
911
    opac: 1
912
    staff_client: 1
912
    staff_client: 1
913
    type: number
913
    type: ''
914
  personal-name:
914
  personal-name:
915
    label: personal-name
915
    label: personal-name
916
    mandatory: ~
916
    mandatory: ~
(-)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