Bugzilla – Attachment 173862 Details for
Bug 36603
UNIMARC: automatically copy the ISNI number over when linking authorities with authorities
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36603: (QA follow-up) Resolve two conditional declarations
Bug-36603-QA-follow-up-Resolve-two-conditional-dec.patch (text/plain), 1.58 KB, created by
Marcel de Rooy
on 2024-11-01 10:23:51 UTC
(
hide
)
Description:
Bug 36603: (QA follow-up) Resolve two conditional declarations
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-11-01 10:23:51 UTC
Size:
1.58 KB
patch
obsolete
>From 09fee704d3e76995a94c2ce3660b253a4d14b5f9 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 1 Nov 2024 10:20:43 +0000 >Subject: [PATCH] Bug 36603: (QA follow-up) Resolve two conditional > declarations >Content-Type: text/plain; charset=utf-8 > >QA tools reported: > FAIL authorities/blinddetail-biblio-search.pl > FAIL critic > # Variables::ProhibitConditionalDeclarations: Got 2 violation(s). > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > authorities/blinddetail-biblio-search.pl | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/authorities/blinddetail-biblio-search.pl b/authorities/blinddetail-biblio-search.pl >index 91bc1dd6ee..cce4ec481d 100755 >--- a/authorities/blinddetail-biblio-search.pl >+++ b/authorities/blinddetail-biblio-search.pl >@@ -113,9 +113,9 @@ if ($authid) { > # Manual (online ed., 1.0.0, 2023), pp. 350, 363, 385. > if ( C4::Context->preference('marcflavour') eq 'UNIMARC' ) { > my $isnifield = $record->field('010'); >- my $isnisubfield = $isnifield->subfield('a') if defined $isnifield; >- my $isninumber = $isnisubfield >- if defined $isnisubfield && ( $auth_type->auth_tag_to_report =~ /^(200|210|220)$/ ); >+ my $isnisubfield = $isnifield ? $isnifield->subfield('a') : undef; >+ my $isninumber = >+ defined $isnisubfield && ( $auth_type->auth_tag_to_report =~ /^(200|210|220)$/ ) ? $isnisubfield : undef; > push( @subfield_loop, { marc_subfield => 'o', marc_values => $isninumber } ) if defined $isninumber; > } > >-- >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 36603
:
164950
|
164952
|
167178
|
173861
| 173862