Bug 42968: Add fallback label for 505 contents notes

To test:

1. Create or locate a bibliographic record with a MARC 505 field.

2. Leave the first indicator blank.

3. Add text to the 505 field.

4. View the record detail page.

5. Notice that the 505 contents display without a label.

6. Apply the patch

7. Refresh the record detail page. Notice that the 505 content displays a label now.

8. Sign off and have a lovely day! :D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Laura_Escamilla 2026-07-01 15:30:34 +00:00 committed by Pedro Amorim
parent 9d0b71511b
commit 3bdecfb4e6
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
1 changed files with 3 additions and 0 deletions

View File

@ -1104,6 +1104,9 @@
<xsl:when test="marc:datafield[@tag=505]/@ind1=2">
<span class="label">Partial contents:</span>
</xsl:when>
<xsl:otherwise>
<span class="label">Contents:</span>
</xsl:otherwise>
</xsl:choose>
<xsl:for-each select="marc:datafield[@tag=505]">
<div class='contentblock'>