Bug 39596: Adding labels in the staff interface

Test plan:

1. Go to Administration > MARC Bibliographic framework
2. On the right side of the default framework, click on "Actions" >
   "MARC Structure"
3. Search for field 780
4. Click on "Actions" > "Edit subfields"
5. Click on the "t" tab
6. Check "Editor" under the "Visibility" section
7. Click on "Save Changes"
8. Repeat steps 1 to 7 for field 785$t
9. Have or create a record with a value for 780 and 785 with the first
   indicator at 0 and the other left empty
10. Look at the record on the staff interface and the OPAC
11. Notice that in Normal View, the values entered for 780 and 785 do
    not have labels
12. Apply the patch
13. There are now labels in the staff interface and the OPAC

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit ba2ec1d202)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
William Lavoie 2025-04-10 09:27:17 -04:00 committed by Fridolin Somers
parent afd412fe3f
commit bd877d97f2
No known key found for this signature in database
GPG Key ID: 9A8E73E2A8B96537
1 changed files with 6 additions and 0 deletions

View File

@ -1369,6 +1369,9 @@
<xsl:when test="@ind2=7">
<span class="label">Separated from:</span>
</xsl:when>
<xsl:otherwise>
<span class="label">Preceding entry:</span>
</xsl:otherwise>
</xsl:choose>
<xsl:text> </xsl:text>
@ -1457,6 +1460,9 @@
<xsl:when test="@ind2=8">
<span class="label">Changed back to:</span>
</xsl:when>
<xsl:otherwise>
<span class="label">Succeeding entry:</span>
</xsl:otherwise>
</xsl:choose>
<xsl:text> </xsl:text>