3 # This script should be used only with UNIMARC flavour
4 # It is designed to report some missing information from biblio
12 eval { require "$FindBin::Bin/../kohalib.pl" };
19 my $dbh = C4
::Context
->dbh;
21 my $sth = $dbh->prepare(qq{UPDATE marc_subfield_structure SET kohafield
='biblioitems.collectiontitle' where kohafield
='biblio.seriestitle' and not tagfield like
"4__"});
22 return $sth->execute();
27 if (lc(C4
::Context
->preference('marcflavour')) eq "unimarc"){
28 print "count subfields changed :".process
()." kohafields biblio.seriestitle changed into biblioitems.collectiontitle";
31 print "this script is UNIMARC only and should be used only on unimarc databases\n";