flesh => 3,
flesh_fields => {
circ => ['target_copy'],
- acp => ['call_number'],
- acn => ['record','owning_lib']
+ acp => ['call_number','parts'],
+ acn => ['record','owning_lib','prefix','suffix']
}
};
circ.SORTING = circ.circ.target_copy.barcode;
CASE "callnum";
- circ.SORTING = circ.circ.target_copy.call_number.label;
+ sortlist = [];
+
+ FOREACH element IN [circ.circ.target_copy.call_number.prefix.label_sortkey
+ circ.circ.target_copy.call_number.label_sortkey
+ circ.circ.target_copy.call_number.suffix.label_sortkey
+ circ.circ.target_copy.parts.0.label_sortkey];
+ IF (element);
+ sortlist.push(element);
+ END;
+ END;
+ circ.SORTING = sortlist.join("");
+
CASE "lib";
circ.SORTING = circ.circ.target_copy.call_number.owning_lib.name;
[% circ.circ.target_copy.barcode | html %]
</td>
<td name="call_number">
- [% circ.circ.target_copy.call_number.label | html %]
+ [%-
+ cnlist = [];
+ FOREACH element IN [circ.circ.target_copy.call_number.prefix.label
+ circ.circ.target_copy.call_number.label
+ circ.circ.target_copy.call_number.suffix.label];
+ IF (element);
+ cnlist.push(element);
+ END;
+ END;
+ cn = cnlist.join(' ');
+ %]
+ [% cn | html %]
+ [%- IF circ.circ.target_copy.parts.0.label %]
+ </BR>[% circ.circ.target_copy.parts.0.label | html -%]
+ [%- END %]
</td>
[% IF ctx.get_org_setting(ctx.user.home_ou, 'opac.show_owning_lib_column'); %]
<td name="lib">