Bugzilla – Attachment 123211 Details for
Bug 28765
sub find_value not used in tools/batchMod.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28765: Remove sub find_value from batchMod.pl
Bug-28765-Remove-sub-findvalue-from-batchModpl.patch (text/plain), 1.13 KB, created by
Jonathan Druart
on 2021-07-27 12:56:28 UTC
(
hide
)
Description:
Bug 28765: Remove sub find_value from batchMod.pl
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-07-27 12:56:28 UTC
Size:
1.13 KB
patch
obsolete
>From 06dfe2fa6dbee0c882f2911ccefb2de35723be86 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 26 Jul 2021 18:31:43 +0200 >Subject: [PATCH] Bug 28765: Remove sub find_value from batchMod.pl > >It has never been used and should be removed > >Test plan: >Search for "find_value" in the file and confirm that there is no more >occurrence >--- > tools/batchMod.pl | 16 ---------------- > 1 file changed, 16 deletions(-) > >diff --git a/tools/batchMod.pl b/tools/batchMod.pl >index 4f0efe833e7..0f57a2debd9 100755 >--- a/tools/batchMod.pl >+++ b/tools/batchMod.pl >@@ -757,19 +757,3 @@ sub UpdateMarcWith { > } > return $modified; > } >- >-sub find_value { >- my ($tagfield,$insubfield,$record) = @_; >- my $result; >- my $indicator; >- foreach my $field ($record->field($tagfield)) { >- my @subfields = $field->subfields(); >- foreach my $subfield (@subfields) { >- if (@$subfield[0] eq $insubfield) { >- $result .= @$subfield[1]; >- $indicator = $field->indicator(1).$field->indicator(2); >- } >- } >- } >- return($indicator,$result); >-} >-- >2.20.1
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 28765
:
123211
|
123353
|
123735