[Koha-patches] [PATCH] kohabug 2955 (2/2) GetMarcFromKohaField now requires $framework

2009-02-11 Thread Chris Nighswonger
Failure to pass the $framework parameter by dateaccessioned.pl causes
GetMarcFromKohaField to return 0,0 which breaks the value builder. The
patch
submitted corrects this.

This patch is build against the current 3.1.x HEAD, however, this bug
also
affects the 3.0.x codebase and should be applied there as well.
---
 cataloguing/value_builder/dateaccessioned.pl |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cataloguing/value_builder/dateaccessioned.pl 
b/cataloguing/value_builder/dateaccessioned.pl
index 19f7227..8c5cf74 100755
--- a/cataloguing/value_builder/dateaccessioned.pl
+++ b/cataloguing/value_builder/dateaccessioned.pl
@@ -60,7 +60,7 @@ sub plugin_javascript {
my $date = $year-$pmon-$pmday;
 
# find the tag/subfield mapped to items.dateaccessioned
-   my ($tag,$subfield) =  GetMarcFromKohaField(items.dateaccessioned);
+   my ($tag,$subfield) =  GetMarcFromKohaField(items.dateaccessioned,);
my $res  = 
 script type=\text/javascript\
 //![CDATA[
-- 
1.5.6.5

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


Re: [Koha-patches] [PATCH] kohabug 2955 (2/2) GetMarcFromKohaField now requires $framework

2009-02-11 Thread LAURENT Henri-Damien
Chris Nighswonger a écrit :
 Failure to pass the $framework parameter by dateaccessioned.pl causes
 GetMarcFromKohaField to return 0,0 which breaks the value builder. The
 patch
 submitted corrects this.

   
It looks like there are still some more GetMarcFromKohaField in the code 
which are not up to date (Search.pm and Biblio.pm and rebuild_nozebra)

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


Re: [Koha-patches] [PATCH] kohabug 2955 (2/2) GetMarcFromKohaField now requires $framework

2009-02-11 Thread LAURENT Henri-Damien
I wrote a patch for 3.0 for Biblio.pm, Search.pm, addbiblio.pl and 
rebuild_nozebra.pl
Sending it soon
___
Koha-patches mailing list
Koha-patches@lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-patches


Re: [Koha-patches] [PATCH] kohabug 2955 (2/2) GetMarcFromKohaField now requires $framework

2009-02-11 Thread Joe Atzberger
On Wed, Feb 11, 2009 at 12:49 PM, LAURENT Henri-Damien 
henridam...@koha-fr.org wrote:

 Chris Nighswonger a écrit :
  Failure to pass the $framework parameter by dateaccessioned.pl causes
  GetMarcFromKohaField to return 0,0 which breaks the value builder. The
  patch
  submitted corrects this.
 
 
 It looks like there are still some more GetMarcFromKohaField in the code
 which are not up to date (Search.pm and Biblio.pm and rebuild_nozebra)



I sent a patch for those a week ago, titled GetMarcFromKohaField needs 2
args, or there's no point.

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