Fix detection of empty Syndetics AC data elements user/jeff/lp1155267_ac_syndetics_empty_detection
authorJeff Godin <jgodin@tadl.org>
Thu, 14 Mar 2013 18:15:28 +0000 (14:15 -0400)
committerJeff Godin <jgodin@tadl.org>
Thu, 14 Mar 2013 18:15:28 +0000 (14:15 -0400)
commitc55411d68509798550f2d136a0154a7f34995b33
tree0c50ad363c691fcdc87e2c43ecbeb1a9cebb32cf
parenta19259c23927490ab9a052d9edcdbae395d27f7d
Fix detection of empty Syndetics AC data elements

Due to a change in how the vendor responds to requests for data
elements which are not present for a requested title, we need to
change how we detect "empty" data elements in the "data_exists"
function.

First, we check for the new "No Data Available" title element, then
we check for the previously-used value of "error".

This change resolves the symptom where the catalog would display
tabs for "Author Notes", "Excerpt", "Table of Contents", on every
record in the catalog, even when clicking each tab would show that
the content was not present / available.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/Syndetic.pm