Bugzilla – Attachment 176239 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.09 KB, created by
Martin Renvoize (ashimema)
on 2025-01-08 14:23:33 UTC
(
hide
)
Description:
Bug 29099: Fix item bundle fetch in inventory script
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-01-08 14:23:33 UTC
Size:
2.09 KB
patch
obsolete
>From 56311ba29d506ac3db7dde301c9b48c31416ba8e 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. >--- > .../intranet-tmpl/prog/en/modules/tools/inventory.tt | 2 +- > tools/inventory.pl | 10 ++++------ > 2 files changed, 5 insertions(+), 7 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 6a9cfe79b30..363e2338534 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >@@ -180,7 +180,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 301d0399377..6559bed30e9 100755 >--- a/tools/inventory.pl >+++ b/tools/inventory.pl >@@ -70,12 +70,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.47.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