If you didn't declare the new index field article_data as multiValued=true in the Solr index definition in schema.xml, then try changing the $record.article_data.0 to $record.article_data in the record.tpl code. The .0 only exists if $record.article_data is an array (a variable holding multiple values), and it is only an array if the field in the Solr index is defined as multivalued.

Till

Am 29.10.2010 um 19:19 schrieb "Harmon, Kelly" <Kelly.Harmon@ARS.USDA.GOV>:

Hello!

 

I note that some Marc 773 data is available in the staff view of Vufind for each record.

 

Is it possible to display that information in both the results page and the individual record?

 

I’ve created an index for 773t and 773g in the marc.properties file ala:

 

article_data = 773g:773t

 

(This appears to work because I’ve been able to add this info as a facet…)

 

And I’ve edited the record.tpl file ala:

 

            {if $record.article_data}

            <tr valign="top">

              <th>{translate text='Journal Inforation'}: </th>

              <td>{$record.article_data.0|escape}</td>

            </tr>

            {/if}

 

It could be my code is wonky, but I suspect that I’m also either in the wrong file, or there are additional files I need to change to make this happen.

 

Thoughts?

 

TIA

 

Kelly

 

 

Kelly A. Harmon

Webmaster, National Agricultural Library

10300 Baltimore Avenue

Beltsville, MD  20705

(301) 504-5788

 

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
VuFind-General mailing list
VuFind-General@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vufind-general