Give authority records an XML-valid XML formats list
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 18 Aug 2010 16:00:41 +0000 (16:00 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 18 Aug 2010 16:00:41 +0000 (16:00 +0000)
Still need to trim the actual list of formats for authority records,
as marcxml-full and marcxml-uris get listed, and those do not work
or make sense for authority records.

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

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

index f30b73c..dec92ee 100644 (file)
@@ -397,6 +397,10 @@ sub unapi {
                                <formats id='$uri'>
                                        <format name='opac' type='text/html'/>
                                FORMATS
+                       } else {
+                               $body .= <<"                            FORMATS";
+                               <formats id='$uri'>
+                               FORMATS
                        }
 
                        for my $h (@$list) {