504_Part_II - UNTCMS/MarcEdit-Tasks GitHub Wiki

504_Part_II Edits

Link to task file:

https://github.com/UNTCMS/MarcEdit-Tasks/blob/a0a6c0bb5680a1fef7014ac065c047c25e28ac8a/504_Part_II.task

Scope

Insert code for bibliographical references into 008 where applicable.

Pre-run step

Run the following search, using regular expressions, to check for anomalies:

=008 .{24,27}b.*[^b]$

Steps

Insert a code for bibliographic resources into field 008 if the field ends in "bib"

Replace all
(=008  .{24})\\(.{15})bib
$1b$2
Search options: Use regular expressions

Remove "bib" from the end of field 008

Replace all
(=008  .{24}b.{15})bib
$1
Search options: Use regular expressions

Insert a code for bibliographic resources into field 008 if the field ends in "bib"

Replace all
(=008  .{24}6)\\(.{14})bib
$1b$2
Search options: Use regular expressions

Remove "bib" from the end of field 008

Replace all
(=008  .{24}6b.{14})bib
$1
Search options: Use regular expressions