Bugzilla – Attachment 178504 Details for
Bug 29099
Add support for item bundles in the inventory tool
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29099: Fix item bundle fetch in inventory script
Bug-29099-Fix-item-bundle-fetch-in-inventory-scrip.patch (text/plain), 2.07 KB, created by
Martin Renvoize (ashimema)
on 2025-02-21 14:23:08 UTC
(
hide
)
Description:
Bug 29099: Fix item bundle fetch in inventory script
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-02-21 14:23:08 UTC
Size:
2.07 KB
patch
obsolete
>From fcc565f02597fa7c65a4fe9632a2ae90f513d8f4 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 8 Jan 2025 14:14:43 +0000 >Subject: [PATCH] Bug 29099: Fix item bundle fetch in inventory script > >Using the newly created Koha objects. >--- > .../prog/en/modules/tools/inventory.tt | 2 +- > tools/inventory.pl | 13 ++++--------- > 2 files changed, 5 insertions(+), 10 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >index b7203b08469..68fa5795faa 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >@@ -187,7 +187,7 @@ > <select id="items_bundle" name="items_bundle"> > <option value=""></option> > [% FOREACH items_bundle IN items_bundles %] >- <option value="[% items_bundle.items_bundle_id | html %]">[% items_bundle.biblionumber.title | html %]</option> >+ <option value="[% items_bundle.host | html %]">[% items_bundle.host_item.title | html %]</option> > [% END %] > </select> > </li> >diff --git a/tools/inventory.pl b/tools/inventory.pl >index a0128b23aa3..195e4681898 100755 >--- a/tools/inventory.pl >+++ b/tools/inventory.pl >@@ -71,15 +71,10 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( > } > ); > >-my $schema = Koha::Database->new()->schema(); >-my $items_bundle_rs = $schema->resultset('ItemsBundle'); >-my @items_bundles = $items_bundle_rs->search( >- undef, >- { >- order_by => { -asc => ['biblionumber.title'] }, >- join => ['biblionumber'], >- } >-); >+my @items_bundles = Koha::Item::Bundles->search( >+ {}, >+ { group_by => ['host'], columns => ['host'] } >+)->as_list; > my @authorised_value_list; > my $authorisedvalue_categories = ''; > >-- >2.48.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 29099
:
125207
|
140898
|
146009
|
148550
|
148555
|
148556
|
176237
|
176238
|
176239
|
178502
|
178503
| 178504