Bugzilla – Attachment 90059 Details for
Bug 22970
Add ability to change homebranch in batch add course reserves
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22970: Allow to change homebranch in batch add course reserves
Bug-22970-Allow-to-change-homebranch-in-batch-add-.patch (text/plain), 2.82 KB, created by
Julian Maurice
on 2019-05-24 06:56:40 UTC
(
hide
)
Description:
Bug 22970: Allow to change homebranch in batch add course reserves
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2019-05-24 06:56:40 UTC
Size:
2.82 KB
patch
obsolete
>From 51314409c39bc5a95f66987a751ca62e3fce58bf Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >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 >--- > 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 >@@ -65,6 +65,16 @@ > </select> > </li> > >+ <li> >+ <label class="required" for="homebranch">Home library:</label> >+ <select id="homebranch" name="homebranch"> >+ <option value="">LEAVE UNCHANGED</option> >+ [% FOREACH b IN Branches.all() %] >+ <option value="[% b.branchcode | html %]">[% b.branchname | html %]</option> >+ [% END %] >+ </select> >+ </li> >+ > <li> > <label class="required" for="holdingbranch">Holding library:</label> > <select id="holdingbranch" name="holdingbranch"> >-- >2.20.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 22970
:
90059
|
90062
|
104163
|
104485