[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/bull statecollection.pl,1.4,1.5
From: |
Paul POULAIN |
Subject: |
[Koha-cvs] CVS: koha/bull statecollection.pl,1.4,1.5 |
Date: |
Mon, 20 Jun 2005 06:18:47 -0700 |
Update of /cvsroot/koha/koha/bull
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8739/bull
Modified Files:
statecollection.pl
Log Message:
synch'ing 2.2 and head
Index: statecollection.pl
===================================================================
RCS file: /cvsroot/koha/koha/bull/statecollection.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** statecollection.pl 1 Mar 2005 13:40:50 -0000 1.4
--- statecollection.pl 20 Jun 2005 13:18:45 -0000 1.5
***************
*** 32,40 ****
# change status except, if subscription has expired, for the "waited" issue.
if ($op eq 'serialchangestatus') {
! my $sth = $dbh->prepare("select subscriptionid,status from serial where
serialid=?");
for (my $i=0;$i<=$#serialids;$i++) {
$sth->execute($serialids[$i]);
! my ($x,$oldstatus) = $sth->fetchrow;
!
serialchangestatus($serialids[$i],$serialseqs[$i],format_date_in_iso($planneddates[$i]),$status[$i])
unless ($hassubscriptionexpired && $oldstatus == 1);
}
}
--- 32,48 ----
# change status except, if subscription has expired, for the "waited" issue.
if ($op eq 'serialchangestatus') {
! my $sth = $dbh->prepare("select status from serial where serialid=?");
for (my $i=0;$i<=$#serialids;$i++) {
$sth->execute($serialids[$i]);
! my ($oldstatus) = $sth->fetchrow;
! if ($serialids[$i]) {
!
serialchangestatus($serialids[$i],$serialseqs[$i],format_date_in_iso($planneddates[$i]),$status[$i])
unless ($hassubscriptionexpired && $oldstatus == 1);
! } else {
! # add a special issue
! if ($serialseqs[$i]) {
! my
$subscription=getsubscription($subscriptionid);
!
newissue($serialseqs[$i],$subscriptionid,$subscription->{biblionumber},$status[$i],
format_date_in_iso($planneddates[$i]));
! }
! }
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/bull statecollection.pl,1.4,1.5,
Paul POULAIN <=
- Prev by Date:
[Koha-cvs] CVS: koha/authorities authorities-home.pl,1.9,1.10 authorities.pl,1.11,1.12 blinddetail-biblio-search.pl,1.4,1.5 detail.pl,1.2,1.3
- Next by Date:
[Koha-cvs] CVS: koha/C4 Accounts2.pm,1.22,1.23 Acquisition.pm,1.12,1.13 AuthoritiesMarc.pm,1.18,1.19 Auth.pm,1.38,1.39 Auth_with_ldap.pm,1.3,1.4 Biblio.pm,1.120,1.121 Bull.pm,1.11,1.12 Context.pm,1.20,1.21 Members.pm,1.7,1.8 Output.pm,1.51,1.52 SearchMarc.pm,1.45,1.46
- Previous by thread:
[Koha-cvs] CVS: koha/authorities authorities-home.pl,1.9,1.10 authorities.pl,1.11,1.12 blinddetail-biblio-search.pl,1.4,1.5 detail.pl,1.2,1.3
- Next by thread:
[Koha-cvs] CVS: koha/C4 Accounts2.pm,1.22,1.23 Acquisition.pm,1.12,1.13 AuthoritiesMarc.pm,1.18,1.19 Auth.pm,1.38,1.39 Auth_with_ldap.pm,1.3,1.4 Biblio.pm,1.120,1.121 Bull.pm,1.11,1.12 Context.pm,1.20,1.21 Members.pm,1.7,1.8 Output.pm,1.51,1.52 SearchMarc.pm,1.45,1.46
- Index(es):