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]
|