Catalog Items Don't Appear in OPAC Search
Good day everyone, Our librarian is having trouble with the OPAC search. When a student searches for books that we know are in the database, some will not appear in the results list. Yet, if we go into the staff client and do a checkout, we can find the catalog item. At first thought, it would seem the catalog item is not getting into the zebra index so the search doesn't find it. Does Koha automatically do a zebra index when catalog items are added? Is there a setting in the Koha admin that has to be set? In OPAC, when we search for a book we don't see it in the results list. In staff client: When we want to check out the book (the library uses a barcode scanner to find the book): The book is then found and we can check it out. The impact is the student can't find some books for the work they need to complete. So only if a student happens to see the book on the shelf can he/she check it out. Thanks in advance for any/all assistance. Thanks, Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 ------------------------------------------- Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill. We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org <file:///C:/Documents%20and%20Settings/cstewart/Application%20Data/Micro soft/Signatures/www.goodwillaz.org>
Updating zebra is handled by a separate process. There is a script to handle it, `bin/migration_tools/rebuild_zebra.pl -z -b -a`. This should be put in a cronjob script, such as bin/cronjobs/crontab.example Good luck. On Fri, 2010-04-16 at 15:40 -0700, Richard Forristall wrote:
Good day everyone,
Our librarian is having trouble with the OPAC search. When a student searches for books that we know are in the database, some will not appear in the results list. Yet, if we go into the staff client and do a checkout, we can find the catalog item.
At first thought, it would seem the catalog item is not getting into the zebra index so the search doesn't find it.
Does Koha automatically do a zebra index when catalog items are added? Is there a setting in the Koha admin that has to be set?
In OPAC, when we search for a book we don't see it in the results list.
In staff client: When we want to check out the book (the library uses a barcode scanner to find the book): The book is then found and we can check it out.
The impact is the student can't find some books for the work they need to complete. So only if a student happens to see the book on the shelf can he/she check it out.
Thanks in advance for any/all assistance.
Thanks,
Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 -------------------------------------------
Through your generous material and cash donations – we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill. We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
-- Michael Hafen Systems Analyst and Programmer Washington County School District Utah, USA for Koha checkout http://development.washk12.org/gitweb/ or git://development.washk12.org/koha
Hi Richard, On Fri, Apr 16, 2010 at 7:08 PM, Michael Hafen <mdhafen@tech.washk12.org> wrote:
Updating zebra is handled by a separate process. There is a script to handle it, `bin/migration_tools/rebuild_zebra.pl -z -b -a`. This should be put in a cronjob script, such as bin/cronjobs/crontab.example
You might also want to checkout this FAQ: http://koha-community.org/documentation/faq/searching/#16 Kind Regards, Chris
On Fri, 2010-04-16 at 15:40 -0700, Richard Forristall wrote:
Good day everyone,
Our librarian is having trouble with the OPAC search. When a student searches for books that we know are in the database, some will not appear in the results list. Yet, if we go into the staff client and do a checkout, we can find the catalog item.
At first thought, it would seem the catalog item is not getting into the zebra index so the search doesn't find it.
Does Koha automatically do a zebra index when catalog items are added? Is there a setting in the Koha admin that has to be set?
In OPAC, when we search for a book we don't see it in the results list.
In staff client: When we want to check out the book (the library uses a barcode scanner to find the book): The book is then found and we can check it out.
The impact is the student can't find some books for the work they need to complete. So only if a student happens to see the book on the shelf can he/she check it out.
Thanks in advance for any/all assistance.
Thanks,
Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 -------------------------------------------
Through your generous material and cash donations – we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill. We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
-- Michael Hafen Systems Analyst and Programmer Washington County School District Utah, USA
for Koha checkout http://development.washk12.org/gitweb/ or git://development.washk12.org/koha
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
Hi, If I wanted to create a link where the library staff could run this (bin/migration_tools/rebuild_zebra.pl -z -b -a) whenever they wanted, can this be placed into a .pl file and executed? Thanks, Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 ------------------------------------------- Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill. We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org -----Original Message----- From: Chris Nighswonger [mailto:cnighswonger@foundations.edu] Sent: Friday, April 16, 2010 7:03 PM To: Richard Forristall Cc: Koha-devel@lists.koha.org Subject: Re: [Koha-devel] Catalog Items Don't Appear in OPAC Search Hi Richard, On Fri, Apr 16, 2010 at 7:08 PM, Michael Hafen <mdhafen@tech.washk12.org> wrote:
Updating zebra is handled by a separate process. There is a script to handle it, `bin/migration_tools/rebuild_zebra.pl -z -b -a`. This should be put in a cronjob script, such as bin/cronjobs/crontab.example
You might also want to checkout this FAQ: http://koha-community.org/documentation/faq/searching/#16 Kind Regards, Chris
On Fri, 2010-04-16 at 15:40 -0700, Richard Forristall wrote:
Good day everyone,
Our librarian is having trouble with the OPAC search. When a student searches for books that we know are in the database, some will not appear in the results list. Yet, if we go into the staff client and do a checkout, we can find the catalog item.
At first thought, it would seem the catalog item is not getting into the zebra index so the search doesn't find it.
Does Koha automatically do a zebra index when catalog items are added? Is there a setting in the Koha admin that has to be set?
In OPAC, when we search for a book we don't see it in the results list.
In staff client: When we want to check out the book (the library uses a barcode scanner to find the book): The book is then found and we can check it out.
The impact is the student can't find some books for the work they need to complete. So only if a student happens to see the book on the shelf can he/she check it out.
Thanks in advance for any/all assistance.
Thanks,
Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 -------------------------------------------
Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill. We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
-- Michael Hafen Systems Analyst and Programmer Washington County School District Utah, USA
for Koha checkout http://development.washk12.org/gitweb/ or git://development.washk12.org/koha
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
On Mon, Apr 19, 2010 at 11:51 AM, Richard Forristall <Richard.Forristall@goodwillaz.org> wrote:
Hi,
If I wanted to create a link where the library staff could run this (bin/migration_tools/rebuild_zebra.pl -z -b -a) whenever they wanted, can this be placed into a .pl file and executed?
Apart from the fact that rebuild_zebra.pl needs to be run as your kohauser, there is no reason it could not.
Hello all, Can someone point me in the right direction for documentation on creating new pages in koha? I tried to create a new tools page by copying the holidays.pl & holidays.tmpl pages and saving them each with a new name. But, when I navigate to this new page I get an Error 500 page. Our site is on an intranet so I can't show it. If I go into the holidays.pl page and replace its template_name => "holidays.tmpl" (line 33), with the name of the new .tmpl file I created, then reload the holidays.pl page -- it works with the different .tmpl file. Thanks, Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 ------------------------------------------- Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill. We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org
Hi again, If anyone can help me with creating new pages in Koha - could you provide a link to documentation or let me know if there are steps beside merely copying existing pages/templates and saving as new files? Thanks a gozillian! Thanks, Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 ------------------------------------------- Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill. We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org -----Original Message----- From: koha-devel-bounces@lists.koha.org [mailto:koha-devel-bounces@lists.koha.org] On Behalf Of Richard Forristall Sent: Tuesday, April 20, 2010 7:42 AM To: Koha-devel@lists.koha.org Subject: [Koha-devel] Creating New Pages in Koha Hello all, Can someone point me in the right direction for documentation on creating new pages in koha? I tried to create a new tools page by copying the holidays.pl & holidays.tmpl pages and saving them each with a new name. But, when I navigate to this new page I get an Error 500 page. Our site is on an intranet so I can't show it. If I go into the holidays.pl page and replace its template_name => "holidays.tmpl" (line 33), with the name of the new .tmpl file I created, then reload the holidays.pl page -- it works with the different .tmpl file. Thanks, Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 ------------------------------------------- Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill. We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
Hi Richard - This may help you out a little - http://koha-community.org/documentation/3-2-manual/?ch=a9284 -Brendan --------------------------------------------------------------------------------------------------------------- Brendan A. Gallagher ByWater Solutions CEO, Director of Innovation Support and Consulting for Open Source Software Installation, Data Migration, Training, Customization, Hosting and Complete Support Packages Headquarters: Santa Barbara, CA - Office: West Haven, CT Phone # (888) 900-8944 http://bywatersolutions.com info@bywatersolutions.com See us at ALA : BOOTH # 817 --------------------------------------------------------------------------------------------------------------- On Apr 22, 2010, at 10:39 AM, Richard Forristall wrote:
Hi again,
If anyone can help me with creating new pages in Koha - could you provide a link to documentation or let me know if there are steps beside merely copying existing pages/templates and saving as new files?
Thanks a gozillian!
Thanks,
Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 -------------------------------------------
Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill.
We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org
-----Original Message----- From: koha-devel-bounces@lists.koha.org [mailto:koha-devel-bounces@lists.koha.org] On Behalf Of Richard Forristall Sent: Tuesday, April 20, 2010 7:42 AM To: Koha-devel@lists.koha.org Subject: [Koha-devel] Creating New Pages in Koha
Hello all,
Can someone point me in the right direction for documentation on creating new pages in koha?
I tried to create a new tools page by copying the holidays.pl & holidays.tmpl pages and saving them each with a new name. But, when I navigate to this new page I get an Error 500 page. Our site is on an intranet so I can't show it.
If I go into the holidays.pl page and replace its template_name => "holidays.tmpl" (line 33), with the name of the new .tmpl file I created, then reload the holidays.pl page -- it works with the different .tmpl file.
Thanks,
Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 -------------------------------------------
Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill.
We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
Hi Rick, On Thu, Apr 22, 2010 at 1:39 PM, Richard Forristall <Richard.Forristall@goodwillaz.org> wrote:
Hi again,
If anyone can help me with creating new pages in Koha - could you provide a link to documentation or let me know if there are steps beside merely copying existing pages/templates and saving as new files?
Not sure what your trying to do, but Koha is no CMS. Creating a new page is not a process that is easily explainable other than to say, study an existing page. Perhaps if we know what you are trying to do we may be able to give more direct assistance. Kind Regards, Chris
Hi Richard, My guest would be that the owner of your file is not koha:koha. A look to your log file may give you a hint (default: /var/log/koha/*). Eric Richard Forristall wrote:
Hi again,
If anyone can help me with creating new pages in Koha - could you provide a link to documentation or let me know if there are steps beside merely copying existing pages/templates and saving as new files?
Thanks a gozillian!
Thanks,
Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 -------------------------------------------
Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill.
We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org
-----Original Message----- From: koha-devel-bounces@lists.koha.org [mailto:koha-devel-bounces@lists.koha.org] On Behalf Of Richard Forristall Sent: Tuesday, April 20, 2010 7:42 AM To: Koha-devel@lists.koha.org Subject: [Koha-devel] Creating New Pages in Koha
Hello all,
Can someone point me in the right direction for documentation on creating new pages in koha?
I tried to create a new tools page by copying the holidays.pl & holidays.tmpl pages and saving them each with a new name. But, when I navigate to this new page I get an Error 500 page. Our site is on an intranet so I can't show it.
If I go into the holidays.pl page and replace its template_name => "holidays.tmpl" (line 33), with the name of the new .tmpl file I created, then reload the holidays.pl page -- it works with the different .tmpl file.
Thanks,
Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 -------------------------------------------
Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill.
We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
Also, the new page .pl file has to have the read and execute file system permissions set so the web server can run it. Then, once the page does what you want, you have to look at the main page and side bar for that module and put a link to the page in those files. Good luck. On Thu, 2010-04-22 at 13:50 -0400, Eric Bégin wrote:
Hi Richard,
My guest would be that the owner of your file is not koha:koha.
A look to your log file may give you a hint (default: /var/log/koha/*).
Eric
Richard Forristall wrote:
Hi again,
If anyone can help me with creating new pages in Koha - could you provide a link to documentation or let me know if there are steps beside merely copying existing pages/templates and saving as new files?
Thanks a gozillian!
Thanks,
Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 -------------------------------------------
Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill.
We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org
-----Original Message----- From: koha-devel-bounces@lists.koha.org [mailto:koha-devel-bounces@lists.koha.org] On Behalf Of Richard Forristall Sent: Tuesday, April 20, 2010 7:42 AM To: Koha-devel@lists.koha.org Subject: [Koha-devel] Creating New Pages in Koha
Hello all,
Can someone point me in the right direction for documentation on creating new pages in koha?
I tried to create a new tools page by copying the holidays.pl & holidays.tmpl pages and saving them each with a new name. But, when I navigate to this new page I get an Error 500 page. Our site is on an intranet so I can't show it.
If I go into the holidays.pl page and replace its template_name => "holidays.tmpl" (line 33), with the name of the new .tmpl file I created, then reload the holidays.pl page -- it works with the different .tmpl file.
Thanks,
Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 -------------------------------------------
Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill.
We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
-- Michael Hafen Systems Analyst and Programmer Washington County School District Utah, USA for Koha checkout http://development.washk12.org/gitweb/ or git://development.washk12.org/koha
Thank you all for your replies! It's only when the obvious is staring you in the face do you realize how much there still is to learn. My issue was permissions -- once I did a chmod on the .pl page, it worked! I made the assumption that if I saved a file to the server it would immediately be executable - wrong :0) Chris, --> I'm not adding content pages as in a CMS, I'm trying to add custom tools for my librarian. I've added a "Favorites" link in the staff client pages in the top navigation that links to existing Koha pages -- pages the librarian uses often. I wanted to add some functionality - in particular to give the librarian an option to run the zebra reindex process as soon as she imports or adds books, etc to the circulation. So my thought was to have a page where she could go that is custom tools - the zebra reindex being the first. Make sense? She doesn't add books very often so I didn't want to unnecessarily run a cron script every few minutes. I could set the cron script to run daily, but then I run into the problem of what if she adds books in the morning - they aren't available until the cron script runs. So, I wanted to create a way for the librarian to activate the zebra reindexing as soon as (and only when she needs it) she is finished adding books, etc. I haven't created the process to actually run the zebra reindex yet. Now that I have the new page available, that's the next challenge. I'm assuming I can use the perl system() method to run the "opt/koha/bin/migration_tools/rebuild_zebra.pl -a -b -k -reset" from within a .pl file, that is after setting the KOHA_CONF and PERL5LIB environment variables first. My plan is to have links on the tools page. One would be a link to a .pl file that would run the necessary steps to perform the zebra reindex then provide feedback to the librarian. Again, thanks for your inputs. It's been years since programming in Perl -- I work in PHP daily, so I'm back in learning mode for Perl. Thanks, Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 ------------------------------------------- Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill. We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org -----Original Message----- From: Michael Hafen [mailto:mdhafen@tech.washk12.org] Sent: Thursday, April 22, 2010 12:05 PM To: Eric Bégin Cc: Richard Forristall; Koha-devel@lists.koha.org Subject: Re: [Koha-devel] Creating New Pages in Koha - second request Also, the new page .pl file has to have the read and execute file system permissions set so the web server can run it. Then, once the page does what you want, you have to look at the main page and side bar for that module and put a link to the page in those files. Good luck. On Thu, 2010-04-22 at 13:50 -0400, Eric Bégin wrote:
Hi Richard,
My guest would be that the owner of your file is not koha:koha.
A look to your log file may give you a hint (default: /var/log/koha/*).
Eric
Richard Forristall wrote:
Hi again,
If anyone can help me with creating new pages in Koha - could you provide a link to documentation or let me know if there are steps beside merely copying existing pages/templates and saving as new files?
Thanks a gozillian!
Thanks,
Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 -------------------------------------------
Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill.
We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org
-----Original Message----- From: koha-devel-bounces@lists.koha.org [mailto:koha-devel-bounces@lists.koha.org] On Behalf Of Richard Forristall Sent: Tuesday, April 20, 2010 7:42 AM To: Koha-devel@lists.koha.org Subject: [Koha-devel] Creating New Pages in Koha
Hello all,
Can someone point me in the right direction for documentation on creating new pages in koha?
I tried to create a new tools page by copying the holidays.pl & holidays.tmpl pages and saving them each with a new name. But, when I navigate to this new page I get an Error 500 page. Our site is on an intranet so I can't show it.
If I go into the holidays.pl page and replace its template_name => "holidays.tmpl" (line 33), with the name of the new .tmpl file I created, then reload the holidays.pl page -- it works with the different .tmpl file.
Thanks,
Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 -------------------------------------------
Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill.
We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
-- Michael Hafen Systems Analyst and Programmer Washington County School District Utah, USA for Koha checkout http://development.washk12.org/gitweb/ or git://development.washk12.org/koha
Glad you got the page to work. On Thu, 2010-04-22 at 15:20 -0700, Richard Forristall wrote:
Thank you all for your replies! It's only when the obvious is staring you in the face do you realize how much there still is to learn.
My issue was permissions -- once I did a chmod on the .pl page, it worked! I made the assumption that if I saved a file to the server it would immediately be executable - wrong :0)
[snip]
I haven't created the process to actually run the zebra reindex yet. Now that I have the new page available, that's the next challenge. I'm assuming I can use the perl system() method to run the "opt/koha/bin/migration_tools/rebuild_zebra.pl -a -b -k -reset" from within a .pl file, that is after setting the KOHA_CONF and PERL5LIB environment variables first. My plan is to have links on the tools page. One would be a link to a .pl file that would run the necessary steps to perform the zebra reindex then provide feedback to the librarian. [snip]
I think the command you are looking for would be `/opt/koha/bin/migration_tools/rebuild_zebra.pl -a -b -z` The -k option is to keep the export, which I doubt you need to do. The -reset option re-initializes the index, which I doubt you need to do. The -z option is for processing the zebra update queue, and I'm sure this is what you are after. Setting environment, in case you don't remember, is done with %ENV, and system() looks like the way to go from there. Good luck. -- Michael Hafen Systems Analyst and Programmer Washington County School District Utah, USA for Koha checkout http://development.washk12.org/gitweb/ or git://development.washk12.org/koha
On Thu, Apr 22, 2010 at 6:20 PM, Richard Forristall <Richard.Forristall@goodwillaz.org> wrote:
Thank you all for your replies! It's only when the obvious is staring you in the face do you realize how much there still is to learn.
My issue was permissions -- once I did a chmod on the .pl page, it worked! I made the assumption that if I saved a file to the server it would immediately be executable - wrong :0)
Chris, --> I'm not adding content pages as in a CMS, I'm trying to add custom tools for my librarian.
I stand corrected. :-)
I haven't created the process to actually run the zebra reindex yet. Now that I have the new page available, that's the next challenge. I'm assuming I can use the perl system() method to run the "opt/koha/bin/migration_tools/rebuild_zebra.pl -a -b -k -reset" from within a .pl file, that is after setting the KOHA_CONF and PERL5LIB environment variables first. My plan is to have links on the tools page. One would be a link to a .pl file that would run the necessary steps to perform the zebra reindex then provide feedback to the librarian.
Don't forget that rebuild_zebra.pl must be run as your kohauser. Kind Regards, Chris
Chris, Thanks for the reminder - I remember you indicated this in a previous post. How does one ensure this is running as my kohauser? Thanks, Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 ------------------------------------------- Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill. We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org -----Original Message----- From: Chris Nighswonger [mailto:cnighswonger@foundations.edu] Sent: Friday, April 23, 2010 8:08 AM To: Richard Forristall Cc: Koha-devel@lists.koha.org Subject: Re: [Koha-devel] Creating New Pages in Koha - second request On Thu, Apr 22, 2010 at 6:20 PM, Richard Forristall <Richard.Forristall@goodwillaz.org> wrote:
Thank you all for your replies! It's only when the obvious is staring you in the face do you realize how much there still is to learn.
My issue was permissions -- once I did a chmod on the .pl page, it worked! I made the assumption that if I saved a file to the server it would immediately be executable - wrong :0)
Chris, --> I'm not adding content pages as in a CMS, I'm trying to add custom tools for my librarian.
I stand corrected. :-)
I haven't created the process to actually run the zebra reindex yet. Now that I have the new page available, that's the next challenge. I'm assuming I can use the perl system() method to run the "opt/koha/bin/migration_tools/rebuild_zebra.pl -a -b -k -reset" from within a .pl file, that is after setting the KOHA_CONF and PERL5LIB environment variables first. My plan is to have links on the tools page. One would be a link to a .pl file that would run the necessary steps to perform the zebra reindex then provide feedback to the librarian.
Don't forget that rebuild_zebra.pl must be run as your kohauser. Kind Regards, Chris
On Fri, Apr 23, 2010 at 11:18 AM, Richard Forristall <Richard.Forristall@goodwillaz.org> wrote:
Chris, Thanks for the reminder - I remember you indicated this in a previous post. How does one ensure this is running as my kohauser?
I believe you'll have to form your system call so that it su's the script as your koha user. Something like: my @args = ("su - kohauser -c \"/path/to/rebuild_zebra.pl -a -b -z\""); my $results = system(@args); Kind Regards, Chris
Thanks Michael! I would've assumed after each time something is added to the circulation that Koha would run this script - is that not true? Does everyone have a cronjob set to run at intervals during the day to ensure the zebra index remains current? Thanks, Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 ------------------------------------------- Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill. We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org -----Original Message----- From: Michael Hafen [mailto:mdhafen@tech.washk12.org] Sent: Friday, April 16, 2010 4:08 PM To: Richard Forristall Cc: Koha-devel@lists.koha.org Subject: Re: [Koha-devel] Catalog Items Don't Appear in OPAC Search Updating zebra is handled by a separate process. There is a script to handle it, `bin/migration_tools/rebuild_zebra.pl -z -b -a`. This should be put in a cronjob script, such as bin/cronjobs/crontab.example Good luck. On Fri, 2010-04-16 at 15:40 -0700, Richard Forristall wrote:
Good day everyone,
Our librarian is having trouble with the OPAC search. When a student searches for books that we know are in the database, some will not appear in the results list. Yet, if we go into the staff client and do a checkout, we can find the catalog item.
At first thought, it would seem the catalog item is not getting into the zebra index so the search doesn't find it.
Does Koha automatically do a zebra index when catalog items are added? Is there a setting in the Koha admin that has to be set?
In OPAC, when we search for a book we don't see it in the results list.
In staff client: When we want to check out the book (the library uses a barcode scanner
to find the book): The book is then found and we can check it out.
The impact is the student can't find some books for the work they need
to complete. So only if a student happens to see the book on the shelf
can he/she check it out.
Thanks in advance for any/all assistance.
Thanks,
Rick ------------------------------------------- Rick Forristall Programmer Analyst Goodwill of Central AZ 602.535.4078 -------------------------------------------
Through your generous material and cash donations - we provide free human services programs that create hope, jobs and sustainability for central Arizonans. In 2009 your donations transformed 25,000 lives. Good Stuff. Good Work. Goodwill. We Put People to Work! A 2009 Best Places to Work Winner www.goodwillaz.org
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
-- Michael Hafen Systems Analyst and Programmer Washington County School District Utah, USA for Koha checkout http://development.washk12.org/gitweb/ or git://development.washk12.org/koha
On Mon, Apr 19, 2010 at 10:22 AM, Richard Forristall <Richard.Forristall@goodwillaz.org> wrote:
Thanks Michael!
I would've assumed after each time something is added to the circulation that Koha would run this script - is that not true?
No. Does everyone have
a cronjob set to run at intervals during the day to ensure the zebra index remains current?
Yes. We run it every 5 minutes here. The documentation does not reflect this atm, but this will probably be remedied in the docs for the 3.2 release. Kind Regards, Chris
participants (5)
-
Brendan Gallagher -
Chris Nighswonger -
Eric Bégin -
Michael Hafen -
Richard Forristall