Bugzilla – Attachment 152508 Details for
Bug 31185
Link authorities automatically doesn't detect duplicate authorities
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31185: Link authorities automatically doesn't detect duplicate authorities
Bug-31185-Link-authorities-automatically-doesnt-de.patch (text/plain), 2.54 KB, created by
Martin Renvoize (ashimema)
on 2023-06-21 09:50:26 UTC
(
hide
)
Description:
Bug 31185: Link authorities automatically doesn't detect duplicate authorities
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-06-21 09:50:26 UTC
Size:
2.54 KB
patch
obsolete
>From 6aaa03b29fd6d6791c4e3f7d58559dc2d3f4be28 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Adolfo=20Rodr=C3=ADguez?= <adolfo.rodriguez@xercode.es> >Date: Fri, 5 May 2023 16:11:26 +0200 >Subject: [PATCH] Bug 31185: Link authorities automatically doesn't detect > duplicate authorities > >Signed-off-by: Rachael Laritz <rachael.laritz@inlibro.com> >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/Biblio.pm | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 2c63adb00e..93091b0ca9 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -677,8 +677,10 @@ sub LinkBibHeadingsToAuthorities { > elsif ( C4::Context->preference('AutoCreateAuthorities') ) { > if ( _check_valid_auth_link( $current_link, $field ) ) { > $results{'linked'}->{ $heading->display_form() }++; >- } >- elsif ( !$match_count ) { >+ } elsif ( $match_count > 1 ) { >+ $results{'unlinked'}->{ $heading->display_form() }++; >+ push(@{$results{'details'}}, { tag => $field->tag(), authid => undef, status => 'MULTIPLE_MATCH', auth_type => $heading->auth_type(), tag_to_report => $authority_type->auth_tag_to_report}) if $verbose; >+ } elsif ( !$match_count ) { > my $authority_type = Koha::Authority::Types->find( $heading->auth_type() ); > my $marcrecordauth = MARC::Record->new(); > if ( C4::Context->preference('marcflavour') eq 'MARC21' ) { >@@ -763,6 +765,10 @@ sub LinkBibHeadingsToAuthorities { > push(@{$results{'details'}}, { tag => $field->tag(), authid => undef, status => 'NONE_FOUND', auth_type => $heading->auth_type(), tag_to_report => $authority_type->auth_tag_to_report}) if $verbose; > } > } >+ elsif ( $match_count > 1 ) { >+ $results{'unlinked'}->{ $heading->display_form() }++; >+ push(@{$results{'details'}}, { tag => $field->tag(), authid => undef, status => 'MULTIPLE_MATCH', auth_type => $heading->auth_type(), tag_to_report => $authority_type->auth_tag_to_report}) if $verbose; >+ } > else { > $results{'unlinked'}->{ $heading->display_form() }++; > push(@{$results{'details'}}, { tag => $field->tag(), authid => undef, status => 'NONE_FOUND', auth_type => $heading->auth_type(), tag_to_report => $authority_type->auth_tag_to_report}) if $verbose; >-- >2.41.0
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 31185
:
137860
|
138518
|
139857
|
150610
|
150762
|
152507
| 152508