From a5a22642bb950def5774c9045cc6e0fd2f2ea974 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 24 May 2019 08:51:58 +0200 Subject: [PATCH] Bug 22970: Allow to change homebranch in batch add course reserves Test plan: 1. Create a course (disabled) 2. Add multiple reserves to this course using 'batch add' and set a homebranch different from the items homebranch 3. Enable the course 4. Verify that the items homebranch have changed 5. Disable the course 6. Verify that the items homebranch were reset to their initial value Depends on bug 22630 Signed-off-by: Liz Rea --- course_reserves/batch_add_items.pl | 2 ++ .../prog/en/modules/course_reserves/batch_add_items.tt | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/course_reserves/batch_add_items.pl b/course_reserves/batch_add_items.pl index 76d0caa0b5..e0b567304d 100755 --- a/course_reserves/batch_add_items.pl +++ b/course_reserves/batch_add_items.pl @@ -37,6 +37,7 @@ my $barcodes = $cgi->param('barcodes') || q{}; my $itype = $cgi->param('itype'); my $ccode = $cgi->param('ccode'); +my $homebranch = $cgi->param('homebranch'); my $holdingbranch = $cgi->param('holdingbranch'); my $location = $cgi->param('location'); my $staff_note = $cgi->param('staff_note'); @@ -81,6 +82,7 @@ if ( $course_id && $course ) { itemnumber => $item->id, itype => $itype, ccode => $ccode, + homebranch => $homebranch, holdingbranch => $holdingbranch, location => $location, ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt index ce67aab3ff..2a58399574 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt @@ -66,6 +66,16 @@
  • + + +
  • + +