fixes to indexing process for deleted records
authorJoshua Ferraro <jmf@liblime.com>
Tue, 12 Feb 2008 23:36:58 +0000 (18:36 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 12 Feb 2008 23:38:07 +0000 (17:38 -0600)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
etc/koha-conf.xml
misc/bin/zebraqueue_daemon.pl

index f60b886..1c554e9 100644 (file)
@@ -31,6 +31,8 @@
      <retrievalinfo>
        <retrieval syntax="usmarc" name="F"/>
        <retrieval syntax="usmarc" name="B"/>
+       <retrieval syntax="xml" name="F"/>
+       <retrieval syntax="xml" name="B"/>
        <retrieval syntax="xml" name="marcxml"
                   identifier="info:srw/schema/1/marcxml-v1.1">
          <backend syntax="usmarc" name="F">
index 88b6a6d..bc3f32c 100755 (executable)
@@ -79,7 +79,7 @@ sub zebraop {
        while (my $data = $readsth->fetchrow_hashref()){
                eval {
                my $ok = 0;
-               if ($data->{'operation'} =~ /delete/ ){
+               if ($data->{'operation'} =~ /delete/i ){
                        # 1st read the record in zebra, we have to get it from zebra as its no longer in the db
                        my $Zconn=C4::Context->Zconn($data->{'server'}, 0, 1,'','xml');
                        my $query = $Zconn->search_pqf( '@attr 1=Local-Number '.$data->{'biblio_auth_number'});