[Koha-cvs] CVS: koha/C4 AuthoritiesMarc.pm,1.9,1.9.2.1
Paul POULAIN
tipaul at users.sourceforge.net
Thu Feb 24 14:12:16 CET 2005
Update of /cvsroot/koha/koha/C4
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15738/C4
Modified Files:
Tag: rel_2_2
AuthoritiesMarc.pm
Log Message:
saving authority modif in a text file. This will be used soon with another script (in crontab). The script in crontab will retrieve every authorityid in the directory localfile/authorities and modify every biblio using this authority. Those modifs may be long. So they can't be done through http, because we may encounter a webserver timeout, and kill the process before end of the job.
So, it will be done through a cron job.
(/me agree we need some doc for command line scripts)
Index: AuthoritiesMarc.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/AuthoritiesMarc.pm,v
retrieving revision 1.9
retrieving revision 1.9.2.1
diff -C2 -r1.9 -r1.9.2.1
*** AuthoritiesMarc.pm 23 Dec 2004 09:48:11 -0000 1.9
--- AuthoritiesMarc.pm 24 Feb 2005 13:12:13 -0000 1.9.2.1
***************
*** 512,516 ****
&AUTHdelauthority($dbh,$authid,1);
&AUTHaddauthority($dbh,$record,$authid,AUTHfind_authtypecode($dbh,$authid));
! # FIXME : modify the authority in biblio too.
}
--- 512,520 ----
&AUTHdelauthority($dbh,$authid,1);
&AUTHaddauthority($dbh,$record,$authid,AUTHfind_authtypecode($dbh,$authid));
! # save the file in localfile/modified_authorities
! my $filename = C4::Context->config("intranetdir")."/localfile/modified_authorities/$authid.authid";
! open AUTH, "> $filename";
! print AUTH $authid;
! close AUTH;
}
***************
*** 838,841 ****
--- 842,850 ----
# $Id$
# $Log$
+ # Revision 1.9.2.1 2005/02/24 13:12:13 tipaul
+ # saving authority modif in a text file. This will be used soon with another script (in crontab). The script in crontab will retrieve every authorityid in the directory localfile/authorities and modify every biblio using this authority. Those modifs may be long. So they can't be done through http, because we may encounter a webserver timeout, and kill the process before end of the job.
+ # So, it will be done through a cron job.
+ # (/me agree we need some doc for command line scripts)
+ #
# Revision 1.9 2004/12/23 09:48:11 tipaul
# Minor changes in summary "exploding" (the 3 digits AFTER the subfield were not on the right place).
More information about the Koha-cvs
mailing list