<html>
<body>
At 01:14 PM 9/15/2013 -0300, Bernardo Gonzalez Kriegel wrote:<br>
<blockquote type=cite class=cite cite>Paul,<br><br>
if what you are trying to do is link biblios to authorities,<br>
you could use
misc/<a href="http://link_bibs_to_authorities.pl">link_bibs_to_authorities.pl</a>
script.<br><br>
First try with
misc/<a href="http://link_bibs_to_authorities.pl">link_bibs_to_authorities.pl</a>
-v -l -test<br>
to do a test, then without -test.</blockquote><br>
Many thanks Bernardo,<br><br>
It will take a fair amount of "double checking" (and I'm short
of cataloguers over the week-end), but it's certainly doing something in
the sandbox. But what does "fuzzily linked" mean,
please?<br><br>
Running a "SELECT ... WHERE length(650$a) != 0 and length(650$9)= 0
gives me: <br>
5210 rows in set (1.06 sec) so ~5000 auths without RLINs (they're all
650s as far as I can tell, no 610s etc)<br><br>
and perl ./usr/share/koha/bin/link_bibs_to_authorities.pl -v -l -test
gives me a summary:<br><br>
Bib authority heading linking report<br>
=======================================================<br>
Linker
module:                         
C4::Linker::Default<br>
Run started
at:                        
09/15/13 17:25:22<br>
Run ended
at:                          
09/15/13 17:29:22<br>
Total run
time:                        
239255 ms<br>
Number of bibs
checked:                
31163<br>
Number of bibs
modified:               
0<br>
Number of bibs with
errors:            
0<br>
Number of headings
linked:             
48310<br>
Number of headings
unlinked:           
0<br>
Number of headings fuzzily linked:     
27818<br><br>
****  Ran in test mode only  ****<br><br>
<br>
Many thanks - Paul<br><br>
<br><br>
<br><br>
<blockquote type=cite class=cite cite>Don't forget to reindex.<br><br>
Regards,<br>
Bernardo<br>
 <br><br>
-- <br>
Bernardo Gonzalez Kriegel<br>
<a href="mailto:bgkriegel@gmail.com">bgkriegel@gmail.com</a><br><br>
<br>
On Sun, Sep 15, 2013 at 12:53 PM, Paul
<<a href="mailto:paul.a@aandc.org">paul.a@aandc.org</a>>
wrote:<br>

<dl>
<dd>We have found (much too late!), several thousand instances of 6xx
Authority fields with valid $a but missing the $9 (RLIN); I would
sincerely appreciate assistance in correcting this.<br><br>

<dd>The $a fields are very repetitive, only about twenty in total; to do
this "by hand" in the staff interface is "easy" but
would be nearly three weeks work at say one minute per record.<br><br>

<dd>To do this (obviously starting in the sandbox) by manipulating the
MySQL db (biblioitems.marc and biblioitems.marcxml might be the way to
go, but I have no experience UPDATEing into longblobs and
longtexts.<br><br>

<dd>So, (a) is there an easier way? Â Or (b) Has anyone got a pre-built
MySQL script for UPDATEing into long blobs and text?<br><br>

<dd>Many thanks for any suggestions.<br><br>

<dd>Best - Paul<br><br>

<dd>P.S. Â I've tried along the lines of:<br>

<dd>UPDATE biblioitems (marc,
'//datafield[@tag="650"]/subfield[@code="9"]') =
12345<br>

<dd>WHERE(marc,
'//datafield[@tag="650"]/subfield[@code="a"]') =
'Authority in question'<br>

<dd>AND (marc,
'//datafield[@tag="650"]/subfield[@code="9"]') IS
NULL;<br><br>

<dd>but UPDATE seems to fail for marc and marcxml (longtext and
longblob), and of course INSERT will not take a WHERE argument. I can't
find the field structures in SchemaSpy -- but even with them, I'm not
certain that I'm on the right track.<br><br>

<dd>_______________________________________________<br>

<dd>Koha-devel mailing list<br>

<dd><a href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a><br>

<dd><a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" eudora="autourl">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>

<dd>website :
<a href="http://www.koha-community.org/">http://www.koha-community.org/</a><br>

<dd>git :
<a href="http://git.koha-community.org/">http://git.koha-community.org/</a><br>

<dd>bugs :
<a href="http://bugs.koha-community.org/">http://bugs.koha-community.org/</a><br><br>

</dl></blockquote>
<x-sigsep><p></x-sigsep>
---<br>
Maritime heritage and history, preservation and conservation, <br>
research and education through the written word and the arts.<br>
<<a href="http://navalmarinearchive.com/" eudora="autourl">http://NavalMarineArchive.com</a>>
and
<<a href="http://ultramarine.ca/" eudora="autourl">http://UltraMarine.ca</a>><br>
</body>
</html>