<div dir="ltr"><div>Johann,</div><div><br></div><div>Thanks for referring me to the documentation. Not a perl guy at all so it is very helpful. </div><div><br></div><div>I've noticed that the marc_add command expects indicator and subfield elements. Looking at the code beginning at line 145 at Catmandu/MARC.pm, it seems that control fields are not accounted for. Do I have that right? </div><div><br></div><div>Thanks again, Jason</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div><font size="2" face="garamond, serif" style="background-color:rgb(255,255,255)" color="#666666">Jason Loeffler</font></div><div><font size="2" face="garamond, serif" style="background-color:rgb(255,255,255)" color="#666666">Technology Consultant | </font><span style="color:rgb(102,102,102);font-family:garamond,serif">The American Academy in Rome</span></div></div></div></div></div>
<br><div class="gmail_quote">On Sat, Oct 1, 2016 at 7:57 AM, Johann Rolschewski <span dir="ltr"><<a href="mailto:rolschewski@gmail.com" target="_blank">rolschewski@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Jason,<br>
<br>
you should use the "marc_*"-fixes:<br>
<br>
$ catmandu convert MARC --type ISO to MARC --type XML --fix<br>
'marc_add(900,ind1," ",a,test,b,test)' < camel.mrc<br>
<br>
Look at <<a href="https://metacpan.org/release/Catmandu-MARC" rel="noreferrer" target="_blank">https://metacpan.org/release/<wbr>Catmandu-MARC</a>> for more documentation.<br>
<br>
Kind regards,<br>
<br>
Johann<br>
<br>
Am 30.09.2016 um 20:56 schrieb Jason Loeffler:<br>
> Hi Patrick,<br>
><br>
> Thanks for confirming, that's just what I thought. But the following<br>
> simple fix doesn't fire. Same result with other commands.<br>
><br>
> catmandu convert MARC --type ISO to MARC --type ISO ---fix<br>
> "add_field('999','foo')" < camel.mrc<br>
><br>
> Here's the output:<br>
> _<a href="https://gist.github.com/minorscience/61dceaa904ebf97fabd9ef59ef02a26f_" rel="noreferrer" target="_blank">https://gist.github.com/<wbr>minorscience/<wbr>61dceaa904ebf97fabd9ef59ef02a2<wbr>6f_</a><br>
> _<br>
> _<br>
> Am I missing something obvious?<br>
><br>
> Best, Jason<br>
</blockquote></div><br></div></div>