|
67 | 67 | </div> |
68 | 68 | {/if} |
69 | 69 |
|
70 | | - <!-- <tr valign="top"> |
71 | | - <th>{translate text='Format'}: </th> |
72 | | - <td><span class="{$recordFormat}">{$recordFormat}</span></td> |
73 | | - </tr> --> |
74 | 70 | {assign var=lang value=$recordLanguage} |
75 | 71 | {if $recordLanguage} |
76 | 72 | <div class="grid"> |
77 | 73 | <dt class="g-col-lg-4 g-col-12">{translate text='Language(s)'}</dt> |
78 | 74 | <dd class="g-col-lg-8 g-col-12"> |
79 | 75 | {foreach from=$lang item=field name=loop} |
80 | | - {if $smarty.foreach.loop.first}{$field}{else}; {$field}{/if} |
| 76 | + {if $field@first}{$field}{else}; {$field}{/if} |
81 | 77 | {/foreach} |
82 | 78 | </dd> |
83 | 79 | </div> |
|
229 | 225 | <dt class="g-col-lg-4 g-col-12">{translate text='Original Format'}: </dt> |
230 | 226 | <dd class="g-col-lg-8 g-col-12"> |
231 | 227 | {foreach from=$marcField item=field name=loop} |
232 | | - {if $smarty.foreach.loop.iteration eq 1} |
233 | | - {if $field|getvalue:'b' neq 'Electronic Resource'}{$field|getvalue:'b'}{/if} |
234 | | - {elseif $smarty.foreach.loop.iteration gt 1} |
235 | | - {if $field|getvalue:'b' neq 'Electronic Resource'}<br>{$field|getvalue:'b'}{/if} |
| 228 | + {if $field@iteration eq 1} |
| 229 | + {if $field|getvalue:'b' neq 'Electronic Resource'}{$field|getvalue:'b'}{/if} |
| 230 | + {elseif $field@iteration gt 1} |
| 231 | + {if $field|getvalue:'b' neq 'Electronic Resource'}<br>{$field|getvalue:'b'}{/if} |
236 | 232 | {/if} |
237 | 233 | {/foreach} |
238 | 234 | </dd> |
|
242 | 238 | {assign var=852Field value=$marc->getFields('852')} |
243 | 239 | {if isset($852Field)} |
244 | 240 | {foreach from=$852Field item=field name=loop} |
245 | | - {if $smarty.foreach.loop.iteration lt 2} |
| 241 | + {if $field@iteration lt 2} |
246 | 242 | {if $field|getvalue:'a' eq 'MiU'} |
247 | 243 | {if $field|getvalue:'h'} |
248 | 244 | <div class="grid"> |
|
255 | 251 | {else} |
256 | 252 | {assign var=050Field value=$marc->getFields('050')} |
257 | 253 | {foreach from=$050Field item=field name=loop} |
258 | | - {if $smarty.foreach.loop.iteration lt 2} |
| 254 | + {if $field@iteration lt 2} |
259 | 255 | {if $field|getvalue:'a'} |
260 | 256 | <div class="grid"> |
261 | 257 | <dt class="g-col-lg-4 g-col-12">{translate text='Original Classification Number'}</dt> |
|
286 | 282 | <div class="grid"> |
287 | 283 | <dt class="g-col-lg-4 g-col-12">{translate text='Locate a Print Version'}</dt> |
288 | 284 | <dd class="g-col-lg-8 g-col-12"> |
289 | | - {if is_array($record.oclc)} |
290 | | -<!-- title array --> |
291 | | - {foreach from=$record.oclc item=title loop=1 name=loop} |
292 | | - {if $smarty.foreach.loop.iteration lt 3} |
293 | | - <a href="http://www.worldcat.org/oclc/{$title}" data-toggle="tracking" data-tracking-category="outLinks" data-tracking-action="Catalog Find in a Library" data-tracking-label="{$title}">Find in a library</a><br> |
294 | | - {/if} |
295 | | - {/foreach} |
296 | | - {else} |
297 | | -<!-- title non-array --> |
298 | | - {if $record.oclc} |
299 | | - <a href="http://www.worldcat.org/oclc/{$record.oclc}" data-toggle="tracking" data-tracking-category="outLinks" data-tracking-action="Catalog Find in a Library" data-tracking-label="{$record.oclc}">Find in a library</a> |
300 | | - {else} Find in a library service is not available from this catalog. <a href="http://www.worldcat.org/" data-toggle="tracking" data-tracking-category="outLinks" data-tracking-action="Catalog Search Worldcat" data-tracking-label="worldcat" target="_blank">Search Worldcat</a> |
| 285 | + {if array_key_exists('oclc', $record)} |
| 286 | + {if is_array($record.oclc)} |
| 287 | + <!-- title array --> |
| 288 | + {foreach from=$record.oclc item=title name=loop} |
| 289 | + {if $title@iteration lt 3} |
| 290 | + <a href="http://www.worldcat.org/oclc/{$title}" data-toggle="tracking" data-tracking-category="outLinks" data-tracking-action="Catalog Find in a Library" data-tracking-label="{$title}">Find in a library</a><br> |
| 291 | + {/if} |
| 292 | + {/foreach} |
| 293 | + {else} |
| 294 | + <!-- title non-array --> |
| 295 | + <a href="http://www.worldcat.org/oclc/{$record.oclc}" data-toggle="tracking" data-tracking-category="outLinks" data-tracking-action="Catalog Find in a Library" data-tracking-label="{$record.oclc}">Find in a library</a> |
301 | 296 | {/if} |
| 297 | + {else} |
| 298 | + Find in a library service is not available from this catalog. <a href="http://www.worldcat.org/" data-toggle="tracking" data-tracking-category="outLinks" data-tracking-action="Catalog Search Worldcat" data-tracking-label="worldcat" target="_blank">Search Worldcat</a> |
302 | 299 | {/if} |
303 | 300 | </dd> |
304 | 301 | </div> |
|
0 commit comments