Bugzilla – Attachment 157723 Details for
Bug 23111
Setting a custom framework as the default for cataloguing is not possible
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23111: Use selected default framework if UseACQFrameworkForBiblioRecords set to Don't Use
Bug-23111-Use-selected-default-framework-if-UseACQ.patch (text/plain), 1.35 KB, created by
Aleisha Amohia
on 2023-10-24 02:44:17 UTC
(
hide
)
Description:
Bug 23111: Use selected default framework if UseACQFrameworkForBiblioRecords set to Don't Use
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2023-10-24 02:44:17 UTC
Size:
1.35 KB
patch
obsolete
>From af6d9e9a2b08710efecd0f3656dcb0ee5232a4ea Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Tue, 24 Oct 2023 02:42:55 +0000 >Subject: [PATCH] Bug 23111: Use selected default framework if > UseACQFrameworkForBiblioRecords set to Don't Use > >--- > acqui/addorder.pl | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > >diff --git a/acqui/addorder.pl b/acqui/addorder.pl >index c5b9847b019..106c11ee05b 100755 >--- a/acqui/addorder.pl >+++ b/acqui/addorder.pl >@@ -138,7 +138,7 @@ use Koha::Acquisition::Orders; > use Koha::Acquisition::Baskets; > use C4::Barcodes; > use Koha::DateUtils qw( dt_from_string ); >- >+use Koha::BiblioFrameworks; > use Koha::AdditionalFields; > > ### "-------------------- addorder.pl ----------" >@@ -323,8 +323,10 @@ if ( $basket->{is_standing} || $orderinfo->{quantity} ne '0' ) { > } > C4::Acquisition::FillWithDefaultValues( $record ); > >- # create the record in catalogue, with framework '' >- my ($biblionumber,$bibitemnum) = AddBiblio($record,''); >+ # create the record in catalogue >+ my $default_framework = >+ Koha::BiblioFrameworks->get_default ? Koha::BiblioFrameworks->get_default->frameworkcode : ''; >+ my ( $biblionumber, $bibitemnum ) = AddBiblio( $record, $default_framework ); > > $orderinfo->{biblionumber}=$biblionumber; > } >-- >2.30.2
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 23111
:
90550
|
90587
|
90588
|
91039
|
91040
|
91791
|
92184
|
102602
|
102603
|
104058
|
104059
|
104060
|
104061
|
104062
|
106560
|
112354
|
112468
|
138766
|
138767
|
138768
|
138769
|
138770
|
141565
|
141566
|
141567
|
141568
|
141569
|
157717
|
157718
|
157719
|
157720
|
157721
|
157722
| 157723