Amy,
From the example you provided at the bottom, it looks like you have 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.
Hope this helps, Ian Walls Systems Integration Librarian NYU Health Sciences Libraries (212) 263-8687 From: koha-bounces@lists.katipo.co.nz [mailto:koha-bounces@lists.katipo.co.nz] On Behalf Of Amy Schuler Sent: Monday, May 18, 2009 1:45 PM To: koha@lists.katipo.co.nz Subject: [Koha] New Koha installation - 952 field Hello, 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). 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: (=952 ..)(\$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". 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. 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. Thanks again, Amy Amy C. Schuler Manager of Information Services Cary Institute of Ecosystem Studies PO Box AB Millbrook, NY 12545 (845) 677-7600 x164 schulera@caryinstitute.org <mailto:schulera@ecostudies.org> =LDR 00667nam 2200205 a 4500 =001 \\\83194569\ =008 840920s1983\\\\enka\\\\\b\\\\00110\eng\\ =020 \\$a0713128658 (pbk.) =039 0\$a2$b3$c3$d3$e3 =050 \\$aQH541.5.M3$bE84 1983 =082 0\$a574.5/26325$219 =100 10$aEtherington, John R. =245 10$aWetland ecology /$cJohn R. Etherington. =260 0\$aLondon :$bE. Arnold,$c1983. =300 \\$a66 p. :$bill. ;$c22 cm. =440 \4$aThe Institute of Biology's studies in biology,$x0537-9024 ;$vno. 154 =504 \\$aBibliography: p. [64]-66. =500 \\$aIncludes index. =650 \0$aWetland ecology. =952 \\$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 intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.<br /> ================================= </body> </html> <PRE>