MARCEDIT-L Archives

August 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:
Holly Tomren <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Wed, 31 Aug 2011 13:32:05 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (127 lines)
Hi Terry and list,

How would you handle this in the 245, where just as in below you are
converting from MARCXML to MARC, and you need to add in the space-colon
before $b (if present) and the space-slash before $c? Unlike the example
below with 260, in 245 the $b may not be present, so you can't necessarily
just append and prepend, or can you?

Thanks,
Holly

On Tue, 9 Aug 2011 12:24:45 -0700, Reese, Terry
<[log in to unmask]> wrote:

>In a mrk file - you can use the subfield edit tool and then use the prepend
and append switches to add punctuation to the start or end of fields.  In
the Find box, add: ^b to add data to the beginning of a subfield, or ^e to
the end of a subfield.
>
>If you need specific help with the xslt (if the above doesn't work) - let
me know.
>
>--TR
>
>From: MarcEdit support in technical and instructional matters
[mailto:[log in to unmask]] On Behalf Of Gunther, Wanda K
>Sent: Tuesday, August 09, 2011 10:23 AM
>To: [log in to unmask]
>Subject: [MARCEDIT-L] adding punctuation to a subfield
>
>Is there an easy way to add punctuation to a subfield in MarcEdit?  I had
not been able to figure how to edit in the .mrk file (other than find and
replace) so was trying to tweak the stylesheet.  I want a : before the $b
and a , before the $c  and need to make it really easy for non-catalogers
who will be cleaning up the records before passing to me to load into our
catalog.
>
>=260  \\$aRedlands<file:///\\$aRedlands>, California, USA$bEnvironmental
Systems Research Institute, Inc. (ESRI)$c2002.
>
>I am converting xml to mrc.
>
>fgdctoMARC21xml.xsl stylesheet has:
>
><!-- 260 -->
><xsl:if test="idinfo/citation/citeinfo/pubinfo">
>    <marc:datafield tag="260" ind1=" " ind2=" ">
>    <xsl:if test="idinfo/citation/citeinfo/pubinfo/pubplace != ''">
>             <marc:subfield code="a"><xsl:value-of
select="normalize-space(idinfo/citation/citeinfo/pubinfo/pubplace/.)"
/></marc:subfield>
>   </xsl:if>
>
>    <xsl:if test="idinfo/citation/citeinfo/pubinfo/publish != ''">
>            <marc:subfield code="b"><xsl:value-of
select="normalize-space(idinfo/citation/citeinfo/pubinfo/publish/.)"
/></marc:subfield>
>     </xsl:if>
>     </marc:datafield>
></xsl:if>
>
>Was trying to use as an example, but am in over my head:
>
><!-- 250 -->
><xsl:if test="idinfo/citation/citeinfo/edition !=''">
>                <marc:datafield tag="250" ind1=" " ind2=" ">
>                                <xsl:variable name="t250"
select="normalize-space(idinfo/citation/citeinfo/edition/.)" />
>                                <marc:subfield code="a">
>                                                <xsl:value-of select="$t250" />
>
>                                                <xsl:call-template
name="CheckPunctuationBack">
>                                                               
<xsl:with-param name="Source" select="$t250" />
>                                                               
<xsl:with-param name="find_punct" select="'.?!&quot;);]'" />
>                                                               
<xsl:with-param name="insert_punct" select="'.'" />
>                                                </xsl:call-template>
>                                </marc:subfield>
>                </marc:datafield>
></xsl:if>
>
>
>
>--
>
>wkg
>
>********
>
>Only a life lived for others is a life worthwhile.
>                -- Albert Einstein
>
>***********************************************************************
>
>Wanda K. Gunther
>Authority Control and Database Management Librarian
>CB# 3914, 139B Davis Library
>The University of North Carolina at Chapel Hill
>Chapel Hill, NC 27514-8890
>[log in to unmask]<mailto:[log in to unmask]>     (919) 962-0171
>
>***********************************************************************
>
>________________________________________________________________________
>
>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]<mailto:[log in to unmask]>.
To unsubscribe, send a message "SIGNOFF MARCEDIT-L" to
[log in to unmask]<mailto:[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