[Koha-devel] Cataloging and linking to authorities subfield ORDER!

Dhd Koha (grharry) dhd.koha at gmail.com
Wed Oct 15 12:49:53 CEST 2014


Hi,

My librarian complains that when in cataloging and in particular when he 
links a biblio marc record to an authority existing record,
he needs the order of the subfields copied from the authority to be 
intact and according to the authority record!

For instance

When he wishes to link to marc_field XXX subfields ($a, $y, $x, $z)
then the subfields of the final marc record should be in the same order and
*not* as the defined in the subfields of this marc framework for this TAG!

Say there is a field
444 and  subfields defined are a,y,x,z

The tags and the RECORD Types are just example tags

we need to link and copy fields from Authority record  type 
"AN_AUTHORITY_TYPE_RECORD"
but inside the Authority record the fields are saved with the order ( a, 
z, y, x )

So we need them also to be saved in the biblio marc record as  tag
444 $a ..... $z ..... $y...... $x .........

So far when cataloging the subfields are stored with the same order as 
they appeared in the subfields definition of the MARC framework !!

Problem 2

Also playing around and observing the js cataloging code  we found that the

perl function  in the Authority.pm

my $record=eval 
{MARC::Record->new_from_xml(StripNonXmlChars($marcxml),'UTF-8',
         (C4::Context->preference("marcflavour") eq 
"UNIMARC"?"UNIMARCAUTH":C4::Context->preference("marcflavour")))};

is not honoring any order at all, not the framework subfield definition 
and not the Authority record subfields existing order !

Is there a solution to this?

Is there anybody else with the same issue in hand ???

Regards
Harry!



More information about the Koha-devel mailing list