Lines 1260-1266
sub ModSubscription {
Link Here
|
1260 |
$whenmorethan1, $setto1, $lastvalue1, $innerloop1, $add2, $every2, $whenmorethan2, $setto2, |
1260 |
$whenmorethan1, $setto1, $lastvalue1, $innerloop1, $add2, $every2, $whenmorethan2, $setto2, |
1261 |
$lastvalue2, $innerloop2, $add3, $every3, $whenmorethan3, $setto3, $lastvalue3, $innerloop3, |
1261 |
$lastvalue2, $innerloop2, $add3, $every3, $whenmorethan3, $setto3, $lastvalue3, $innerloop3, |
1262 |
$numberingmethod, $status, $biblionumber, $callnumber, $notes, $letter, $hemisphere, $manualhistory, |
1262 |
$numberingmethod, $status, $biblionumber, $callnumber, $notes, $letter, $hemisphere, $manualhistory, |
1263 |
$internalnotes, $serialsadditems, $staffdisplaycount, $opacdisplaycount, $graceperiod, $location, $enddate, $subscriptionid |
1263 |
$internalnotes, $serialsadditems, $staffdisplaycount, $opacdisplaycount, $graceperiod, $location, $enddate, $subscriptionid, |
|
|
1264 |
$seriallifespan |
1264 |
) = @_; |
1265 |
) = @_; |
1265 |
|
1266 |
|
1266 |
# warn $irregularity; |
1267 |
# warn $irregularity; |
Lines 1274-1280
sub ModSubscription {
Link Here
|
1274 |
numberingmethod=?, status=?, biblionumber=?, callnumber=?, notes=?, |
1275 |
numberingmethod=?, status=?, biblionumber=?, callnumber=?, notes=?, |
1275 |
letter=?, hemisphere=?,manualhistory=?,internalnotes=?,serialsadditems=?, |
1276 |
letter=?, hemisphere=?,manualhistory=?,internalnotes=?,serialsadditems=?, |
1276 |
staffdisplaycount = ?,opacdisplaycount = ?, graceperiod = ?, location = ? |
1277 |
staffdisplaycount = ?,opacdisplaycount = ?, graceperiod = ?, location = ? |
1277 |
,enddate=? |
1278 |
,enddate=?, seriallifespan=? |
1278 |
WHERE subscriptionid = ?"; |
1279 |
WHERE subscriptionid = ?"; |
1279 |
|
1280 |
|
1280 |
#warn "query :".$query; |
1281 |
#warn "query :".$query; |
Lines 1291-1297
sub ModSubscription {
Link Here
|
1291 |
$numberingmethod, $status, $biblionumber, $callnumber, |
1292 |
$numberingmethod, $status, $biblionumber, $callnumber, |
1292 |
$notes, $letter, $hemisphere, ( $manualhistory ? $manualhistory : 0 ), |
1293 |
$notes, $letter, $hemisphere, ( $manualhistory ? $manualhistory : 0 ), |
1293 |
$internalnotes, $serialsadditems, $staffdisplaycount, $opacdisplaycount, |
1294 |
$internalnotes, $serialsadditems, $staffdisplaycount, $opacdisplaycount, |
1294 |
$graceperiod, $location, $enddate, $subscriptionid |
1295 |
$graceperiod, $location, $enddate, $seriallifespan, $subscriptionid |
1295 |
); |
1296 |
); |
1296 |
my $rows = $sth->rows; |
1297 |
my $rows = $sth->rows; |
1297 |
|
1298 |
|
Lines 1317-1328
the id of this new subscription
Link Here
|
1317 |
=cut |
1318 |
=cut |
1318 |
|
1319 |
|
1319 |
sub NewSubscription { |
1320 |
sub NewSubscription { |
|
|
1321 |
|
1320 |
my ($auser, $branchcode, $aqbooksellerid, $cost, $aqbudgetid, $biblionumber, $startdate, $periodicity, |
1322 |
my ($auser, $branchcode, $aqbooksellerid, $cost, $aqbudgetid, $biblionumber, $startdate, $periodicity, |
1321 |
$dow, $numberlength, $weeklength, $monthlength, $add1, $every1, $whenmorethan1, $setto1, |
1323 |
$dow, $numberlength, $weeklength, $monthlength, $add1, $every1, $whenmorethan1, $setto1, |
1322 |
$lastvalue1, $innerloop1, $add2, $every2, $whenmorethan2, $setto2, $lastvalue2, $innerloop2, |
1324 |
$lastvalue1, $innerloop1, $add2, $every2, $whenmorethan2, $setto2, $lastvalue2, $innerloop2, |
1323 |
$add3, $every3, $whenmorethan3, $setto3, $lastvalue3, $innerloop3, $numberingmethod, $status, |
1325 |
$add3, $every3, $whenmorethan3, $setto3, $lastvalue3, $innerloop3, $numberingmethod, $status, |
1324 |
$notes, $letter, $firstacquidate, $irregularity, $numberpattern, $callnumber, $hemisphere, $manualhistory, |
1326 |
$notes, $letter, $firstacquidate, $irregularity, $numberpattern, $callnumber, $hemisphere, $manualhistory, |
1325 |
$internalnotes, $serialsadditems, $staffdisplaycount, $opacdisplaycount, $graceperiod, $location, $enddate |
1327 |
$internalnotes, $serialsadditems, $staffdisplaycount, $opacdisplaycount, $graceperiod, $location, $enddate, $seriallifespan |
1326 |
) = @_; |
1328 |
) = @_; |
1327 |
my $dbh = C4::Context->dbh; |
1329 |
my $dbh = C4::Context->dbh; |
1328 |
|
1330 |
|
Lines 1336-1343
sub NewSubscription {
Link Here
|
1336 |
add3,every3,whenmorethan3,setto3,lastvalue3,innerloop3, |
1338 |
add3,every3,whenmorethan3,setto3,lastvalue3,innerloop3, |
1337 |
numberingmethod, status, notes, letter,firstacquidate,irregularity, |
1339 |
numberingmethod, status, notes, letter,firstacquidate,irregularity, |
1338 |
numberpattern, callnumber, hemisphere,manualhistory,internalnotes,serialsadditems, |
1340 |
numberpattern, callnumber, hemisphere,manualhistory,internalnotes,serialsadditems, |
1339 |
staffdisplaycount,opacdisplaycount,graceperiod,location,enddate) |
1341 |
staffdisplaycount,opacdisplaycount,graceperiod,location,enddate,seriallifespan) |
1340 |
VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) |
1342 |
VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) |
1341 |
|; |
1343 |
|; |
1342 |
my $sth = $dbh->prepare($query); |
1344 |
my $sth = $dbh->prepare($query); |
1343 |
$sth->execute( |
1345 |
$sth->execute( |
Lines 1346-1352
sub NewSubscription {
Link Here
|
1346 |
$lastvalue1, $innerloop1, $add2, $every2, $whenmorethan2, $setto2, $lastvalue2, $innerloop2, |
1348 |
$lastvalue1, $innerloop1, $add2, $every2, $whenmorethan2, $setto2, $lastvalue2, $innerloop2, |
1347 |
$add3, $every3, $whenmorethan3, $setto3, $lastvalue3, $innerloop3, $numberingmethod, "$status", |
1349 |
$add3, $every3, $whenmorethan3, $setto3, $lastvalue3, $innerloop3, $numberingmethod, "$status", |
1348 |
$notes, $letter, $firstacquidate, $irregularity, $numberpattern, $callnumber, $hemisphere, $manualhistory, |
1350 |
$notes, $letter, $firstacquidate, $irregularity, $numberpattern, $callnumber, $hemisphere, $manualhistory, |
1349 |
$internalnotes, $serialsadditems, $staffdisplaycount, $opacdisplaycount, $graceperiod, $location, $enddate |
1351 |
$internalnotes, $serialsadditems, $staffdisplaycount, $opacdisplaycount, $graceperiod, $location, $enddate, $seriallifespan |
1350 |
); |
1352 |
); |
1351 |
|
1353 |
|
1352 |
my $subscriptionid = $dbh->{'mysql_insertid'}; |
1354 |
my $subscriptionid = $dbh->{'mysql_insertid'}; |