|
Lines 1635-1641
sub SuspendAll {
Link Here
|
| 1635 |
FixPriority({ |
1635 |
FixPriority({ |
| 1636 |
reserve_id => $reserve_id, |
1636 |
reserve_id => $reserve_id, |
| 1637 |
[rank => $rank,] |
1637 |
[rank => $rank,] |
| 1638 |
[ignoreSetLowestRank => $ignoreSetLowestRank] |
|
|
| 1639 |
}); |
1638 |
}); |
| 1640 |
|
1639 |
|
| 1641 |
or |
1640 |
or |
|
Lines 1657-1676
then have reserves.priority set so that the first non-captured hold
Link Here
|
| 1657 |
has its priority set to 1, the second non-captured hold has its priority |
1656 |
has its priority set to 1, the second non-captured hold has its priority |
| 1658 |
set to 2, and so forth. |
1657 |
set to 2, and so forth. |
| 1659 |
|
1658 |
|
| 1660 |
In both cases, holds that have the lowestPriority flag on are have their |
1659 |
In both cases, holds that have the lowestPriority flag on have their |
| 1661 |
priority adjusted to ensure that they remain at the end of the line. |
1660 |
priority adjusted to ensure that they remain at the end of the line. |
| 1662 |
|
1661 |
|
| 1663 |
Note that the ignoreSetLowestRank parameter is meant to be used only |
|
|
| 1664 |
when FixPriority calls itself. |
| 1665 |
|
| 1666 |
=cut |
1662 |
=cut |
| 1667 |
|
1663 |
|
| 1668 |
sub FixPriority { |
1664 |
sub FixPriority { |
| 1669 |
my ($params) = @_; |
1665 |
my ($params) = @_; |
| 1670 |
my $reserve_id = $params->{reserve_id}; |
1666 |
my $reserve_id = $params->{reserve_id}; |
| 1671 |
my $rank = $params->{rank} // ''; |
1667 |
my $rank = $params->{rank} // ''; |
| 1672 |
my $ignoreSetLowestRank = $params->{ignoreSetLowestRank}; |
1668 |
my $biblionumber = $params->{biblionumber}; |
| 1673 |
my $biblionumber = $params->{biblionumber}; |
|
|
| 1674 |
|
1669 |
|
| 1675 |
my $dbh = C4::Context->dbh; |
1670 |
my $dbh = C4::Context->dbh; |
| 1676 |
|
1671 |
|
| 1677 |
- |
|
|