|
Lines 150-155
BEGIN {
Link Here
|
| 150 |
|
150 |
|
| 151 |
AddReserve($branch,$borrowernumber,$biblionumber,$bibitems,$priority,$resdate,$expdate,$notes,$title,$checkitem,$found) |
151 |
AddReserve($branch,$borrowernumber,$biblionumber,$bibitems,$priority,$resdate,$expdate,$notes,$title,$checkitem,$found) |
| 152 |
|
152 |
|
|
|
153 |
Adds reserve and generates HOLDPLACED message. |
| 154 |
|
| 155 |
The following tables are available witin the HOLDPLACED message: |
| 156 |
|
| 157 |
branches |
| 158 |
borrowers |
| 159 |
biblio |
| 160 |
biblioitems |
| 161 |
items |
| 162 |
|
| 153 |
=cut |
163 |
=cut |
| 154 |
|
164 |
|
| 155 |
sub AddReserve { |
165 |
sub AddReserve { |
|
Lines 220-229
sub AddReserve {
Link Here
|
| 220 |
letter_code => 'HOLDPLACED', |
230 |
letter_code => 'HOLDPLACED', |
| 221 |
branchcode => $branch, |
231 |
branchcode => $branch, |
| 222 |
tables => { |
232 |
tables => { |
| 223 |
'branches' => $branch_details, |
233 |
'branches' => $branch_details, |
| 224 |
'borrowers' => $borrower, |
234 |
'borrowers' => $borrower, |
| 225 |
'biblio' => $biblionumber, |
235 |
'biblio' => $biblionumber, |
| 226 |
'items' => $checkitem, |
236 |
'biblioitems' => $biblionumber, |
|
|
237 |
'items' => $checkitem, |
| 227 |
}, |
238 |
}, |
| 228 |
) ) { |
239 |
) ) { |
| 229 |
|
240 |
|
|
Lines 1938-1943
sub _Findgroupreserve {
Link Here
|
| 1938 |
Sends a notification to the patron that their hold has been filled (through |
1949 |
Sends a notification to the patron that their hold has been filled (through |
| 1939 |
ModReserveAffect, _not_ ModReserveFill) |
1950 |
ModReserveAffect, _not_ ModReserveFill) |
| 1940 |
|
1951 |
|
|
|
1952 |
The letter code for this notice may be found using the following query: |
| 1953 |
|
| 1954 |
select distinct letter_code |
| 1955 |
from message_transports |
| 1956 |
inner join message_attributes using (message_attribute_id) |
| 1957 |
where message_name = 'Hold_Filled' |
| 1958 |
|
| 1959 |
This will probably sipmly be 'HOLD', but because it is defined in the database, |
| 1960 |
it is subject to addition or change. |
| 1961 |
|
| 1962 |
The following tables are availalbe witin the notice: |
| 1963 |
|
| 1964 |
branches |
| 1965 |
borrowers |
| 1966 |
biblio |
| 1967 |
biblioitems |
| 1968 |
reserves |
| 1969 |
items |
| 1970 |
|
| 1941 |
=cut |
1971 |
=cut |
| 1942 |
|
1972 |
|
| 1943 |
sub _koha_notify_reserve { |
1973 |
sub _koha_notify_reserve { |
|
Lines 1970-1979
sub _koha_notify_reserve {
Link Here
|
| 1970 |
module => 'reserves', |
2000 |
module => 'reserves', |
| 1971 |
branchcode => $reserve->{branchcode}, |
2001 |
branchcode => $reserve->{branchcode}, |
| 1972 |
tables => { |
2002 |
tables => { |
| 1973 |
'branches' => $branch_details, |
2003 |
'branches' => $branch_details, |
| 1974 |
'borrowers' => $borrower, |
2004 |
'borrowers' => $borrower, |
| 1975 |
'biblio' => $biblionumber, |
2005 |
'biblio' => $biblionumber, |
| 1976 |
'reserves' => $reserve, |
2006 |
'biblioitems' => $biblionumber, |
|
|
2007 |
'reserves' => $reserve, |
| 1977 |
'items', $reserve->{'itemnumber'}, |
2008 |
'items', $reserve->{'itemnumber'}, |
| 1978 |
}, |
2009 |
}, |
| 1979 |
substitute => { today => C4::Dates->new()->output() }, |
2010 |
substitute => { today => C4::Dates->new()->output() }, |
|
Lines 2307-2313
sub GetReserveId {
Link Here
|
| 2307 |
|
2338 |
|
| 2308 |
ReserveSlip($branchcode, $borrowernumber, $biblionumber) |
2339 |
ReserveSlip($branchcode, $borrowernumber, $biblionumber) |
| 2309 |
|
2340 |
|
| 2310 |
Returns letter hash ( see C4::Letters::GetPreparedLetter ) or undef |
2341 |
Returns letter hash ( see C4::Letters::GetPreparedLetter ) or undef |
|
|
2342 |
|
| 2343 |
The letter code will be RESERVESLIP, and the following tables are |
| 2344 |
available within the slip: |
| 2345 |
|
| 2346 |
reserves |
| 2347 |
branches |
| 2348 |
borrowers |
| 2349 |
biblio |
| 2350 |
biblioitems |
| 2351 |
items |
| 2311 |
|
2352 |
|
| 2312 |
=cut |
2353 |
=cut |
| 2313 |
|
2354 |
|
|
Lines 2331-2336
sub ReserveSlip {
Link Here
|
| 2331 |
'branches' => $reserve->{branchcode}, |
2372 |
'branches' => $reserve->{branchcode}, |
| 2332 |
'borrowers' => $reserve->{borrowernumber}, |
2373 |
'borrowers' => $reserve->{borrowernumber}, |
| 2333 |
'biblio' => $reserve->{biblionumber}, |
2374 |
'biblio' => $reserve->{biblionumber}, |
|
|
2375 |
'biblioitems' => $reserve->{biblionumber}, |
| 2334 |
'items' => $reserve->{itemnumber}, |
2376 |
'items' => $reserve->{itemnumber}, |
| 2335 |
}, |
2377 |
}, |
| 2336 |
); |
2378 |
); |
| 2337 |
- |
|
|