Lines 68-86
foreach my $bibnum (@biblionumbers) {
Link Here
|
68 |
$bibinfos{$bibnum} = \%bibinfo; |
68 |
$bibinfos{$bibnum} = \%bibinfo; |
69 |
} |
69 |
} |
70 |
|
70 |
|
71 |
my $found; |
|
|
72 |
|
73 |
# if we have an item selectionned, and the pickup branch is the same as the holdingbranch |
74 |
# of the document, we force the value $rank and $found . |
75 |
if ($checkitem ne ''){ |
76 |
$rank[0] = '0' unless C4::Context->preference('ReservesNeedReturns'); |
77 |
my $item = $checkitem; |
78 |
$item = GetItem($item); |
79 |
if ( $item->{'holdingbranch'} eq $branch ){ |
80 |
$found = 'W' unless C4::Context->preference('ReservesNeedReturns'); |
81 |
} |
82 |
} |
83 |
|
84 |
if ($type eq 'str8' && $borrower){ |
71 |
if ($type eq 'str8' && $borrower){ |
85 |
|
72 |
|
86 |
foreach my $biblionumber (keys %bibinfos) { |
73 |
foreach my $biblionumber (keys %bibinfos) { |
Lines 110-126
if ($type eq 'str8' && $borrower){
Link Here
|
110 |
if ($multi_hold) { |
97 |
if ($multi_hold) { |
111 |
my $bibinfo = $bibinfos{$biblionumber}; |
98 |
my $bibinfo = $bibinfos{$biblionumber}; |
112 |
AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,'a',[$biblionumber], |
99 |
AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,'a',[$biblionumber], |
113 |
$bibinfo->{rank},$startdate,$expirationdate,$notes,$bibinfo->{title},$checkitem,$found); |
100 |
$bibinfo->{rank},$startdate,$expirationdate,$notes,$bibinfo->{title},$checkitem, undef); |
114 |
} else { |
101 |
} else { |
115 |
if ($input->param('request') eq 'any'){ |
102 |
if ($input->param('request') eq 'any'){ |
116 |
# place a request on 1st available |
103 |
# place a request on 1st available |
117 |
AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,'a',\@realbi,$rank[0],$startdate,$expirationdate,$notes,$title,$checkitem,$found); |
104 |
AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,'a',\@realbi,undef,$startdate,$expirationdate,$notes,$title,$checkitem,undef); |
118 |
} elsif ($reqbib[0] ne ''){ |
105 |
} elsif ($reqbib[0] ne ''){ |
119 |
# FIXME : elsif probably never reached, (see top of the script) |
106 |
# FIXME : elsif probably never reached, (see top of the script) |
120 |
# place a request on a given item |
107 |
# place a request on a given item |
121 |
AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,'o',\@reqbib,$rank[0],$startdate,$expirationdate,$notes,$title,$checkitem, $found); |
108 |
AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,'o',\@reqbib,undef,$startdate,$expirationdate,$notes,$title,$checkitem,undef); |
122 |
} else { |
109 |
} else { |
123 |
AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,'a',\@realbi,$rank[0],$startdate,$expirationdate,$notes,$title,$checkitem, $found); |
110 |
AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,'a',\@realbi,undef,$startdate,$expirationdate,$notes,$title,$checkitem,undef); |
124 |
} |
111 |
} |
125 |
} |
112 |
} |
126 |
} |
113 |
} |
127 |
- |
|
|