SuperCat requests for plain marcxml were returning holdings / links
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 9 Jul 2010 10:01:44 +0000 (10:01 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 9 Jul 2010 10:01:44 +0000 (10:01 +0000)
This could cause "great fun" in the MARC editor as a bib record suddenly
grew volume and xhtml:link elements; everything would spiral downward
from there.

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

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

index a8a4c6e..1a7f680 100644 (file)
@@ -638,7 +638,7 @@ sub supercat {
 
        my $path = $cgi->path_info;
        my ($id,$type,$format,$command) = reverse split '/', $path;
-       my $flesh_feed = parse_feed_type($type);
+       my $flesh_feed = parse_feed_type($format);
        (my $base_format = $format) =~ s/(-full|-uris)$//o;
 
        my $skin = $cgi->param('skin') || 'default';
@@ -804,7 +804,7 @@ sub supercat {
                my $feed = create_record_feed(
                        $type,
                        $format => [ $id ],
-                       undef, undef,
+                       undef, undef, undef,
                        $flesh_feed
                );