koha-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-devel] Authorities MARC : Code Cleaning. Call for comment.


From: Henri-Damien LAURENT
Subject: [Koha-devel] Authorities MARC : Code Cleaning. Call for comment.
Date: Fri, 06 Apr 2007 15:49:52 +0200
User-agent: Thunderbird 1.5.0.10 (X11/20070305)

         GetAuthType

            $result= &GetAuthType( $authtypecode)
                If $authtypecode is not "" then
                  Returns hashref to authtypecode information
                else
                  returns ref to array of hashref information of all
Authtypes

         FindDuplicateAuthority

               $record= &FindDuplicateAuthority( $record, $authtypecode)
return $authid,Summary if duplicate is found.

               Comments : an improvement would be to return All the
records that match.

         BuildSummary

               $text= &BuildSummary( $record, $authid, $authtypecode)
return HTML encoded Summary

               Comment : authtypecode can be infered from both record
and authid.  Moreover, authid can also be inferred from $record.
               Would it be interesting to delete those things ?

         BuildUnimarcHierarchy

               $ref= &BuildUnimarcHierarchy( $record, $class,$authid)
return a hashref in order to display hierarchy for record and
               final Authid $authid
               "loopparents" "loopchildren" "class" "loopauthid"
"current_value" "value"

               "ifparents" "ifchildren" Those two latest ones should
disappear soon.

         merge

               $ref= &merge(mergefrom,$MARCfrom,$mergeto,$MARCto)

               Could add some feature : Migrating from a typecode to an
other. For instance, a person into a Corporate Name, Topical to
Toponymy.  Then we should add some new parameter :
               bibliotargettag

-- 
Henri-Damien LAURENT




reply via email to

[Prev in Thread] Current Thread [Next in Thread]