Re: [Koha-devel] Creating New Pages in Koha - second request

2010-04-23 Thread Michael Hafen
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


___
Koha-devel mailing list
Koha-devel@lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-devel


Re: [Koha-devel] Creating New Pages in Koha - second request

2010-04-23 Thread Chris Nighswonger
On Thu, Apr 22, 2010 at 6:20 PM, Richard Forristall
richard.forrist...@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
___
Koha-devel mailing list
Koha-devel@lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-devel

Re: [Koha-devel] Creating New Pages in Koha - second request

2010-04-23 Thread Richard Forristall
 
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:cnighswon...@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.forrist...@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
___
Koha-devel mailing list
Koha-devel@lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-devel


[Koha-devel] Creating New Pages in Koha - second request

2010-04-22 Thread Richard Forristall
 
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-boun...@lists.koha.org
[mailto:koha-devel-boun...@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


Re: [Koha-devel] Creating New Pages in Koha - second request

2010-04-22 Thread Brendan Gallagher
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
i...@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-boun...@lists.koha.org
 [mailto:koha-devel-boun...@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


Re: [Koha-devel] Creating New Pages in Koha - second request

2010-04-22 Thread Chris Nighswonger
Hi Rick,

On Thu, Apr 22, 2010 at 1:39 PM, Richard Forristall
richard.forrist...@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
___
Koha-devel mailing list
Koha-devel@lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-devel


Re: [Koha-devel] Creating New Pages in Koha - second request

2010-04-22 Thread Eric Bégin
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-boun...@lists.koha.org
 [mailto:koha-devel-boun...@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


Re: [Koha-devel] Creating New Pages in Koha - second request

2010-04-22 Thread Michael Hafen
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-boun...@lists.koha.org
  [mailto:koha-devel-boun...@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


___
Koha-devel mailing list
Koha-devel@lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-devel