From: Remington Steed Date: Tue, 28 May 2019 13:33:44 +0000 (-0400) Subject: LP#1741980: Give type label its own span and class for easy hiding X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8f88f6892cf4163fdc6c9ad26cd8f83364832ef8;p=evergreen%2Ftadl.git LP#1741980: Give type label its own span and class for easy hiding This commit separates the copy tag type label into its own span with a new class "copy_tag_type_label", so that libraries can hide it or style it differently. Release notes are included. Signed-off-by: Remington Steed Signed-off-by: Kyle Huckins Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 index 14c2d70ca2..9d126f6444 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -236,11 +236,12 @@ END; # FOREACH bib   + [% tag.tag_type.label _ ": " | html %] [% IF tag.url %] [% END %] - [% tag.tag_type.label _ ": " _ tag.value | html %] + [% tag.value | html %] [% IF tag.url %] [% END %] diff --git a/docs/RELEASE_NOTES_NEXT/OPAC/copy_tag_display_includes_type.adoc b/docs/RELEASE_NOTES_NEXT/OPAC/copy_tag_display_includes_type.adoc new file mode 100644 index 0000000000..d26d3b20de --- /dev/null +++ b/docs/RELEASE_NOTES_NEXT/OPAC/copy_tag_display_includes_type.adoc @@ -0,0 +1,12 @@ +Item Tags Now Display Tag Type Labels +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +When item tags display in the catalog, they will now include the label from the +item tag type. For example, for a tag of type "Digital Bookplate", here is a +comparison of the old and new display: + + * Old output: "(Tag Value Here)" + * New output: "Digital Bookplate: (Tag Value Here)" + +The type label is wrapped in a new CSS class `copy_tag_type_label` that allows +it to be styled separately from the tag value or hidden entirely. +