From: Nathan T. <nta...@gm...> - 2013-03-07 15:10:06
|
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 |
From: Demian K. <dem...@vi...> - 2013-03-07 15:15:07
|
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 |
From: Nathan T. <nta...@gm...> - 2013-03-07 16:02:43
|
Thanks, Demian. I'll try this out and report back. 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 |
From: Nathan T. <nta...@gm...> - 2013-03-07 16:52:26
|
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 |
From: Demian K. <dem...@vi...> - 2013-03-07 17:09:46
|
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 |
From: Nathan T. <nta...@gm...> - 2013-03-07 17:27:05
Attachments:
searches.ini
NewItem.php
|
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 |
From: Tuan N. <tu...@yo...> - 2013-03-07 17:34:07
|
Nathan, you probably already did this, but in case you haven't, you need to reindex with the change tracking turned on. On 2013-03-07, at 12:26 PM, Nathan Tallman wrote: > 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 > <searches.ini><NewItem.php>------------------------------------------------------------------------------ > 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 |
From: Demian K. <dem...@vi...> - 2013-03-07 17:35:47
|
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 |
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 |
From: Demian K. <dem...@vi...> - 2013-03-07 19:09:18
|
Sorry, my fault -- remove the "if" from that line; I was carelessly cutting and pasting. > -----Original Message----- > From: Nathan Tallman [mailto:nta...@gm...] > Sent: Thursday, March 07, 2013 1:12 PM > To: Demian Katz > Cc: vufind-tech > Subject: Re: [VuFind-Tech] New Items Without Driver > > 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 |
From: Nathan T. <nta...@gm...> - 2013-03-07 20:01:10
|
Thanks, Demian. That solved the PHP error, but now I'm getting the "no driver connection" error again (Notice: Undefined index: driver in /usr/local/vufind/web/sys/ConnectionManager.php on line 57). I'm wondering if it has to do with the first snippet you sent. I didn't include you last closing curly bracket, it didn't seem to end there. When I do, I get an error about an unexpected else statement. Pasting code snippet below. Thanks! if ($searchSettings['NewItem']['use_ils_driver']) { $catalog = ConnectionManager::connectToCatalog(); if (!$catalog || !$catalog->status) { PEAR::raiseError(new PEAR_Error('Cannot Load Catalog Driver')); } $tmp = $searchObject->getResultSummary(); $limit = $tmp['perPage']; if (isset($searchSettings['NewItem']['result_pages'])) { $resultPages = intval($searchSettings['NewItem']['result_pages']); if ($resultPages < 1) { $resultPages = 10; } } else { $resultPages = 10; } $newItems = $catalog->getNewItems( 1, $limit * $resultPages, $_GET['range'], isset($_GET['department']) ? $_GET['department'] : null ); // Special case -- if no new items were found, don't bother hitting // the index engine: if ($newItems['count'] > 0) { // Query Index for BIB Data $bibIDs = array(); for ($i=0; $i<count($newItems['results']); $i++) { $bibIDs[] = $newItems['results'][$i]['id']; } } if (!$searchObject->setQueryIDs($bibIDs)) { $interface->assign('infoMsg', 'too_many_new_items'); } } else if ($searchObject->getView() == 'rss') { // Special case -- empty RSS feed: // Throw the XML to screen echo $searchObject->buildRSS( array( 'response' => array('numFound' => 0), 'responseHeader' => array('params' => array('rows' => 0)), ) ); // And we're done exit(); } } else { $days = intval($_GET['range']); $query = 'first_indexed:[NOW-' . $days .'DAY TO NOW]'; $searchObject->setQueryString($query); $searchObject->setSort('first_indexed desc'); } // Build RSS Feed for Results (if requested) if ($searchObject->getView() == 'rss') { // Throw the XML to screen echo $searchObject->buildRSS(); // And we're done exit(); } On Thu, Mar 7, 2013 at 2:09 PM, Demian Katz <dem...@vi...> wrote: > Sorry, my fault -- remove the "if" from that line; I was carelessly cutting and pasting. > >> -----Original Message----- >> From: Nathan Tallman [mailto:nta...@gm...] >> Sent: Thursday, March 07, 2013 1:12 PM >> To: Demian Katz >> Cc: vufind-tech >> Subject: Re: [VuFind-Tech] New Items Without Driver >> >> 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 |
From: Demian K. <dem...@vi...> - 2013-03-07 20:11:20
|
You should include the original closing curly brace where I had it -- that block should stand alone as I sent it. Feel free to resend your NewItems.php if you are still having trouble getting it to parse. (You can do that off-list if you like). - Demian > -----Original Message----- > From: Nathan Tallman [mailto:nta...@gm...] > Sent: Thursday, March 07, 2013 3:01 PM > To: Demian Katz > Cc: vufind-tech > Subject: Re: [VuFind-Tech] New Items Without Driver > > Thanks, Demian. That solved the PHP error, but now I'm getting the "no > driver connection" error again (Notice: Undefined index: driver in > /usr/local/vufind/web/sys/ConnectionManager.php on line 57). > > I'm wondering if it has to do with the first snippet you sent. I > didn't include you last closing curly bracket, it didn't seem to end > there. When I do, I get an error about an unexpected else statement. > Pasting code snippet below. > > Thanks! > > if ($searchSettings['NewItem']['use_ils_driver']) { > $catalog = ConnectionManager::connectToCatalog(); > if (!$catalog || !$catalog->status) { > PEAR::raiseError(new PEAR_Error('Cannot Load > Catalog Driver')); > } > $tmp = $searchObject->getResultSummary(); > $limit = $tmp['perPage']; > if (isset($searchSettings['NewItem']['result_pages'])) { > $resultPages = > intval($searchSettings['NewItem']['result_pages']); > if ($resultPages < 1) { > $resultPages = 10; > } > } else { > $resultPages = 10; > } > $newItems = $catalog->getNewItems( > 1, $limit * $resultPages, $_GET['range'], > isset($_GET['department']) ? $_GET['department'] : null > ); > // Special case -- if no new items were found, don't > bother hitting > // the index engine: > if ($newItems['count'] > 0) { > // Query Index for BIB Data > $bibIDs = array(); > for ($i=0; $i<count($newItems['results']); $i++) { > $bibIDs[] = $newItems['results'][$i]['id']; > } > > } > if (!$searchObject->setQueryIDs($bibIDs)) { > $interface->assign('infoMsg', 'too_many_new_items'); > } > } else if ($searchObject->getView() == 'rss') { > // Special case -- empty RSS feed: > > // Throw the XML to screen > echo $searchObject->buildRSS( > array( > 'response' => array('numFound' => 0), > 'responseHeader' => array('params' => > array('rows' => 0)), > ) > ); > // And we're done > exit(); > } > } else { > $days = intval($_GET['range']); > $query = 'first_indexed:[NOW-' . $days .'DAY TO NOW]'; > $searchObject->setQueryString($query); > $searchObject->setSort('first_indexed desc'); > } > > // Build RSS Feed for Results (if requested) > if ($searchObject->getView() == 'rss') { > // Throw the XML to screen > echo $searchObject->buildRSS(); > // And we're done > exit(); > } > > On Thu, Mar 7, 2013 at 2:09 PM, Demian Katz <dem...@vi...> wrote: > > Sorry, my fault -- remove the "if" from that line; I was carelessly cutting > and pasting. > > > >> -----Original Message----- > >> From: Nathan Tallman [mailto:nta...@gm...] > >> Sent: Thursday, March 07, 2013 1:12 PM > >> To: Demian Katz > >> Cc: vufind-tech > >> Subject: Re: [VuFind-Tech] New Items Without Driver > >> > >> 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 |
From: Ere M. <ere...@he...> - 2013-03-11 06:40:10
|
Here's our implementation: https://github.com/KDK-Alli/NDL-VuFind/commit/462d570ec21420909d77b2a934b0451e98bf1a1a The commit has some changes not belonging to the vanilla VuFind, but you can see the core of the changes in NewItem.php. --Ere 7.3.2013 17.09, Nathan Tallman kirjoitti: > 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 > -- Ere Maijala Kansalliskirjasto / The National Library of Finland |