Lines 147-152
BEGIN {
Link Here
|
147 |
|
147 |
|
148 |
AddReserve($branch,$borrowernumber,$biblionumber,$bibitems,$priority,$resdate,$expdate,$notes,$title,$checkitem,$found) |
148 |
AddReserve($branch,$borrowernumber,$biblionumber,$bibitems,$priority,$resdate,$expdate,$notes,$title,$checkitem,$found) |
149 |
|
149 |
|
|
|
150 |
Adds reserve and generates HOLDPLACED message. |
151 |
|
152 |
The following tables are available witin the HOLDPLACED message: |
153 |
|
154 |
branches |
155 |
borrowers |
156 |
biblio |
157 |
biblioitems |
158 |
items |
159 |
|
150 |
=cut |
160 |
=cut |
151 |
|
161 |
|
152 |
sub AddReserve { |
162 |
sub AddReserve { |
Lines 204-213
sub AddReserve {
Link Here
|
204 |
letter_code => 'HOLDPLACED', |
214 |
letter_code => 'HOLDPLACED', |
205 |
branchcode => $branch, |
215 |
branchcode => $branch, |
206 |
tables => { |
216 |
tables => { |
207 |
'branches' => $branch_details, |
217 |
'branches' => $branch_details, |
208 |
'borrowers' => $borrower, |
218 |
'borrowers' => $borrower, |
209 |
'biblio' => $biblionumber, |
219 |
'biblio' => $biblionumber, |
210 |
'items' => $checkitem, |
220 |
'biblioitems' => $biblionumber, |
|
|
221 |
'items' => $checkitem, |
211 |
}, |
222 |
}, |
212 |
) ) { |
223 |
) ) { |
213 |
|
224 |
|
Lines 1922-1927
sub _Findgroupreserve {
Link Here
|
1922 |
Sends a notification to the patron that their hold has been filled (through |
1933 |
Sends a notification to the patron that their hold has been filled (through |
1923 |
ModReserveAffect, _not_ ModReserveFill) |
1934 |
ModReserveAffect, _not_ ModReserveFill) |
1924 |
|
1935 |
|
|
|
1936 |
The letter code for this notice may be found using the following query: |
1937 |
|
1938 |
select distinct letter_code |
1939 |
from message_transports |
1940 |
inner join message_attributes using (message_attribute_id) |
1941 |
where message_name = 'Hold_Filled' |
1942 |
|
1943 |
This will probably sipmly be 'HOLD', but because it is defined in the database, |
1944 |
it is subject to addition or change. |
1945 |
|
1946 |
The following tables are availalbe witin the notice: |
1947 |
|
1948 |
branches |
1949 |
borrowers |
1950 |
biblio |
1951 |
biblioitems |
1952 |
reserves |
1953 |
items |
1954 |
|
1925 |
=cut |
1955 |
=cut |
1926 |
|
1956 |
|
1927 |
sub _koha_notify_reserve { |
1957 |
sub _koha_notify_reserve { |
Lines 1954-1963
sub _koha_notify_reserve {
Link Here
|
1954 |
module => 'reserves', |
1984 |
module => 'reserves', |
1955 |
branchcode => $reserve->{branchcode}, |
1985 |
branchcode => $reserve->{branchcode}, |
1956 |
tables => { |
1986 |
tables => { |
1957 |
'branches' => $branch_details, |
1987 |
'branches' => $branch_details, |
1958 |
'borrowers' => $borrower, |
1988 |
'borrowers' => $borrower, |
1959 |
'biblio' => $biblionumber, |
1989 |
'biblio' => $biblionumber, |
1960 |
'reserves' => $reserve, |
1990 |
'biblioitems' => $biblionumber, |
|
|
1991 |
'reserves' => $reserve, |
1961 |
'items', $reserve->{'itemnumber'}, |
1992 |
'items', $reserve->{'itemnumber'}, |
1962 |
}, |
1993 |
}, |
1963 |
substitute => { today => C4::Dates->new()->output() }, |
1994 |
substitute => { today => C4::Dates->new()->output() }, |
Lines 2291-2297
sub GetReserveId {
Link Here
|
2291 |
|
2322 |
|
2292 |
ReserveSlip($branchcode, $borrowernumber, $biblionumber) |
2323 |
ReserveSlip($branchcode, $borrowernumber, $biblionumber) |
2293 |
|
2324 |
|
2294 |
Returns letter hash ( see C4::Letters::GetPreparedLetter ) or undef |
2325 |
Returns letter hash ( see C4::Letters::GetPreparedLetter ) or undef |
|
|
2326 |
|
2327 |
The letter code will be RESERVESLIP, and the following tables are |
2328 |
available within the slip: |
2329 |
|
2330 |
reserves |
2331 |
branches |
2332 |
borrowers |
2333 |
biblio |
2334 |
biblioitems |
2335 |
items |
2295 |
|
2336 |
|
2296 |
=cut |
2337 |
=cut |
2297 |
|
2338 |
|
Lines 2315-2320
sub ReserveSlip {
Link Here
|
2315 |
'branches' => $reserve->{branchcode}, |
2356 |
'branches' => $reserve->{branchcode}, |
2316 |
'borrowers' => $reserve->{borrowernumber}, |
2357 |
'borrowers' => $reserve->{borrowernumber}, |
2317 |
'biblio' => $reserve->{biblionumber}, |
2358 |
'biblio' => $reserve->{biblionumber}, |
|
|
2359 |
'biblioitems' => $reserve->{biblionumber}, |
2318 |
'items' => $reserve->{itemnumber}, |
2360 |
'items' => $reserve->{itemnumber}, |
2319 |
}, |
2361 |
}, |
2320 |
); |
2362 |
); |
2321 |
- |
|
|