MARCEDIT-L Archives

December 2011

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:
"Fox, Chris" <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Tue, 13 Dec 2011 15:35:16 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (130 lines)
I don't want to change 245 $c because that is already capitalized correctly.  My file has 245s that have Initial Capital Letters, not ALL CAPS.  

On Terry's blog (mentioned below), he has the following to change 245 $a from ALL CAPS to Initial Caps using the Edit Subfield Data function:
Field: 245

Subfield: a

Find: ([A-Z])([A-Z0-9']+)

Replace: $1lcase($+)

If I knew what this meant, I would tweak it so that it changed 245 $a from Initial Caps to Sentence case.  I would then run it to work on all $b.  Or change the above regex to change 245 $a (and then $b) all to lower case, and then I'd use your Find/Replace regex below to capitalize the first letter in 245 $a.  Is there a way to make this work?

Thanks,
Chris 

-----Original Message-----
From: MarcEdit support in technical and instructional matters [mailto:[log in to unmask]] On Behalf Of Nickeson, Walter
Sent: Tuesday, December 13, 2011 2:50 PM
To: [log in to unmask]
Subject: Re: using sentence case for 245

One problem in setting up a regex for this task (for me, at least) is the variability of the 245 field. I can't imagine that all the records have both subfields $b and $c, so finding only $a and $b when the latter only appears sometimes seems like a chore. And why would you want to exclude subfield $c?

What if you did this as a regular Find/Replace using regular expressions?

Find: (=245.+)
Replace: lcase($&)

This changes the whole of the 245 field into lower case. Then you could capitalize the first letter:

Find: (=245.+\$a.*?)([a-z])
Replace: $1ucase($2)

*****************************************
  Walter F. Nickeson, Catalog &
    Metadata Management Librarian
  Rush Rhees Library
  University of Rochester
  Rochester, NY  14627-0055
  [log in to unmask]
  (585) 273-2326  fax: (585) 273-1032
*****************************************
	
> -----Original Message-----
> From: MarcEdit support in technical and instructional matters 
> [mailto:[log in to unmask]] On Behalf Of Fox, Chris
> Sent: Tuesday, December 13, 2011 4:12 PM
> To: [log in to unmask]
> Subject: Re: [MARCEDIT-L] using sentence case for 245
> 
> I've installed Notepad++, but I don't know how to make the change to 
> sentence case only on data in 245 $a $b except to go to each record
and
> make the change one-by-one using TextFX characters > Sentence case.
I've
> got a file I'm working with right now with 290 records in it.  That
will take too
> long.
> 
> I also imported the file into Connexion so I could use Walt Nickeson's
great
> macro (which has the added benefit of a Contents case option for the
505),
> but that is also a record-by-record process.
> 
> Another thing I've tried is looking at Terry's blog entry dealing with
this issue
> (changing ALL CAPS to First Letter Caps) 
> http://people.oregonstate.edu/~reeset/blog/archives/950.  This has the 
> regular expressions for doing this.  But I don't know anything about
regex to
> see if it can be tweaked to change to sentence case.  Anyone out there
want
> to give it a try?
> 
> I would really love to be able to clean up my records before loading
them in
> my catalog, but maybe I'll just have to load them the way they are.
Any help
> would be appreciated.
> 
> Thanks,
> Chris
> 
> -----Original Message-----
> From: MarcEdit support in technical and instructional matters 
> [mailto:[log in to unmask]] On Behalf Of Middle Eastern
Division
> Sent: Thursday, December 08, 2011 12:21 PM
> To: [log in to unmask]
> Subject: Re: using sentence case for 245
> 
> Install Notepad++
> Add TextFX in Plugins  >> plugin manager
> use: TextFX > TextFX characters > Sentence case
> 
> Middle Eastern Division
> Harvard University
> 
> __________________________________________________________
> ______________
> 
> 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]
> 
> __________________________________________________________
> ______________
> 
> 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]

________________________________________________________________________

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]

________________________________________________________________________

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