Bugzilla – Attachment 78488 Details for
Bug 7534
Add an option on library level to indicate if a library can be chosen as pick-up location
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7534 [QA Followup]: Don't do pickup branch checking for determining holdability in the OPAC
Bug-7534-QA-Followup-Dont-do-pickup-branch-checkin.patch (text/plain), 3.34 KB, created by
Kyle M Hall (khall)
on 2018-09-06 13:47:30 UTC
(
hide
)
Description:
Bug 7534 [QA Followup]: Don't do pickup branch checking for determining holdability in the OPAC
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2018-09-06 13:47:30 UTC
Size:
3.34 KB
patch
obsolete
>From 7ba6871ca17804af03d1b766664b583ba7a22342 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutiosn.com> >Date: Thu, 6 Sep 2018 08:21:24 -0400 >Subject: [PATCH] Bug 7534 [QA Followup]: Don't do pickup branch checking for > determining holdability in the OPAC > >--- > Koha/Schema/Result/Branch.pm | 12 ++++++++++-- > opac/opac-reserve.pl | 8 ++++---- > 2 files changed, 14 insertions(+), 6 deletions(-) > >diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm >index bb571b18de..bb78882556 100644 >--- a/Koha/Schema/Result/Branch.pm >+++ b/Koha/Schema/Result/Branch.pm >@@ -140,6 +140,12 @@ __PACKAGE__->table("branches"); > is_nullable: 1 > size: 16 > >+=head2 pickup_location >+ >+ data_type: 'tinyint' >+ default_value: 1 >+ is_nullable: 0 >+ > =cut > > __PACKAGE__->add_columns( >@@ -187,6 +193,8 @@ __PACKAGE__->add_columns( > { data_type => "varchar", is_nullable => 1, size => 255 }, > "marcorgcode", > { data_type => "varchar", is_nullable => 1, size => 16 }, >+ "pickup_location", >+ { data_type => "tinyint", default_value => 1, is_nullable => 0 }, > ); > > =head1 PRIMARY KEY >@@ -609,8 +617,8 @@ __PACKAGE__->has_many( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QOMUFz2EjvAVWCkIpNmvtg >+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2018-09-06 11:46:42 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hoXg+9Mgi3IglRt0NgHPCQ > > > # You can replace this text with custom code or comments, and it will be preserved on regeneration >diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl >index 89af3b0e52..684e57d1c3 100755 >--- a/opac/opac-reserve.pl >+++ b/opac/opac-reserve.pl >@@ -269,10 +269,10 @@ if ( $query->param('place_reserve') ) { > > my $rank = $biblioData->{rank}; > if ( $itemNum ne '' ) { >- $canreserve = 1 if CanItemBeReserved( $borrowernumber, $itemNum, $branch )->{status} eq 'OK'; >+ $canreserve = 1 if CanItemBeReserved( $borrowernumber, $itemNum )->{status} eq 'OK'; > } > else { >- $canreserve = 1 if CanBookBeReserved( $borrowernumber, $biblioNum, $branch )->{status} eq 'OK'; >+ $canreserve = 1 if CanBookBeReserved( $borrowernumber, $biblioNum )->{status} eq 'OK'; > > # Inserts a null into the 'itemnumber' field of 'reserves' table. > $itemNum = undef; >@@ -525,7 +525,7 @@ foreach my $biblioNum (@biblionumbers) { > my $policy_holdallowed = !$itemLoopIter->{already_reserved}; > $policy_holdallowed &&= > IsAvailableForItemLevelRequest($itemInfo,$patron_unblessed) && >- CanItemBeReserved($borrowernumber,$itemNum, $branch)->{status} eq 'OK'; >+ CanItemBeReserved( $borrowernumber, $itemNum )->{status} eq 'OK'; > > if ($policy_holdallowed) { > my $opac_hold_policy = Koha::IssuingRules->get_opacitemholds_policy( { item => $item, patron => $patron } ); >@@ -585,7 +585,7 @@ foreach my $biblioNum (@biblionumbers) { > } > } > >- $biblioLoopIter{holdable} &&= CanBookBeReserved($borrowernumber,$biblioNum,$branch)->{status} eq 'OK'; >+ $biblioLoopIter{holdable} &&= CanBookBeReserved( $borrowernumber, $biblioNum )->{status} eq 'OK'; > > # For multiple holds per record, if a patron has previously placed a hold, > # the patron can only place more holds of the same type. That is, if the >-- >2.11.0
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 7534
:
60014
|
60015
|
60016
|
60017
|
60018
|
60022
|
60023
|
60781
|
60794
|
60795
|
60796
|
60797
|
60798
|
60799
|
60878
|
60879
|
60880
|
60881
|
60882
|
60883
|
61044
|
61045
|
61046
|
61047
|
61273
|
61274
|
61275
|
61276
|
61277
|
61278
|
61279
|
61280
|
77847
|
77848
|
77849
|
77850
|
77851
|
77852
|
77853
|
77854
|
77855
|
77856
|
78160
|
78161
|
78162
|
78163
|
78164
|
78165
|
78166
|
78167
|
78168
|
78169
|
78170
|
78171
|
78477
|
78478
|
78479
|
78480
|
78481
|
78482
|
78483
|
78484
|
78485
|
78486
|
78487
|
78488
|
78489
|
78495
|
78540
|
78548
|
84852