From: <M.D...@ls...> - 2009-08-10 10:46:59
|
Hi All, We are hoping to make our Vufind OPAC our main OPAC for the coming school term (leaving the Voyager OPAC as an option), but have run into a number of issues which are stalling this. We have run focus groups on our Vufind OPAC (https://beta.catalogue.lse.ac.uk) and users have pointed out that the Sort options on the results screen does not work. If you 'Sort' by date you get the following error: Unable to process query Solr Returned: [576] /usr/local/lib/php/PEAR.php [754] /usr/local/vufind/web/sys/Solr.php [740] /usr/local/vufind/web/sys/Solr.php [519] /usr/local/vufind/web/sys/Solr.php [564] /usr/local/vufind/web/services/Search/Home.php [295] /usr/local/vufind/web/services/Search/Home.php [60] /usr/local/vufind/web/services/Search/Home.php [116] /usr/local/vufind/web/index.php This happens on the latest RC and on last SVN we used (r1194). On our test server (https://library-1.lse.ac.uk/vufind) the same happens and have set debug = true in the config file to help debugging. I have tried installing from scratch and always get the same error. We previously had problems with getting the 'Series' link to work (had to amend Solr.php) and getting the 'Published' date to display in results (had to amend solr-convert.xsl.) When I Sort my results on other instances of Vufind OPACs I get no errors. Can somebody suggest a fix for us. Thanks Mike Please access the attached hyperlink for an important electronic communications disclaimer: http://www.lse.ac.uk/collections/secretariat/legal/disclaimer.htm |
From: Demian K. <dem...@vi...> - 2009-08-10 13:04:17
|
It looks like the sorting problems have been fixed in more recent revisions in the trunk (in fact, I just added another small fix this morning). Unfortunately, the latest version of the trunk isn't compatible with RC1 or the earlier trunk revision you mention. However, you can solve the problem by hand-copying a block of code from the latest trunk into your earlier version. Just edit web/sys/Solr.php and replace this block of code in the search() method: // Add Sorting if ($sort) { switch ($sort) { case 'year': $query .= '; publishDate desc'; break; case 'callnumber': $query .= '; callnumber asc'; break; case 'author': $query .= '; authorStr asc'; break; case 'title': $query .= '; titleStr asc'; break; case '': break; default: $sort .= '; ' . $sort . ' asc'; break; } $query .= '; ' . $sort; } with this corrected code from the latest trunk: // Add Sorting if ($sort) { switch ($sort) { case 'year': case 'year desc': $query .= '; publishDate desc'; break; case 'year asc': $query .= '; publishDate asc'; break; case 'callnumber': $query .= '; callnumber asc'; break; case 'author': $query .= '; authorStr asc'; break; case 'title': $query .= '; titleStr asc'; break; case '': break; default: $query .= '; ' . $sort . ' asc'; break; } } - Demian > -----Original Message----- > From: M.D...@ls... [mailto:M.D...@ls...] > Sent: Monday, August 10, 2009 6:46 AM > To: vuf...@li... > Subject: [VuFind-General] Sorting results by Date/Title/Author not > working > > Hi All, > > We are hoping to make our Vufind OPAC our main OPAC for the coming > school term (leaving the Voyager OPAC as an option), but have run into > a > number of issues which are stalling this. We have run focus groups on > our Vufind OPAC (https://beta.catalogue.lse.ac.uk) and users have > pointed out that the Sort options on the results screen does not work. > If you 'Sort' by date you get the following error: > > Unable to process query > Solr Returned: > > [576] /usr/local/lib/php/PEAR.php > [754] /usr/local/vufind/web/sys/Solr.php > [740] /usr/local/vufind/web/sys/Solr.php > [519] /usr/local/vufind/web/sys/Solr.php > [564] /usr/local/vufind/web/services/Search/Home.php > [295] /usr/local/vufind/web/services/Search/Home.php > [60] /usr/local/vufind/web/services/Search/Home.php > [116] /usr/local/vufind/web/index.php > > This happens on the latest RC and on last SVN we used (r1194). On our > test server (https://library-1.lse.ac.uk/vufind) the same happens and > have set debug = true in the config file to help debugging. > > I have tried installing from scratch and always get the same error. We > previously had problems with getting the 'Series' link to work (had to > amend Solr.php) and getting the 'Published' date to display in results > (had to amend solr-convert.xsl.) > > When I Sort my results on other instances of Vufind OPACs I get no > errors. Can somebody suggest a fix for us. > > Thanks > > Mike > > > Please access the attached hyperlink for an important electronic > communications disclaimer: > http://www.lse.ac.uk/collections/secretariat/legal/disclaimer.htm > > ----------------------------------------------------------------------- > ------- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > VuFind-General mailing list > VuF...@li... > https://lists.sourceforge.net/lists/listinfo/vufind-general |
From: <M.D...@ls...> - 2009-08-10 14:51:31
|
Hi Demian, That's great! The sorting now works as it should. Cheers Mike -----Original Message----- From: Demian Katz [mailto:dem...@vi...] Sent: 10 August 2009 14:04 To: Mcfarlane,MD; vuf...@li... Subject: RE: Sorting results by Date/Title/Author not working It looks like the sorting problems have been fixed in more recent revisions in the trunk (in fact, I just added another small fix this morning). Unfortunately, the latest version of the trunk isn't compatible with RC1 or the earlier trunk revision you mention. However, you can solve the problem by hand-copying a block of code from the latest trunk into your earlier version. Just edit web/sys/Solr.php and replace this block of code in the search() method: // Add Sorting if ($sort) { switch ($sort) { case 'year': $query .= '; publishDate desc'; break; case 'callnumber': $query .= '; callnumber asc'; break; case 'author': $query .= '; authorStr asc'; break; case 'title': $query .= '; titleStr asc'; break; case '': break; default: $sort .= '; ' . $sort . ' asc'; break; } $query .= '; ' . $sort; } with this corrected code from the latest trunk: // Add Sorting if ($sort) { switch ($sort) { case 'year': case 'year desc': $query .= '; publishDate desc'; break; case 'year asc': $query .= '; publishDate asc'; break; case 'callnumber': $query .= '; callnumber asc'; break; case 'author': $query .= '; authorStr asc'; break; case 'title': $query .= '; titleStr asc'; break; case '': break; default: $query .= '; ' . $sort . ' asc'; break; } } - Demian > -----Original Message----- > From: M.D...@ls... [mailto:M.D...@ls...] > Sent: Monday, August 10, 2009 6:46 AM > To: vuf...@li... > Subject: [VuFind-General] Sorting results by Date/Title/Author not > working > > Hi All, > > We are hoping to make our Vufind OPAC our main OPAC for the coming > school term (leaving the Voyager OPAC as an option), but have run into > a number of issues which are stalling this. We have run focus groups > on our Vufind OPAC (https://beta.catalogue.lse.ac.uk) and users have > pointed out that the Sort options on the results screen does not work. > If you 'Sort' by date you get the following error: > > Unable to process query > Solr Returned: > > [576] /usr/local/lib/php/PEAR.php > [754] /usr/local/vufind/web/sys/Solr.php > [740] /usr/local/vufind/web/sys/Solr.php > [519] /usr/local/vufind/web/sys/Solr.php > [564] /usr/local/vufind/web/services/Search/Home.php > [295] /usr/local/vufind/web/services/Search/Home.php > [60] /usr/local/vufind/web/services/Search/Home.php > [116] /usr/local/vufind/web/index.php > > This happens on the latest RC and on last SVN we used (r1194). On our > test server (https://library-1.lse.ac.uk/vufind) the same happens and > have set debug = true in the config file to help debugging. > > I have tried installing from scratch and always get the same error. > We previously had problems with getting the 'Series' link to work (had > to amend Solr.php) and getting the 'Published' date to display in > results (had to amend solr-convert.xsl.) > > When I Sort my results on other instances of Vufind OPACs I get no > errors. Can somebody suggest a fix for us. > > Thanks > > Mike > > > Please access the attached hyperlink for an important electronic > communications disclaimer: > http://www.lse.ac.uk/collections/secretariat/legal/disclaimer.htm > > ---------------------------------------------------------------------- > - > ------- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day trial. Simplify your report design, integration and deployment > - and focus on what you do best, core application coding. Discover > what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > VuFind-General mailing list > VuF...@li... > https://lists.sourceforge.net/lists/listinfo/vufind-general Please access the attached hyperlink for an important electronic communications disclaimer: http://www.lse.ac.uk/collections/secretariat/legal/disclaimer.htm |