From: Matt M. <mm...@ba...> - 2008-03-14 13:54:51
|
Hi All, I noticed in "Staff View" of a record that if there are multiple entries for a specific field it was only showing 'array' as the data portion. I was looking at vufind/web/services/Record/templates/view-marc.tpl and made some changes to it. Could you tell me if these were the right changes to make. <tr> <th>{$code}</th> <td> <table cellspacing="0" cellpadding="0" border="0"> {foreach from=$subfield item=value key=code} {if is_array ($value)} {foreach from=$value item=value name=loop} <tr> <th>{$code}</th><td>{$value}</td> </tr> {if !$smarty.foreach.loop.last}{/if} {/foreach} {else} <tr> <th>{$code}</th><td>{$value}</td> </tr> {/if} {/foreach} </table> </td> </tr> Matt -- Matthew Mackey Consortium Manager Lehigh Valley Library System Email: mm...@ba... Tel: 610.867.3761 x261 Fax: 610.867.2767 |