MARCEDIT-L Archives

September 2012

MARCEDIT-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Shelley Doljack <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Wed, 12 Sep 2012 10:33:40 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (177 lines)
It seems to me that the steps you have are over-complicating it. This is what I would do (and tested it and it seems to work):

Original 300 fields:
=300  \\$avi, 514 p.
=300  \\$av.
=300  \\$aix, 341 p. :$bill.
=300  \\$axviii, 263 p. :$bill. ; $e1 CD-ROM (4 3/4 in.)
=300  \\$axiii, 357 p. :$bill. ;$c24 cm.
=300  \\$ax, 399 p. :$bill. ;$c24 cm. +$e1 CD-ROM (4 3/4 in.)

1. Use the Edit Subfield tool:
Field: 300
Subfield: a
Field Data: a(.+)
Replace with: a1 online resource ($1)
check regex
click replace text button

300 fields after step 1:
=300  \\$a1 online resource (vi, 514 p.)
=300  \\$a1 online resource (v.)
=300  \\$a1 online resource (ix, 341 p. :)$bill.
=300  \\$a1 online resource (xviii, 263 p. :)$bill. ; $e1 CD-ROM (4 3/4 in.)
=300  \\$a1 online resource (xiii, 357 p. :)$bill. ;$c24 cm.
=300  \\$a1 online resource (x, 399 p. :)$bill. ;$c24 cm. +$e1 CD-ROM (4 3/4 in.)

2. Use the Find/Replace tool to :
Find: (=300.+)([\s]:\))
Replace: $1) :
check regex
click replace all button

300 fields after step 2:
=300  \\$a1 online resource (vi, 514 p.)
=300  \\$a1 online resource (v.)
=300  \\$a1 online resource (ix, 341 p.) :$bill.
=300  \\$a1 online resource (xviii, 263 p.) :$bill. ; $e1 CD-ROM (4 3/4 in.)
=300  \\$a1 online resource (xiii, 357 p.) :$bill. ;$c24 cm.
=300  \\$a1 online resource (x, 399 p.) :$bill. ;$c24 cm. +$e1 CD-ROM (4 3/4 in.)

3. Remove $c's and $e's as you like.


Regards,
Shelley

----- Original Message -----
> From: "Leah Donley" <[log in to unmask]>
> To: [log in to unmask]
> Sent: Wednesday, September 12, 2012 6:43:08 AM
> Subject: Converting 300 field to provider neutral
> 
> 
> 
> 
> Good morning,
> 
> 
> 
> I’ve come across another 300 field “format” in ebook records. I’d
> like to find a way to change these to provider-neutral format, but
> again, my procedure (copied below) is not picking these instances
> up. A few examples are below. Any suggestions would be appreciated –
> whether it’s modifying the regex in a step or adding another
> step(s).
> 
> 
> 
> Example 300 fields:
> 
> \\$aviii, 248 p.
> 
> \\$axiv, 480 p.
> 
> \\$av.
> 
> 
> 
> 
> 
> 1) Add semicolon to 300 $a that ends without semicolon or colon, and
> replace it with a 300 $a that does:
> 
> FIND: =300\s\s\\\\\$a(\d)\sv.$
> 
> REPLACE: =300 \\$a$1 v. ;
> 
> USE REGULAR EXPRESSIONS checked
> 
> 
> 
> 2) This step that will insert “1 online resource” and move the
> original contents of subfield a into the parentheses:
> 
> Find: (?<one>=300.*\$a)(?!1 online resource \()(.*?)( [;:].*)
> 
> Replace: ${one}1 online resource ($1)$2
> 
> 
> 
> 3) This will remove any subfield c’s
> 
> Find: (=300.*)( ;\$c.*)
> 
> Replace: $1
> 
> 
> 
> 4) Remove semicolons from ends of any subfield b’s
> 
> Field: 300
> 
> Subfield: b
> 
> Field data: b(.+)\s;
> 
> Replace with: b$1
> 
> Click "Replace text"
> 
> 
> 
> 5) Remove “trick” semicolon you inserted into subfield a in the first
> step:
> 
> Field: 300
> 
> Subfield: a
> 
> Field data: a(.+)\s;
> 
> Replace with: a$1
> 
> Click "Replace text"
> 
> 
> 
> 6) My final step is to add 300 fields to the records that don’t have
> them using the add/delete field function
> 
> 
> 
> Thank you,
> 
> Leah Donley
> 
> 
> 
> 
> 
> Leah Donley
> Information Specialist
> Brookhaven National Laboratory
> Email: [log in to unmask]
> 
> 
> 
> ________________________________________________________________________
> 
> This message comes to you via MARCEDIT-L, a Listserv(R) list for
> technical and instructional support in MarcEdit. If you wish to
> communicate directly with the list owners, write to
> [log in to unmask] To unsubscribe, send a message
> "SIGNOFF MARCEDIT-L" to [log in to unmask]

-- 
Shelley Doljack  
E-Resources Metadata Librarian 
Metadata and Library Systems
Stanford University Libraries
[log in to unmask]
650-725-0167

________________________________________________________________________

This message comes to you via MARCEDIT-L, a Listserv(R) list for technical and instructional support in MarcEdit.  If you wish to communicate directly with the list owners, write to [log in to unmask] To unsubscribe, send a message "SIGNOFF MARCEDIT-L" to [log in to unmask]

ATOM RSS1 RSS2