FOR p IN phys; phys_content.push(p.textContent); END;
args.phys_desc = phys_content.join("");
+ args.contents = xml.findnodes('//*[@tag="505"]').textContent;
+
# MARC Callnumber
args.marc_cn = xml.findnodes('//*[@tag="092" or @tag="099"]/*').textContent;
extras = [
{name => 'subjects', label => l('Subject')},
{name => 'summaryplus', label => l('Summaries & More'), hide => hide_summary},
- {name => 'content', label => l('Contents'), hide => 1}, # ToC
+ {name => 'contents', label => l('Contents'), hide => !attrs.contents},
{name => 'authors', label => l('Authors')},
{name => 'series', label => l('Series')},
{name => 'annotation', label => l('Annotation'), hide => 1},
[% IF tab_is_active(name);
IF name == 'marchtml';
ctx.marchtml;
+ ELSIF name == 'contents';
+ attrs.contents;
ELSE;
# Load the template for the selected extra
INCLUDE "opac/parts/record/${name}.tt2";