[Koha] [Koha-devel] Possible Feature

Roche III, Edward edward_roche at solanco.k12.pa.us
Tue Sep 15 09:07:03 NZST 2009


Thanks again Mike for all your help!

Thanks!
Ed

Edward J. Roche
Network Administrator
Solanco School District
717.786.2151 x2437

"At the End of the Day, Did You Play to Win or Not to Lose?" 
     


-----Original Message-----
From: Michael Hafen [mailto:mdhafen at tech.washk12.org] 
Sent: Monday, September 14, 2009 4:46 PM
To: Roche III, Edward
Subject: RE: [Koha-devel] Possible Feature

Any page accessed by a barcode scanner will require that submit be
pushed OR that the enter key be pressed.  For this reason barcode
scanners are commonly configured to add the enter key after any barcode
scanned.  That applies to this renew page, the enter sent by the scanner
should do the job.

On Mon, 2009-09-14 at 16:24 -0400, Roche III, Edward wrote:
> Got it, looks good I will have the librarians test it out.
> 
> I don't have a barcode scanner on hand but does it after scanning the
> barcode automatically add it to the Renewed Items section at the
bottom
> or do have to hit submit? If you need to hit submit can code be added
to
> make that happen?
> 
> Thanks!
> Ed
> 
> Edward J. Roche
> Network Administrator
> Solanco School District
> 717.786.2151 x2437
> 
> "At the End of the Day, Did You Play to Win or Not to Lose?" 
>      
> 
> 
> -----Original Message-----
> From: Michael Hafen [mailto:mdhafen at tech.washk12.org] 
> Sent: Monday, September 14, 2009 3:51 PM
> To: Roche III, Edward
> Subject: RE: [Koha-devel] Possible Feature
> 
> I think patch can't handle these patches.  It's because of the way git
> shows the new file.  You did good to put the renew.pl file in the
> directory, please make sure the file has the executable permissions
set.
> A command like `chmod 755 renew.pl` should do the trick.  That might
fix
> the Error 500 message.  Let me know how that goes.  There is a
template
> file for that page too, renew.tmpl, you will have to put that file in
> the directory too I'm guessing.
> 
> On Mon, 2009-09-14 at 15:17 -0400, Roche III, Edward wrote:
> > I tried the Patch application and below is what I got.......Not sure
> if
> > I am doing it right. The renew.pl never gets put in the directory
the
> > link points to and if I put it there and I click the link on the
> > Circulation page it gives me a...An Error has Occurred!
> > Error 500
> > 
> > Can I do this manually?
> > 
> > 
> > 
> > root at koha-vm1:/home/administrator/Desktop# patch <
> > 0001-Add-page-in-circ-just-for-renewing.patch
> > (Stripping trailing CRs from patch.)
> > patching file renew.pl
> > (Stripping trailing CRs from patch.)
> > can't find file to patch at input line 251
> > Perhaps you should have used the -p or --strip option?
> > The text leading up to this was:
> > --------------------------
> > |diff --git
> > a/koha-tmpl/intranet-tmpl/prog/en/includes/checkin-search.inc
> > b/koha-tmpl/intranet-tmpl/prog/en/includes/checkin-search.inc
> > |index d455649..5a23092 100644
> > |--- a/koha-tmpl/intranet-tmpl/prog/en/includes/checkin-search.inc
> > |+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/checkin-search.inc
> > --------------------------
> > File to patch:
> >
>
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/includes/checkin-s
> > earch.inc
> > patching file
> >
>
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/includes/checkin-s
> > earch.inc
> > Reversed (or previously applied) patch detected!  Assume -R? [n] 
> > Apply anyway? [n] y
> > Hunk #1 FAILED at 2.
> > Hunk #2 FAILED at 26.
> > 2 out of 2 hunks FAILED -- saving rejects to file
> >
>
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/includes/checkin-s
> > earch.inc.rej
> > (Stripping trailing CRs from patch.)
> > can't find file to patch at input line 283
> > Perhaps you should have used the -p or --strip option?
> > The text leading up to this was:
> > --------------------------
> > |diff --git
a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc
> > b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc
> > |index 4b8841b..17f3841 100644
> > |--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc
> > |+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc
> > --------------------------
> > File to patch:
> >
>
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/includes/circ-sear
> > ch.inc
> > patching file
> >
>
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/includes/circ-sear
> > ch.inc
> > Reversed (or previously applied) patch detected!  Assume -R? [n] 
> > Apply anyway? [n] y
> > Hunk #1 FAILED at 10.
> > Hunk #2 FAILED at 35.
> > 2 out of 2 hunks FAILED -- saving rejects to file
> >
>
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/includes/circ-sear
> > ch.inc.rej
> > (Stripping trailing CRs from patch.)
> > can't find file to patch at input line 316
> > Perhaps you should have used the -p or --strip option?
> > The text leading up to this was:
> > --------------------------
> > |diff --git
> a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc
> > b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc
> > |index a054829..f116316 100644
> > |--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc
> > |+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc
> > --------------------------
> > File to patch:
> >
>
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/includes/patron-se
> > arch.inc
> > patching file
> >
>
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/includes/patron-se
> > arch.inc
> > Reversed (or previously applied) patch detected!  Assume -R? [n] 
> > Apply anyway? [n] y
> > Hunk #1 FAILED at 78.
> > Hunk #2 FAILED at 102.
> > 2 out of 2 hunks FAILED -- saving rejects to file
> >
>
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/includes/patron-se
> > arch.inc.rej
> > (Stripping trailing CRs from patch.)
> > can't find file to patch at input line 351
> > Perhaps you should have used the -p or --strip option?
> > The text leading up to this was:
> > --------------------------
> > |diff --git
> > a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tmpl
> > b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tmpl
> > |index 884b0dc..353c5b9 100644
> > |---
> > a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tmpl
> > |+++
> > b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tmpl
> > --------------------------
> > File to patch:
> >
>
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/modules/circ/circu
> > lation-home.tmpl
> > patching file
> >
>
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/modules/circ/circu
> > lation-home.tmpl
> > Reversed (or previously applied) patch detected!  Assume -R? [n] 
> > Apply anyway? [n] y
> > Hunk #1 FAILED at 19.
> > 1 out of 1 hunk FAILED -- saving rejects to file
> >
>
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/modules/circ/circu
> > lation-home.tmpl.rej
> > (Stripping trailing CRs from patch.)
> > patching file renew.tmpl
> > 
> > Thanks!
> > Ed
> > 
> > Edward J. Roche
> > Network Administrator
> > Solanco School District
> > 717.786.2151 x2437
> > 
> > "At the End of the Day, Did You Play to Win or Not to Lose?" 
> >      
> > 
> > 
> > -----Original Message-----
> > From: Michael Hafen [mailto:mdhafen at tech.washk12.org] 
> > Sent: Monday, September 14, 2009 1:28 PM
> > To: Roche III, Edward
> > Subject: RE: [Koha-devel] Possible Feature
> > 
> > You'll probably apply this patch on the command line.  I'm not aware
> of
> > any other tools for handling patches.  Assuming you save the
> attachment
> > I sent as 'attachment.patch':  First option is the tool patch with a
> > command like `patch < attachment.patch`.  The second option is to
use
> > git.  If you already have git working this is easiest, as you just
> > change to the directory where the source code is and use the command
> > `git am attachment.patch`.  Git will handle it from there.
> > 
> > On Mon, 2009-09-14 at 13:11 -0400, Roche III, Edward wrote:
> > > Now I am going to be dump..I see there will be 6 file changes but
I
> > forget how to run the update. I know you told me this before but
can't
> > find the email. A little nudge would be good:)
> > > 
> > > Thanks!
> > > Ed
> > > 
> > > Edward J. Roche
> > > Network Administrator
> > > Solanco School District
> > > 717.786.2151 x2437
> > > 
> > > "At the End of the Day, Did You Play to Win or Not to Lose?" 
> > >      
> > > 
> > > 
> > > -----Original Message-----
> > > From: Michael Hafen [mailto:mdhafen at tech.washk12.org] 
> > > Sent: Monday, September 14, 2009 11:43 AM
> > > To: Roche III, Edward
> > > Cc: patches at koha.org
> > > Subject: RE: [Koha-devel] Possible Feature
> > > 
> > > Attached is the patch file.
> > > 
> > > On Mon, 2009-09-14 at 11:01 -0400, Roche III, Edward wrote:
> > > > Cool, whenever you have a chance.
> > > > 
> > > > Thanks!
> > > > Ed
> > > > 
> > > > Edward J. Roche
> > > > Network Administrator
> > > > Solanco School District
> > > > 717.786.2151 x2437
> > > > 
> > > > "At the End of the Day, Did You Play to Win or Not to Lose?" 
> > > >      
> > > > 
> > > > 
> > > > -----Original Message-----
> > > > From: Michael Hafen [mailto:mdhafen at tech.washk12.org] 
> > > > Sent: Monday, September 14, 2009 10:42 AM
> > > > To: Roche III, Edward
> > > > Subject: RE: [Koha-devel] Possible Feature
> > > > 
> > > > Of course.  It's Open Source :)
> > > > 
> > > > On Mon, 2009-09-14 at 10:36 -0400, Roche III, Edward wrote:
> > > > > Sweet...you always seem willing help! So you willing to share?
> > > > > 
> > > > > Thanks!
> > > > > Ed
> > > > > 
> > > > > Edward J. Roche
> > > > > Network Administrator
> > > > > Solanco School District
> > > > > 717.786.2151 x2437
> > > > > 
> > > > > "At the End of the Day, Did You Play to Win or Not to Lose?" 
> > > > >      
> > > > > 
> > > > > 
> > > > > 
-- 
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




More information about the Koha mailing list