OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



URL-Based Queries error!

Open Harvester Systems support questions and answers, bug reports, and development issues.

Moderators: jmacgreg, michael, John

Forum rules
Developer Resources:

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome.

URL-Based Queries error!

Postby xmu_chen » Sun Jan 11, 2009 7:24 pm

hello,sir
when I use the type of query which likes http://localhost/harvester/index.php/se ... title=test, i wil get hundreds of results, and one page will show 25 items, so there are many pages to link to show the results. the first page is right, but the second page or next page is wrong, it shows "no results". I know it is the programe's bug, Could you tell me how to modify the bug?
thanks!
xmu_chen
 
Posts: 22
Joined: Tue Oct 30, 2007 6:07 am

Re: URL-Based Queries error!

Postby asmecher » Wed Jan 14, 2009 2:35 pm

Hi xmu_chen,

What version of the Harvester are you using?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8869
Joined: Wed Aug 10, 2005 12:56 pm

Re: URL-Based Queries error!

Postby xmu_chen » Thu Jan 15, 2009 12:10 am

i am using Harvester 2.0.1.
xmu_chen
 
Posts: 22
Joined: Tue Oct 30, 2007 6:07 am

Re: URL-Based Queries error!

Postby asmecher » Thu Jan 15, 2009 7:49 am

Hi xmu_chen,

Try the patch against Harvester 2.0.1 listed at http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=4006.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8869
Joined: Wed Aug 10, 2005 12:56 pm

Re: URL-Based Queries error!

Postby xmu_chen » Thu Jan 15, 2009 8:19 pm

Hello, Alec Smecher,

We will begin our winter vacation from tomorrow to Feb.16. and I will continue to test it according to your help next term.

Best wishes to you in the Chinese New Year!
xmu_chen
 
Posts: 22
Joined: Tue Oct 30, 2007 6:07 am

Re: URL-Based Queries error!

Postby xmu_chen » Tue Feb 17, 2009 12:28 am

Hello, Alec Smecher,
I'm sorry, I can not resolve the bug with your patch. May be I had not described it clearly. Now, I will describe the bug again with an example. you can visit the following URL, "http://carl-abrc-oai.lib.sfu.ca/index.php/search/byUrl?title=computer". then you will get many records, and at the bottom of the page shows "1 - 25 of 500 Items 1 2 3 4 5 6 7 8 9 10 > >> ". you can click "2" or another number to show next page result, it will shows "No Results", but it is impossible!

I am glad that harvester 2.3.0Beta had been released, but after installed it, I find that the version had no the search function.

I hope I can get your help. many thanks!
xmu_chen
 
Posts: 22
Joined: Tue Oct 30, 2007 6:07 am

Re: URL-Based Queries error!

Postby asmecher » Tue Feb 17, 2009 9:25 am

Hi xmu_chen,

To enable the Search function using the beta release, you'll need to enable one of the indexing plugins. You'll probably want to use the "MySQL Index Search Plugin". To enable this, go to Site Administration > Plugins > Generic Plugins and click "Enable" for the MySQL Index Search Plugin.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8869
Joined: Wed Aug 10, 2005 12:56 pm

Re: URL-Based Queries error!

Postby xmu_chen » Tue Feb 17, 2009 8:09 pm

hi Smecher,
I had not solved my problem. It is true that the new version(2.3.0) harvester has search function, but it is advance, not simple. I only need the simple search function by url. just like can searching archives by title field, creater field, and subject field. I do not want to upgrade it to the new version for the moment.
The version of harvester we are using is 2.0.1. The patch page (Bugzilla page)shows that harvester has 2.2.3 or other version, but I can not download the 2.2.3 or other version harvester from download page(http://pkp.sfu.ca/harvester_download).
Somebody say that it can be downloaded from CVS, but I do not know how to do it.
Could you tell me how can I get V2.2.3 integrated harveter software(before 2.3.0)? or could you sent it to me?(my email:lucky0610@gmail.com )

Thank you very much!
xmu_chen
 
Posts: 22
Joined: Tue Oct 30, 2007 6:07 am

Re: URL-Based Queries error!

Postby asmecher » Wed Feb 18, 2009 11:16 am

Hi xmu_chen,

Were you able to apply the patch for bug #4006? It should definitely resolve the bug you describe. The current stable version is Harvester 2.0.1, and the development release (due out very soon) is 2.3; there are no releases in between these two. (There is a release of OJS with version number 2.2.3; perhaps that's what you encountered?)

In the 2.3 beta, FYI, the byUrl search is available at a slightly different url -- e.g. http://url-to-harvester/index.php/misearch/byUrl?title=... instead of http://url-to-harvester/index.php/search/byUrl?title=.... This was changed to disambiguate between the different types of search indexing tools that can be used, i.e. MySQL search index vs. Lucene.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8869
Joined: Wed Aug 10, 2005 12:56 pm

Re: URL-Based Queries error!

Postby xmu_chen » Wed Feb 18, 2009 7:09 pm

hi Smecher,
There is a good news that I had solved my problem. I had upgraded the following files from CVS.
1.~/classes/template/TemplateManager.inc.php (Revision 1.19)
2.~/pages/search/SearchHandler.inc.php (Revision 1.25.2.1 )
3.~/templates/search/results.tpl (Revision 1.17)
after it , the system work well!

Thank you for your help!

Congratulate the new version harvester software releases! thank you for your hard work!
xmu_chen
 
Posts: 22
Joined: Tue Oct 30, 2007 6:07 am


Return to Open Harvester Systems Support and Development

Who is online

Users browsing this forum: No registered users and 4 guests