Return authority records for freshmeat when authority records are requested
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 9 Dec 2010 06:41:38 +0000 (06:41 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 9 Dec 2010 06:41:38 +0000 (06:41 +0000)
Previously, freshmeat was hardcoded to return bibliographic records, even
when authority records were requested.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@18941 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm

index 305b8a2..3173a34 100644 (file)
@@ -997,7 +997,11 @@ sub changes_feed {
        #       return 302;
        #}
 
-       my $feed = create_record_feed( 'record', $type, $list, $unapi, $org_unit->[0]->shortname, undef, $flesh_feed);
+       my $search = 'record';
+       if ($rtype = 'authority') {
+               $search = 'authority';
+       }
+       my $feed = create_record_feed( $search, $type, $list, $unapi, $org_unit->[0]->shortname, undef, $flesh_feed);
        $feed->root($root);
 
        if ($date) {