fix author extraction fir just Filozofski fakultet u Zagrebu
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 24 Nov 2013 16:51:07 +0000 (17:51 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 24 Nov 2013 16:51:07 +0000 (17:51 +0100)
html.pl

diff --git a/html.pl b/html.pl
index a638c23..0c55a7a 100755 (executable)
--- a/html.pl
+++ b/html.pl
@@ -42,11 +42,15 @@ from auth_header
 
 $sth_auth->execute();
 while( my $row = $sth_auth->fetchrow_hashref ) {
+       if ( $row->{department} !~ m/Filozofski fakultet u Zagrebu/ ) {
+               push @{ $skip->{nije_ffzg} }, $row;
+               next;
+       }
        $auth_header->{ $row->{authid} } = $row->{full_name};
-       $row->{department} =~ s/, Filozofski fakultet u Zagrebu\s*// || next;
+       $row->{department} =~ s/, Filozofski fakultet u Zagrebu.*$//;
        $row->{department} =~ s/^.+\.\s*//;
-       push @{ $auth_department->{ $row->{department} } }, $row->{authid};
 #      warn dump( $row );
+       push @{ $auth_department->{ $row->{department} } }, $row->{authid};
        push @authors, $row;
 
 }