No subject


Wed Jan 21 09:14:56 NZDT 2009


spaces in your 952$h and 952$i.  It doesn't look like your regular
expression allows for any whitespace, just characters and numbers.  You
could try replacing the "[A-Za-z0-9.]*"s with ".*", since the dollar
sign subfield codes will anchor the matching.  This way, you'd be sure
to catch any spaces.

=20

Hope this helps,

=20

=20

Ian Walls

Systems Integration Librarian

NYU Health Sciences Libraries

(212) 263-8687

=20

=20

=20

=20

=20

From: koha-bounces at lists.katipo.co.nz
[mailto:koha-bounces at lists.katipo.co.nz] On Behalf Of Amy Schuler
Sent: Monday, May 18, 2009 1:45 PM
To: koha at lists.katipo.co.nz
Subject: [Koha] New Koha installation - 952 field

=20

Hello,=20

I just installed Koha 3.0.  Seems to be fine except I have run up
against a problem with the 852-to-952 holdings field find & replace
function (switching holdings info to 952 $o).

=20

First, let me mention that we use LCC, not Dewey.  That said, I have
successfully used MarcEdit to switch tag 852, $h,$i,$p,$k and $8 (date
of acquisition) to field 952.  Then, using the Koha 3.0 instructions, I
added $b to the end of the 952s, and used the find & replace command to
find: (=3D952
..)(\$h)([A-Za-z0-9.]*)(\$i)([A-Za-z0-9.]*)(\$.*\$b[A-Za-z0-9.]*) and
replace: $1$o$3 $5$6.  However, this last part fails because I receive
the message, "0 modifications made".   I did select "use regular
expressions".

=20

Is there something I am doing wrong?  Is my LCC somehow messing up the
works?  Thanks for any tips or advice you can offer.  I am not familiar
with regular expressions so am not sure how to tweak them, if that is
what is needed.  I have pasted in one of my MARC records, below, so you
can see what my records look like.

=20

Also, one more thing -- if anyone can tell me why my Koha staff client
site says "No_Library_Set" in the upper right hand corner, I would
appreciate it.

=20

Thanks again,

Amy

=20

Amy C. Schuler

Manager of Information Services

Cary Institute of Ecosystem Studies

PO Box AB=20

Millbrook, NY  12545

(845) 677-7600 x164

schulera at caryinstitute.org <mailto:schulera at ecostudies.org>=20

=20

=20

=3DLDR  00667nam  2200205 a 4500

=3D001  \\\83194569\

=3D008  840920s1983\\\\enka\\\\\b\\\\00110\eng\\

=3D020  \\$a0713128658 (pbk.)

=3D039  0\$a2$b3$c3$d3$e3

=3D050  \\$aQH541.5.M3$bE84 1983

=3D082  0\$a574.5/26325$219

=3D100  10$aEtherington, John R.

=3D245  10$aWetland ecology /$cJohn R. Etherington.

=3D260  0\$aLondon :$bE. Arnold,$c1983.

=3D300  \\$a66 p. :$bill. ;$c22 cm.

=3D440  \4$aThe Institute of Biology's studies in biology,$x0537-9024
;$vno. 154

=3D504  \\$aBibliography: p. [64]-66.

=3D500  \\$aIncludes index.

=3D650  \0$aWetland ecology.

=3D952  \\$p10039$kIES$hQH 541.5 .M3$iE84 1983$820030108$b

</PRE>
<html>
<body>
------------------------------------------------------------<br />
This email message, including any attachments, is for the sole use of the i=
ntended recipient(s) and may contain information that is proprietary, confi=
dential, and exempt from disclosure under applicable law. Any unauthorized =
review, use, disclosure, or distribution is prohibited. If you have receive=
d this email in error please notify the sender by return email and delete t=
he original message. Please note, the recipient should check this email and=
 any attachments for the presence of viruses. The organization accepts no l=
iability for any damage caused by any virus transmitted by this email.<br />
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
</body>
</html>
<PRE>

------_=_NextPart_001_01C9D7E6.6FCF7C57
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:x=3D"urn:schemas-microsoft-com:office:excel" xmlns:p=3D"urn:schemas-m=
icrosoft-com:office:powerpoint" xmlns:a=3D"urn:schemas-microsoft-com:office=
:access" xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s=3D"=
uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs=3D"urn:schemas-microsof=
t-com:rowset" xmlns:z=3D"#RowsetSchema" xmlns:b=3D"urn:schemas-microsoft-co=
m:office:publisher" xmlns:ss=3D"urn:schemas-microsoft-com:office:spreadshee=
t" xmlns:c=3D"urn:schemas-microsoft-com:office:component:spreadsheet" xmlns=
:odc=3D"urn:schemas-microsoft-com:office:odc" xmlns:oa=3D"urn:schemas-micro=
soft-com:office:activation" xmlns:html=3D"http://www.w3.org/TR/REC-html40" =
xmlns:q=3D"http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc=3D"http://m=
icrosoft.com/officenet/conferencing" xmlns:D=3D"DAV:" xmlns:Repl=3D"http://=
schemas.microsoft.com/repl/" xmlns:mt=3D"http://schemas.microsoft.com/share=
point/soap/meetings/" xmlns:x2=3D"http://schemas.microsoft.com/office/excel=
/2003/xml" xmlns:ppda=3D"http://www.passport.com/NameSpace.xsd" xmlns:ois=
=3D"http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir=3D"http://=
schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds=3D"http://www.w3=
.org/2000/09/xmldsig#" xmlns:dsp=3D"http://schemas.microsoft.com/sharepoint=
/dsp" xmlns:udc=3D"http://schemas.microsoft.com/data/udc" xmlns:xsd=3D"http=
://www.w3.org/2001/XMLSchema" xmlns:sub=3D"http://schemas.microsoft.com/sha=
repoint/soap/2002/1/alerts/" xmlns:ec=3D"http://www.w3.org/2001/04/xmlenc#"=
 xmlns:sp=3D"http://schemas.microsoft.com/sharepoint/" xmlns:sps=3D"http://=
schemas.microsoft.com/sharepoint/soap/" xmlns:xsi=3D"http://www.w3.org/2001=
/XMLSchema-instance" xmlns:udcs=3D"http://schemas.microsoft.com/data/udc/so=
ap" xmlns:udcxf=3D"http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udc=
p2p=3D"http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf=3D"http:/=
/schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss=3D"http://sche=
mas.microsoft.com/office/2006/digsig-setup" xmlns:dssi=3D"http://schemas.mi=
crosoft.com/office/2006/digsig" xmlns:mdssi=3D"http://schemas.openxmlformat=
s.org/package/2006/digital-signature" xmlns:mver=3D"http://schemas.openxmlf=
ormats.org/markup-compatibility/2006" xmlns:m=3D"http://schemas.microsoft.c=
om/office/2004/12/omml" xmlns:mrels=3D"http://schemas.openxmlformats.org/pa=
ckage/2006/relationships" xmlns:spwp=3D"http://microsoft.com/sharepoint/web=
partpages" xmlns:ex12t=3D"http://schemas.microsoft.com/exchange/services/20=
06/types" xmlns:ex12m=3D"http://schemas.microsoft.com/exchange/services/200=
6/messages" xmlns:pptsl=3D"http://schemas.microsoft.com/sharepoint/soap/Sli=
deLibrary/" xmlns:spsl=3D"http://microsoft.com/webservices/SharePointPortal=
Server/PublishedLinksService" xmlns:Z=3D"urn:schemas-microsoft-com:" xmlns:=
st=3D"&#1;" xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:"Lucida Bright";
	panose-1:2 4 6 2 5 5 5 2 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal;
	font-family:"Times New Roman","serif";
	color:windowtext;
	font-weight:normal;
	font-style:normal;
	text-decoration:none none;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>Amy,<o:p></o:p></span></=
p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span>=
</p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span>=
</p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>From the example you pro=
vided at
the bottom, it looks like you have spaces in your 952$h and 952$i.&nbsp; It
doesn&#8217;t look like your regular expression allows for any whitespace, =
just
characters and numbers.&nbsp; You could try replacing the &#8220;[A-Za-z0-9=
.]*&#8221;s
with &#8220;.*&#8221;, since the dollar sign subfield codes will anchor the
matching.&nbsp; This way, you&#8217;d be sure to catch any spaces.<o:p></o:=
p></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span>=
</p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>Hope this helps,<o:p></o=
:p></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span>=
</p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span>=
</p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>Ian Walls<o:p></o:p></sp=
an></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>Systems Integration Libr=
arian<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>NYU Health Sciences Libr=
aries<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'>(212) 263-8687<o:p></o:p=
></span></p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span>=
</p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span>=
</p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span>=
</p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span>=
</p>

<p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span>=
</p>

<div>

<div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in'>

<p class=3DMsoNormal><b><span style=3D'font-size:10.0pt;font-family:"Tahoma=
","sans-serif"'>From:</span></b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
koha-bounces at lists.katipo.co.nz [mailto:koha-bounces at lists.katipo.co.nz] <b=
>On
Behalf Of </b>Amy Schuler<br>
<b>Sent:</b> Monday, May 18, 2009 1:45 PM<br>
<b>To:</b> koha at lists.katipo.co.nz<br>
<b>Subject:</b> [Koha] New Koha installation - 952 field<o:p></o:p></span><=
/p>

</div>

</div>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><span style=3D'font-family:"Times New Roman","serif"'>=
Hello, <o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-family:"Times New Roman","serif"'>=
I just
installed Koha 3.0.&nbsp; Seems to be fine except I have run up against a
problem with the 852-to-952 holdings field find &amp; replace function
(switching holdings info to 952 $o).<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-family:"Times New Roman","serif"'>=
<o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-family:"Times New Roman","serif"'>=
First,
let me mention that we use LCC, not Dewey.&nbsp; That said, I have successf=
ully
used MarcEdit to switch tag 852, $h,$i,$p,$k and $8 (date of acquisition) t=
o field
952.&nbsp; Then, using the Koha 3.0 instructions, I added $b to the end of =
the
952s, and used the find &amp; replace command to find: (=3D952&nbsp;
..)(\$h)([A-Za-z0-9.]*)(\$i)([A-Za-z0-9.]*)(\$.*\$b[A-Za-z0-9.]*) and repla=
ce:
$1$o$3 $5$6.&nbsp; However, this last part fails because I receive the mess=
age,
&#8220;0 modifications made&#8221;.&nbsp; &nbsp;I did select &#8220;use reg=
ular
expressions&#8221;.<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-family:"Times New Roman","serif"'>=
<o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-family:"Times New Roman","serif"'>=
Is there
something I am doing wrong?&nbsp; Is my LCC somehow messing up the works?&n=
bsp;
Thanks for any tips or advice you can offer.&nbsp; I am not familiar with r=
egular
expressions so am not sure how to tweak them, if that is what is needed.&nb=
sp;
I have pasted in one of my MARC records, below, so you can see what my reco=
rds
look like.<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-family:"Times New Roman","serif"'>=
<o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-family:"Times New Roman","serif"'>=
Also,
one more thing -- if anyone can tell me why my Koha staff client site says
&#8220;No_Library_Set&#8221; in the upper right hand corner, I would apprec=
iate
it.<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-family:"Times New Roman","serif"'>=
<o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-family:"Times New Roman","serif"'>=
Thanks
again,<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-family:"Times New Roman","serif"'>=
Amy<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-family:"Times New Roman","serif"'>=
<o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Lucida Br=
ight","serif"'>Amy
C. Schuler<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Lucida Br=
ight","serif"'>Manager
of Information Services<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Lucida Br=
ight","serif"'>Cary
Institute of Ecosystem Studies<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Lucida Br=
ight","serif"'>PO
Box AB <o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Lucida Br=
ight","serif"'>Millbrook,
NY&nbsp; 12545<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Lucida Br=
ight","serif"'>(845)
677-7600 x164<o:p></o:p></span></p>

<p class=3DMsoNormal><a href=3D"mailto:schulera at ecostudies.org"><span
style=3D'font-size:10.0pt;font-family:"Lucida Bright","serif"'>schulera at car=
yinstitute.org</span></a><span
style=3D'font-size:10.0pt;font-family:"Lucida Bright","serif"'><o:p></o:p><=
/span></p>

<p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Lucida Br=
ight","serif"'>&nbsp;<o:p></o:p></span></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>=3DLDR&nbsp; 00667nam&nbsp; 2200205 a 4500<o:p></o:p><=
/p>

<p class=3DMsoNormal>=3D001&nbsp; \\\83194569\<o:p></o:p></p>

<p class=3DMsoNormal>=3D008&nbsp; 840920s1983\\\\enka\\\\\b\\\\00110\eng\\<=
o:p></o:p></p>

<p class=3DMsoNormal>=3D020&nbsp; \\$a0713128658 (pbk.)<o:p></o:p></p>

<p class=3DMsoNormal>=3D039&nbsp; 0\$a2$b3$c3$d3$e3<o:p></o:p></p>

<p class=3DMsoNormal>=3D050&nbsp; \\$aQH541.5.M3$bE84 1983<o:p></o:p></p>

<p class=3DMsoNormal>=3D082 &nbsp;0\$a574.5/26325$219<o:p></o:p></p>

<p class=3DMsoNormal>=3D100&nbsp; 10$aEtherington, John R.<o:p></o:p></p>

<p class=3DMsoNormal>=3D245&nbsp; 10$aWetland ecology /$cJohn R. Etheringto=
n.<o:p></o:p></p>

<p class=3DMsoNormal>=3D260&nbsp; 0\$aLondon :$bE. Arnold,$c1983.<o:p></o:p=
></p>

<p class=3DMsoNormal>=3D300&nbsp; \\$a66 p. :$bill. ;$c22 cm.<o:p></o:p></p>

<p class=3DMsoNormal>=3D440&nbsp; \4$aThe Institute of Biology's studies in
biology,$x0537-9024 ;$vno. 154<o:p></o:p></p>

<p class=3DMsoNormal>=3D504&nbsp; \\$aBibliography: p. [64]-66.<o:p></o:p><=
/p>

<p class=3DMsoNormal>=3D500&nbsp; \\$aIncludes index.<o:p></o:p></p>

<p class=3DMsoNormal>=3D650&nbsp; \0$aWetland ecology.<o:p></o:p></p>

<p class=3DMsoNormal>=3D952&nbsp; \\$p10039$kIES$hQH 541.5 .M3$iE84
1983$820030108$b<o:p></o:p></p>

</div>

<pre></PRE>
<html>
<body>
------------------------------------------------------------<br />
This email message, including any attachments, is for the sole use of the i=
ntended recipient(s) and may contain information that is proprietary, confi=
dential, and exempt from disclosure under applicable law. Any unauthorized =
review, use, disclosure, or distribution is prohibited. If you have receive=
d this email in error please notify the sender by return email and delete t=
he original message. Please note, the recipient should check this email and=
 any attachments for the presence of viruses. The organization accepts no l=
iability for any damage caused by any virus transmitted by this email.<br />
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
</body>
</html>
<PRE>
</pre></body>

</html>

------_=_NextPart_001_01C9D7E6.6FCF7C57--



More information about the Koha mailing list