Bugzilla – Attachment 166033 Details for
Bug 36616
Ability to stop Complex See Reference authority records from being linked to bibliographic records
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36616: [WIP] Add option to authority cataloguing plugin to show established headings only
Bug-36616-WIP-Add-option-to-authority-cataloguing-.patch (text/plain), 3.93 KB, created by
Aleisha Amohia
on 2024-05-02 04:45:21 UTC
(
hide
)
Description:
Bug 36616: [WIP] Add option to authority cataloguing plugin to show established headings only
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2024-05-02 04:45:21 UTC
Size:
3.93 KB
patch
obsolete
>From 5414175fcc947e6f0f9b917ee0e3f125df591516 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Mon, 22 Apr 2024 05:03:34 +0000 >Subject: [PATCH] Bug 36616: [WIP] Add option to authority cataloguing plugin > to show established headings only > >--- > authorities/auth_finder.pl | 15 +++++++++++++ > .../prog/en/includes/auth-finder-search.inc | 22 +++++++++++++++++++ > 2 files changed, 37 insertions(+) > >diff --git a/authorities/auth_finder.pl b/authorities/auth_finder.pl >index 1603fbbc31f..9abf51419c7 100755 >--- a/authorities/auth_finder.pl >+++ b/authorities/auth_finder.pl >@@ -67,6 +67,19 @@ if ( $op eq "do_search" ) { > my $orderby = $query->param('orderby') || ''; > my $startfrom = $query->param('startfrom') || 0; > my $resultsperpage = $query->param('resultsperpage') || 20; >+ my $est_headings = $query->param('est_headings') || undef; >+ >+ if ( $est_headings ) { >+ #my @value_established = ( 'a', 'f', '|' ); >+ my @value_established = ( 'a' ); >+ foreach ( @value_established ) { >+ push @marclist, 'Kind-of-record'; >+ push @and_or, 'or'; >+ push @excluding, ''; >+ push @operator, 'contains'; >+ push @value, $_; >+ } >+ } > > my $builder = Koha::SearchEngine::QueryBuilder->new( > { index => $Koha::SearchEngine::AUTHORITIES_INDEX } ); >@@ -76,6 +89,7 @@ if ( $op eq "do_search" ) { > \@marclist, \@and_or, \@excluding, \@operator, > \@value, $authtypecode, $orderby > ); >+ > $template->param( search_query => $search_query ) if C4::Context->preference('DumpSearchQueryTemplate'); > my $offset = $startfrom * $resultsperpage; > my ( $results, $total ) = >@@ -176,6 +190,7 @@ if ( $op eq "do_search" ) { > operator_main => ( @operator > 1 && $operator[1] ) ? $operator[1] : '', > operator_match => ( @operator > 2 && $operator[2] ) ? $operator[2] : '', > operator_any => ( @operator > 3 && $operator[3] ) ? $operator[3] : '', >+ est_headings => $est_headings, > ); > } > else { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc >index fe94cf0f8b0..e30d6d982ea 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc >@@ -117,6 +117,28 @@ > <input id="value_any" style="width:400px;" type="text" name="value_any" value="[% value_any | html %]" /> > <div id="yvaluecontainermarclist"></div> > </li> >+ <li> >+ <label for="est_headings">Established headings only: </label> >+ <select name="est_headings" id="est_headings"> >+ [% IF Koha.Preference('LinkEstablishedHeadings') %] >+ [% IF est_headings %] >+ <option value="1" selected="selected">Yes</option> >+ <option value="">No</option> >+ [% ELSE %] >+ <option value="1">Yes</option> >+ <option value="" selected="selected">No</option> >+ [% END %] >+ [% ELSE %] >+ [% IF est_headings %] >+ <option value="1" selected="selected">Yes</option> >+ <option value="">No</option> >+ [% ELSE %] >+ <option value="1">Yes</option> >+ <option value="" selected="selected">No</option> >+ [% END %] >+ [% END %] >+ </select> >+ </li> > <li> > <label for="orderby">Sort by: </label> > <select name="orderby" id="orderby"> >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36616
:
165248
|
165249
|
166033
|
166746
|
166747
|
167185
|
167186
|
167365
|
167366
|
172125