Summaries & More TPAC display

Bug #1485716 reported by Tony Bandy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
New
Undecided
Unassigned

Bug Description

On our recent distribution of Evergreen, (2.7.X on Debian), there is an issue displaying multiple 520 fields in the Summaries & More section. I was able to include certain subfields by altering the misc_util.tt2 file:

This is the misc_util.tt2 file in the templatesdirectory before my edits:

args.summaries = [];
        FOR sub IN xml.findnodes('//*[@tag="520"]/*[@code="a"]');
            args.summaries.push(sub.textContent);
        END;
        args.summary = (args.summaries.size) ? args.summaries.0 : '';

Notice here in the file that it does not carry the subfield “c”….so I "fixed" this by adding the subfield c to that it shows up:

args.summaries = [];
        FOR sub IN xml.findnodes('//*[@tag="520"]/*[@code="a" or @code=”c”]');
            args.summaries.push(sub.textContent);
        END;
        args.summary = (args.summaries.size) ? args.summaries.0 : '';

However, there's not a whole lot of granular control over how the extra subfields show up in the TPAC. It might be nice to have this broken out into other TT2 files rather than having things auto-generated.

Tags: opac
tags: added: tpac
tags: added: opac
removed: tpac
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.