Lines 166-172
sub AddReserve {
Link Here
|
166 |
} |
166 |
} |
167 |
if ( C4::Context->preference( 'AllowHoldDateInFuture' ) ) { |
167 |
if ( C4::Context->preference( 'AllowHoldDateInFuture' ) ) { |
168 |
# Make room in reserves for this before those of a later reserve date |
168 |
# Make room in reserves for this before those of a later reserve date |
169 |
$priority = _ShiftPriorityByDateAndPriority( $biblionumber, $priority ); |
169 |
$priority = _ShiftPriority( $biblionumber, $priority ); |
170 |
} |
170 |
} |
171 |
my $waitingdate; |
171 |
my $waitingdate; |
172 |
|
172 |
|
Lines 2015-2023
sub _koha_notify_reserve {
Link Here
|
2015 |
|
2015 |
|
2016 |
} |
2016 |
} |
2017 |
|
2017 |
|
2018 |
=head2 _ShiftPriorityByDateAndPriority |
2018 |
=head2 _ShiftPriority |
2019 |
|
2019 |
|
2020 |
$new_priority = _ShiftPriorityByDateAndPriority( $biblionumber, $reservedate, $priority ); |
2020 |
$new_priority = _ShiftPriority( $biblionumber, $priority ); |
2021 |
|
2021 |
|
2022 |
This increments the priority of all reserves after the one |
2022 |
This increments the priority of all reserves after the one |
2023 |
with either the lowest date after C<$reservedate> |
2023 |
with either the lowest date after C<$reservedate> |
Lines 2033-2039
the sub accounts for that too.
Link Here
|
2033 |
|
2033 |
|
2034 |
=cut |
2034 |
=cut |
2035 |
|
2035 |
|
2036 |
sub _ShiftPriorityByDateAndPriority { |
2036 |
sub _ShiftPriority { |
2037 |
my ( $biblio, $new_priority ) = @_; |
2037 |
my ( $biblio, $new_priority ) = @_; |
2038 |
|
2038 |
|
2039 |
my $dbh = C4::Context->dbh; |
2039 |
my $dbh = C4::Context->dbh; |
Lines 2330-2336
priority is based on the set of holds whose start date falls before
Link Here
|
2330 |
the parameter value. |
2330 |
the parameter value. |
2331 |
|
2331 |
|
2332 |
After calculation of this priority, it is recommended to call |
2332 |
After calculation of this priority, it is recommended to call |
2333 |
_ShiftPriorityByDateAndPriority. Note that this is currently done in |
2333 |
_ShiftPriority. Note that this is currently done in |
2334 |
AddReserves. |
2334 |
AddReserves. |
2335 |
|
2335 |
|
2336 |
=cut |
2336 |
=cut |
2337 |
- |
|
|