No subject


Wed Nov 11 03:01:06 NZDT 2009


(=952  ..)(\$h)([A-Za-z0-9.]*)(\$i)([A-Za-z0-9.]*)(\$.*\$b[A-Za-z0-9.]*)
This will take the data from the $h field (and the data could be
capital letters, lower case letters, numbers and decimals) and the
data from the $i string (and the data could be capital letters, lower
case letters, numbers and decimals) and $b is the last subfield in the
952 field.
TIP: This regular expression may need to be changed depending on the
type of data you have in your system. Libraries that use the LC
classification system in particular may need to tweak the “replace”
command to find and move cutters.
And enter the following string into the 'Replace with' box:
$1$o$3 $5$6
This string is saying stay in the same field number as in parenthesis
#1, move the data from parenthesis #3 of the 'Find what' string next
to $o, add a space, take the data from parenthesis #5 and move it to
$o as well, then check to the end of the field and leave all the other
subfield data alone."
-------------------------------------------------------------------------------------------------------------------------------------------------
I tried doing the above on my records, but I think it only finds the
data and doesn't replace anything, because it said "0 modifications
were made." and took a few seconds to finish. Any ideas on how to move
the subfields?
regards,
Maxwell
2010/10/28 Christopher Curry <a class="moz-txt-link-rfc2396E" href="mailto:ccurry at amphilsoc.org">&lt;ccurry at amphilsoc.org&gt;</a>:


Maxwell,
Have a look at the "Swapping Fields" section of this page in the old
koha.org manual.&nbsp; It explains how to accomplish this by first moving the 852
$h &amp; $i to 952 $h &amp; $i, then using a RegEx to combine the two fields into
one $o subfield:
<a class="moz-txt-link-freetext" href="http://koha.org/documentation/tutorial/using-marcedit/tutorial-all-pages">http://koha.org/documentation/tutorial/using-marcedit/tutorial-all-pages</a>
I couldn't find this information in the official docs:
<a class="moz-txt-link-freetext" href="http://koha-community.org/documentation/3-2-manual/?ch=a12459">http://koha-community.org/documentation/3-2-manual/?ch=a12459</a>
Cheers,
Christopher Curry
Assistant Technical Librarian / Assistant IT Officer
American Philosophical Society
105 South Fifth Street
Philadelphia, PA 19106-3386
Tel. (215) 599-4299
<a class="moz-txt-link-abbreviated" href="mailto:ccurry at amphilsoc.org">ccurry at amphilsoc.org</a>
Main Library number: (215)440-3400
APS website: <a class="moz-txt-link-freetext" href="http://www.amphilsoc.org">http://www.amphilsoc.org</a>
On 10/28/2010 10:13 AM, SlyzertVoltrond wrote:
How do I use MarcEdit's Find/Replace function to move 852's $h and $i
subfield data into one 952's $o subfield? If I try to swap $h of 852
to $o of 952 and then do that again for $i of 852 field, I end up
creating two $o entries in the 952 field, which I don't think is
allowed for call number subfield. Also, I don't have the slightest
idea how to use regular expressions to achieve the said task, so I
would appreciate it if someone could write it for me, or at least
guide me how to write one.
regards,
Maxwell
_______________________________________________
Koha mailing list  <a class="moz-txt-link-freetext" href="http://koha-community.org">http://koha-community.org</a>
<a class="moz-txt-link-abbreviated" href="mailto:Koha at lists.katipo.co.nz">Koha at lists.katipo.co.nz</a>
<a class="moz-txt-link-freetext" href="http://lists.katipo.co.nz/mailman/listinfo/koha">http://lists.katipo.co.nz/mailman/listinfo/koha</a>
_______________________________________________
Koha mailing list &nbsp;<a class="moz-txt-link-freetext" href="http://koha-community.org">http://koha-community.org</a>
<a class="moz-txt-link-abbreviated" href="mailto:Koha at lists.katipo.co.nz">Koha at lists.katipo.co.nz</a>
<a class="moz-txt-link-freetext" href="http://lists.katipo.co.nz/mailman/listinfo/koha">http://lists.katipo.co.nz/mailman/listinfo/koha</a>

    </pre>
  </blockquote>
</blockquote>
</body>
</html>

--------------060601030005010808040006--



More information about the Koha mailing list