Bugzilla – Attachment 186353 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: Add LinkEstablishedHeadings system preference
Bug-36616-Add-LinkEstablishedHeadings-system-prefe.patch (text/plain), 4.72 KB, created by
Aleisha Amohia
on 2025-09-11 02:06:57 UTC
(
hide
)
Description:
Bug 36616: Add LinkEstablishedHeadings system preference
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2025-09-11 02:06:57 UTC
Size:
4.72 KB
patch
obsolete
>From e7ebf4b0f166a0a98bcf13041fb341ff825b1085 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Mon, 22 Apr 2024 05:03:12 +0000 >Subject: [PATCH] Bug 36616: Add LinkEstablishedHeadings system preference > >Signed-off-by: David Nind <david@davidnind.com> >--- > ...6616_-_add_LinkEstablishedHeadings_syspref.pl | 16 ++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 3 ++- > .../modules/admin/preferences/authorities.pref | 8 ++++++++ > 3 files changed, 26 insertions(+), 1 deletion(-) > create mode 100755 installer/data/mysql/atomicupdate/bug_36616_-_add_LinkEstablishedHeadings_syspref.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_36616_-_add_LinkEstablishedHeadings_syspref.pl b/installer/data/mysql/atomicupdate/bug_36616_-_add_LinkEstablishedHeadings_syspref.pl >new file mode 100755 >index 00000000000..1e1663da538 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_36616_-_add_LinkEstablishedHeadings_syspref.pl >@@ -0,0 +1,16 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "36616", >+ description => "Optionally restrict links to established headings only", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ $dbh->do( >+ q{ INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('LinkEstablishedHeadings', '0', NULL, 'When enabled, bibliographic records will only be able to link to established headings, as indicated by the 008/09', 'YesNo') } >+ ); >+ >+ say $out "Added system preference 'LinkEstablishedHeadings'"; >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index ea60db69b7c..6afbb5571ab 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -394,6 +394,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('LinkerModule','Default','Default|FirstMatch|LastMatch','Chooses which linker module to use (see documentation).','Choice'), > ('LinkerOptions','','','A pipe-separated list of options for the linker.','free'), > ('LinkerRelink','1',NULL,'If ON the authority linker will relink headings that have previously been linked every time it runs.','YesNo'), >+('LinkEstablishedHeadings', '0', NULL, 'When enabled, bibliographic records will only be able to link to established headings, as indicated by the 008/09', 'YesNo'), > ('ListOwnerDesignated', '', NULL, 'Designated list owner at patron deletion', 'Free'), > ('ListOwnershipUponPatronDeletion', 'delete', 'delete|transfer', 'Defines the action on their public or shared lists when patron is deleted', 'Choice'), > ('LoadCheckoutsTableDelay','0','','Delay before auto-loading checkouts table on checkouts screen','Integer'), >@@ -891,4 +892,4 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'), > ('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'), > ('z3950Status','','','This syspref allows to define custom YAML based rules for marking items unavailable in z3950 results.','Textarea') >-; >\ No newline at end of file >+; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/authorities.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/authorities.pref >index e0e7c73fc2f..6428b76d98a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/authorities.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/authorities.pref >@@ -106,6 +106,14 @@ Authorities: > - > - "If set, the authority field having the given language code in its $7 subfield will be used in the bibliographic record if it exists, rather than the first field. The code can be in a short, 2 characters long form (example: ba for latin) or in a long, 8 characters long form, with the short form in position 5 and 6 starting from 1 (example: ba0yba0y for latin). A list of available codes can be found here: https://documentation.abes.fr/sudoc/formats/unmb/DonneesCodees/CodesZone104.htm#$d. Please note that this feature is available only for UNIMARC." > - pref: LanguageToUseOnMerge >+ - >+ - pref: LinkEstablishedHeadings >+ default: no >+ choices: >+ 0: "All headings" >+ 1: "Only established headings, as indicated by the 008/09" >+ - can be linked to bibliographic records via the authority plugin search results when cataloguing. Reference headings will be disabled and unable to be linked. >+ > Linker: > - > - Use the >-- >2.39.5
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
| 186353 |
186354