Vega Selector/Search Broken
-
Hello,
We’re getting ready to migrate from Innnovative’s Encore to Vega OPAC but it looks like there’s some minor issues with how the plugin currently works with Vega, both in terms of choosing Vega search and in following their search syntax for ISBN.
In the functions.php the case ‘vega’ code is being ignored when Vega is chosen from GUI settings. Instead, the plugin seems to be opting for the else option further down:
case 'overdrive': if ( $cat['overdrive'] ) { $cat_url = $cat['overdrive'] . "/search/title?isbn=" . $itemID; } else { $cat_url = $cat['domain'] . "/search/title?isbn=" . $itemID; } break;
The other problem is the search pattern /search/title?isbn= doesn’t work with Vega. Even though the Vega case option isn’t working it also uses that same search syntax so it’ll need to be updated too.
I got around this issue by changing the else code to use the Vega syntax:
} else { $cat_url = $cat['domain'] . "/search?query=" . $itemID; }
This is working fine as a workaround but the problem is my changes will get overwritten with the next plugin update.
Thanks for all of your hard work with this plugin.
- The topic ‘Vega Selector/Search Broken’ is closed to new replies.