When copy/item tags (such as "Digital Bookplate") are displayed in the
OPAC, they currently only show the tag's value, but not the label of the
tags type. This commit fleshes in the tag type so we gain access to the
type's label, and it adds it to the OPAC display.
OPAC output before: "(Tag Value Here)"
OPAC output after: "Digital Bookplate: (Tag Value Here)"
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
}
};
- return $e->search_asset_copy_tag([$filter, { join => { acptcm => {} } }]);
+ return $e->search_asset_copy_tag([$filter, {
+ join => { acptcm => {} },
+ flesh => 1,
+ flesh_fields => { acpt => ['tag_type'] }
+ }]);
}
[% IF tag.url %]
<a href="[% tag.url | html %]">
[% END %]
- [% tag.value | html %]
+ [% tag.tag_type.label _ ": " _ tag.value | html %]
[% IF tag.url %]
</a>
[% END %]