]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Prevent uninitialized var warnings in OpenILS::WWW::SuperCat::unapi
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 May 2011 03:46:27 +0000 (03:46 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 May 2011 03:46:27 +0000 (03:46 +0000)
commitf852ad933b9a6c69836ea186b56cd54aca13044c
treede489781e3cdf467ccf7615c980e59dc3ce4f9c6
parentd1fc490f59541512d2cc809ac7627cf1d12fe8d3
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/trunk@20390 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm