Bugzilla – Attachment 58934 Details for
Bug 17196
Move marcxml out of the biblioitems table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17196 - (QA Followup) Use items from Koha::Biblio
Bug-17196---QA-Followup-Use-items-from-KohaBiblio.patch (text/plain), 1.47 KB, created by
Marcel de Rooy
on 2017-01-13 09:41:52 UTC
(
hide
)
Description:
Bug 17196 - (QA Followup) Use items from Koha::Biblio
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2017-01-13 09:41:52 UTC
Size:
1.47 KB
patch
obsolete
>From a57218dc14329541bbcd71c5a525f687926c2453 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 29 Dec 2016 18:15:40 +0000 >Subject: [PATCH] Bug 17196 - (QA Followup) Use items from Koha::Biblio >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Amended: Using items from Koha::Biblio seems better :) >--- > misc/cronjobs/delete_records_via_leader.pl | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/misc/cronjobs/delete_records_via_leader.pl b/misc/cronjobs/delete_records_via_leader.pl >index baba5dc..b4d8781 100755 >--- a/misc/cronjobs/delete_records_via_leader.pl >+++ b/misc/cronjobs/delete_records_via_leader.pl >@@ -36,7 +36,7 @@ use Getopt::Long; > use C4::Biblio; > use C4::Items; > use Koha::Database; >-use Koha::Biblioitems; >+use Koha::Biblios; > use Koha::Biblio::Metadatas; > > my $delete_items; >@@ -86,8 +86,9 @@ foreach my $m (@metadatas) { > > if ($delete_items) { > my $deleted_count = 0; >- my $biblioitem = Koha::Biblioitems->find( $biblionumber ); >- foreach my $item ( $biblioitem->items() ) { >+ my $biblio = Koha::Biblios->find( $biblionumber ); >+ my @items = $biblio ? $biblio->items : (); >+ foreach my $item ( @items ) { > my $itemnumber = $item->itemnumber(); > > my $error = $test ? "Test mode enabled" : DelItemCheck( $biblionumber, $itemnumber ); >-- >2.1.4
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 17196
:
54910
|
54911
|
54912
|
54913
|
54914
|
54918
|
55856
|
55857
|
55858
|
55859
|
55860
|
55904
|
55905
|
55906
|
55907
|
55908
|
55921
|
55922
|
55950
|
55951
|
56038
|
57835
|
57836
|
57837
|
57838
|
57839
|
57840
|
57841
|
57842
|
58000
|
58007
|
58008
|
58023
|
58024
|
58025
|
58026
|
58027
|
58028
|
58029
|
58030
|
58031
|
58032
|
58037
|
58038
|
58039
|
58040
|
58041
|
58042
|
58043
|
58044
|
58045
|
58046
|
58047
|
58048
|
58504
|
58505
|
58506
|
58507
|
58508
|
58509
|
58510
|
58511
|
58512
|
58513
|
58514
|
58516
|
58517
|
58923
|
58924
|
58925
|
58926
|
58927
|
58928
|
58929
|
58930
|
58931
|
58932
|
58933
| 58934 |
58935
|
58936
|
58937
|
58938
|
58939
|
58943
|
58946
|
58947