Bugzilla – Attachment 193977 Details for
Bug 41900
Subfield e source of acquisition no longer filled when importing records from a file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41900: Convert source of acquisition to a pre-populated vendor dropdown
Bug-41900-Convert-source-of-acquisition-to-a-pre-p.patch (text/plain), 1.76 KB, created by
Matt Blenkinsop
on 2026-02-26 10:16:51 UTC
(
hide
)
Description:
Bug 41900: Convert source of acquisition to a pre-populated vendor dropdown
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2026-02-26 10:16:51 UTC
Size:
1.76 KB
patch
obsolete
>From 9122b46d00cf8b467545cc8fda6a148ad5c71398 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> >Date: Thu, 26 Feb 2026 10:14:43 +0000 >Subject: [PATCH] Bug 41900: Convert source of acquisition to a pre-populated > vendor dropdown > >Test plan: >1) Choose a vendor and select to add to a basket from either a new or staged file >2) Stage and import the file >3) On the screen to add the orders, click on the 'Item information' tab >4) In subfield e - Source of acquisition there should be a dropdown of vendors with your chosen vendor pre-populated >--- > acqui/addorderiso2709.pl | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > >diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl >index 12d0d25ed83..496e4fb25c9 100755 >--- a/acqui/addorderiso2709.pl >+++ b/acqui/addorderiso2709.pl >@@ -163,6 +163,24 @@ if ( $op eq "" ) { > $cell = PrepareItemrecordDisplay( '', '', undef, '' ); > $template->param( 'NoACQframework' => 1 ); > } >+ >+ my @bookseller_field = grep( $_->{kohafield} eq "items.booksellerid", @{ $cell->{iteminformation} } ); >+ if ( scalar(@bookseller_field) ) { >+ my $vendors = Koha::Acquisition::Booksellers->search; >+ my @authorised_values; >+ my %authorised_lib; >+ while ( my $vendor = $vendors->next ) { >+ push @authorised_values, $vendor->id; >+ $authorised_lib{ $vendor->id } = $vendor->name; >+ } >+ $bookseller_field[0]->{marc_value} = { >+ type => 'select', >+ values => \@authorised_values, >+ labels => \%authorised_lib, >+ default => $booksellerid, >+ }; >+ } >+ > my @itemloop; > push @itemloop, $cell; > >-- >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 41900
:
193977
|
194043