From: Nathan T. <nta...@gm...> - 2013-03-07 18:13:03
|
One step closer. Now I'm getting a PHP error, "Parse error: syntax error, unexpected T_IF in /usr/local/vufind/web/services/Search/NewItem.php on line 205". Line 205 is $list = if ($searchSettings['NewItem']['use_ils_driver']). @Tuan, yes I did reindex with change tracking turned on. Thanks! Nathan On Thu, Mar 7, 2013 at 12:35 PM, Demian Katz <dem...@vi...> wrote: > It looks like the code connects to the ILS whether or not use_ils_driver is true. You may be able to fix this by adding addition if statements around the code dealing with the $catalog variable. Near the top: > > if ($searchSettings['NewItem']['use_ils_driver']) { > $catalog = ConnectionManager::connectToCatalog(); > if (!$catalog || !$catalog->status) { > PEAR::raiseError(new PEAR_Error('Cannot Load Catalog Driver')); > } > } > > And farther down: > > $list = if ($searchSettings['NewItem']['use_ils_driver']) > ? $catalog->getFunds() : array(); > $interface->assign('fundList', $list); > > - Demian > >> -----Original Message----- >> From: Nathan Tallman [mailto:nta...@gm...] >> Sent: Thursday, March 07, 2013 12:26 PM >> To: Demian Katz >> Cc: vufind-tech >> Subject: Re: [VuFind-Tech] New Items Without Driver >> >> Yes, it is set to false. Just in case I may have made a bonehead mistake, >> searches.ini and NewItem.php are attached. >> >> Thanks, >> Nathan >> >> On Thu, Mar 7, 2013 at 12:09 PM, Demian Katz <dem...@vi...> >> wrote: >> > Did you make sure that the new [NewItem] / use_ils_driver setting in >> searches.ini is set to false? >> > >> >> -----Original Message----- >> >> From: Nathan Tallman [mailto:nta...@gm...] >> >> Sent: Thursday, March 07, 2013 11:52 AM >> >> To: Demian Katz >> >> Cc: vufind-tech >> >> Subject: Re: [VuFind-Tech] New Items Without Driver >> >> >> >> There do seem to be problems, it's not working as is (for me, >> >> anyways). When turning debug on, it seems its still trying to load >> >> via ILS drivers. It's showing this message, "Notice: Undefined index: >> >> driver in /usr/local/vufind/web/sys/ConnectionManager.php on line 57". >> >> >> >> Unfortunately, I'm not skilled enough to determine what's going wrong. >> >> >> >> Nathan >> >> >> >> >> >> >> >> On Thu, Mar 7, 2013 at 10:14 AM, Demian Katz >> >> <dem...@vi...> >> >> wrote: >> >> > There is a JIRA patch to implement the feature using the change >> >> > tracking >> >> functionality of VuFind (you have to turn on change tracking as part >> >> of the import process to make it work): >> >> > >> >> > http://vufind.org/jira/browse/VUFIND-624 >> >> > >> >> > I think there may be some problems with the patch, however -- I >> >> > haven't had >> >> time to thoroughly test it and get it ready for the trunk/master. I >> >> plan to when I have a bit more time, though, as this is a valuable >> >> feature. If you're able to test it out in the meantime and provide >> feedback, that would be great! >> >> > >> >> > - Demian >> >> > >> >> >> -----Original Message----- >> >> >> From: Nathan Tallman [mailto:nta...@gm...] >> >> >> Sent: Thursday, March 07, 2013 10:10 AM >> >> >> To: vufind-tech >> >> >> Subject: [VuFind-Tech] New Items Without Driver >> >> >> >> >> >> Is it possible to dynamically generate a New Item listing (30 days >> >> >> maybe) with out using an ILS driver? We don't use a driver, but >> >> >> are interested in this feature. >> >> >> >> >> >> Thanks, >> >> >> Nathan >> >> >> >> >> >> ------------------------------------------------------------------ >> >> >> --------- >> >> --- >> >> >> Symantec Endpoint Protection 12 positioned as A LEADER in The >> >> >> Forrester >> >> >> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" >> >> >> in the endpoint security space. For insight on selecting the right >> >> >> partner to tackle endpoint security challenges, access the full report. >> >> >> http://p.sf.net/sfu/symantec-dev2dev >> >> >> _______________________________________________ >> >> >> Vufind-tech mailing list >> >> >> Vuf...@li... >> >> >> https://lists.sourceforge.net/lists/listinfo/vufind-tech |