Where is the record.tpl file you mention?  Unless you’re using an older version than I think you are, I believe the changes you need to make are in web/interface/themes/[your_theme]/RecordDrivers/Index/core.tpl – this is the template for the main display on the record view.  In order to add fields to this template, you also need to assign them in the IndexRecord::getCoreMetadata() method in web/RecordDrivers/IndexRecord.php.  You’ll probably want to add a protected getArticleData() method, which you can model on one of the existing get methods.

 

Please let me know if you still have questions or if I’m misunderstanding your problem!

 

- Demian

 

From: Harmon, Kelly [mailto:Kelly.Harmon@ARS.USDA.GOV]
Sent: Friday, October 29, 2010 1:20 PM
To: vufind-general@lists.sourceforge.net
Subject: [VuFind-General] Add Marc 773 Data to Results Page and Record Page?

 

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