Prevent uninitialized var warnings in OpenILS::WWW::SuperCat::unapi
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 May 2011 03:47:19 +0000 (03:47 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 May 2011 03:47:19 +0000 (03:47 +0000)
commitf3227543c4a65bca81ce16caa8b3c18b565363d8
tree392062cb1ae42e6ee112c4adb2930fd8fdd07fd7
parente16f210b342ccb750792232f93e468dfb7e7d26f
Prevent uninitialized var warnings in OpenILS::WWW::SuperCat::unapi

Given a tag URI like tag:localhost,2011:biblio-record_entry/1 with
no format, Evergreen was throwing uninitialized variable warnings
and attempting to invoke "open-ils.supercat..formats" due to the
unitialized $type variable, which resulted in an Apache error.

On the TT OPAC, this enables Zotero to successfully offer import
of all entries on the search results page. On the AjaxPAC, it seems
that Zotero parses the page before the unAPI hrefs have been supplied
by JavaScript.

Signed-off-by: Dan Scott <dan@coffeecode.net>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_1@20391 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm