Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
r64 - trunk/irstats/perl_lib/IRStats /CLI
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
irst...@eprints.org  
View profile   Translate to Translated (View Original)
 More options 5 Dec 2007, 14:13
From: irst...@eprints.org
Date: Wed, 5 Dec 2007 14:13:25 GMT
Local: Wed 5 Dec 2007 14:13
Subject: r64 - trunk/irstats/perl_lib/IRStats/CLI
Author: tdb01r
Date: 2007-12-05 14:13:24 +0000 (Wed, 05 Dec 2007)
New Revision: 64

Modified:
   trunk/irstats/perl_lib/IRStats/CLI/extract_metadata_from_archive.pm
Log:
 * Supply the eprint object to render_value as well (avoid an undef warning?)

Modified: trunk/irstats/perl_lib/IRStats/CLI/extract_metadata_from_archive.pm
===================================================================
--- trunk/irstats/perl_lib/IRStats/CLI/extract_metadata_from_archive.pm 2007-11-28 13:55:01 UTC (rev 63)
+++ trunk/irstats/perl_lib/IRStats/CLI/extract_metadata_from_archive.pm 2007-12-05 14:13:24 UTC (rev 64)
@@ -144,11 +144,11 @@
                                # The code is complex, so lets render it to get the 'code'
                                elsif( ref($code) eq 'HASH' )
                                {
-                                       $code = EPrints::XML::to_string( $code_field->render_value( $session, $multiple ? [$code] : $value ));
+                                       $code = EPrints::XML::to_string( $code_field->render_value( $session, $multiple ? [$code] : $value, undef, undef, $eprint ));
                                }
                                if( not exists $data->{$field_name}->{$code} )
                                {
-                                       my $full_citation = EPrints::XML::to_string( $field->render_value( $session, $multiple ? [$value] : $value ), "utf-8");
+                                       my $full_citation = EPrints::XML::to_string( $field->render_value( $session, $multiple ? [$value] : $value, undef, undef, $eprint ), "utf-8");
                                        my $short_citation = ref($value) eq 'HASH' ?
                                                $full_citation :
                                                uc($value);


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google