STORY: Revert | Remove trailing punctuation from 260, 262, 264, and 300 tags

Description

This card was originally played to tackle simple punctuation normalization routines, to improve the creation and display of resources in the data graph.

Since then, more normalization cards have been drafted and played in , , that handle more use cases.

The purpose of this card is to revert the code deployed earlier in the project for MARC tags 260, 262, 264 and 300 in favor of the new normalization cards above.

 

 

~!~!~!~

The purpose of this card is to modify transformation rules when punctuation is present in the 260, 262, 264, and 300 tags. The scope of this card includes

  • trailing punctuation

The card is not exhaustive for all punctuation rules across all MARC tags

Remove trailing punctuation

Example - MARC tag mapped to multiple linked data properties / classes → remove trailing punctuation present in original subfields (e.g. colon (:), comma (,), period (.), semicolon (;)

  264  1 $a New York : $b HarperCollins,  $c 2020.

    → bf:provisionActivity [ a bf:Publication ;

            bf:place [ a bf:Place ; rdfs:label "New York" ] ;

            bf:agent [ a bf:Agent ; rdfs:label "HarperCollins" ] ;

            bf:date "2020" ];

~~

300  $a 50 pages ; $c 24 cm.

→ bf:extent [ a bf:Extent ; rdfs:label "50 pages" ] ;

            bf:dimensions "24 cm" ];

NOTE: also remove any intervening spaces between the value and the punctuation in the original MARC tag

Exception - square brackets

Retain square brackets if present in the 260, 262, 264, or 300 tags

Example - square brackets retained; trailing punctuation removed

260   $a [Explicit edition].

→ bf:editionStatement “[Explicit edition]” ;

~~

Environment

None

Potential Workaround

None

Attachments

6

Checklist

hide

Activity

Show:

Tetiana Kovalchuk January 7, 2025 at 9:41 AM

Tested on edev diku.

Build version: mod-linked-data-1.0.1-SNAPSHOT.ffed1d4

Test evidences added.

No test cases needed.

Done

Details

Assignee

Reporter

Labels

Priority

Story Points

Sprint

Development Team

Citation

Release

Sunflower (R1 2025)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created January 3, 2025 at 8:41 PM
Updated last week
Resolved January 10, 2025 at 12:25 PM
TestRail: Cases
TestRail: Runs