[Koha-bugs] [Bug 14560] New: Rameau authorities

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 17 16:35:35 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14560

            Bug ID: 14560
           Summary: Rameau authorities
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: MARC Authority data support
          Assignee: gmcharlt at gmail.com
          Reporter: matthias.meusburger at biblibre.com
        QA Contact: testopia at bugs.koha-community.org

The purpose of this patch is to give a clean support of the composed Rameau
authorities.

This has been discussed a lot in Bug 8304, and led to a Failed QA (deserved,
imho).

I've rewritten this from scratch, while keeping in mind to separate as much as
possible the Rameau code from the legacy koha code.

What are Rameau authorities?
----------------------------

Rameau authorities are composed authorities that look like this:

606    _311954119
       _aGuerillas
       _311943195
       _yBolivie
       _311976947
       _z1945-1970

The purpose of this patch is to allow to add the koha internal links ($9) when
merging the authority, while preserving the subfield order, which is
meaningful.

If processed correctly (with this patch), the result after merge should be:

606    _311954119
       _926311
       _aGuerillas
       _311943195
       _926312
       _yBolivie
       _311976947
       _926313
       _z1945-1970
       _2rameau


How does it work?
-----------------

A new package has been introduced, C4/AuthoritiesRameau.pm, which is used only
if the useRameau syspref is enabled.

Unit tests are here : t/db_dependent/AuthoritiesRameau.t

There are only 3 changes to the original merge code:

 1) Adds a new parameter to be able to specify if we want to merge to a
specific biblio.
 2) Skip the legacy code if useRameau is enabled and there are multiple $9 in
the field.
 3) use C4/AuthoritiesRameau.pm if useRameau is enabled.


Test plan
---------

It might be a little problematic for you to test this, because Rameau
authorities are only used in France, so you may have to forge authorities if
you don't have data with Rameau authorities. (or someone from France could test
it ? :))

Anyway, make a call to the merge function like this:

merge($mergefrom,$MARCfrom,$mergeto,$MARCto, $biblionumber);

With $mergefrom and $mergeto being the same koha authid, and $MARCfrom and
$MARCto being the result of GetAuthority($authid), and $biblionumber the biblio
you want to merge the authority in.

I'm not sure there is a way to do this in the interface, if anyone knows...

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list