internetarchive / openlibrary

One webpage for every book ever published!
https://openlibrary.org
GNU Affero General Public License v3.0
5.11k stars 1.33k forks source link

Import Author roles from import source data #9844

Open hornc opened 2 weeks ago

hornc commented 2 weeks ago

In a MARC import context: Is there a place to put the role of "translator" in this structure? (based on the 700$4 relator of "trl")?

          Is there a place to put the role of "translator" in this structure? (based on the 700$4 relator of "trl")?

_Originally posted by @tfmorris in https://github.com/internetarchive/openlibrary/pull/9806#discussion_r1735078526_

I believe this is a new feature request, although I think we already have most of the parts in place to mark these contributor roles in our data model, and as @tfmorris mentions it is occasionally/(often?) marked up in the source import records.

Needs some investigation into mapping the role translations from 700$4 to OL contributor fields (or author roles?).

hornc commented 1 day ago

List of realtor codes for $4: https://www.loc.gov/marc/relators/

hornc commented 1 day ago

Two of the current test bin MARCs use $4 roles:

for f in *.mrc; do echo $f ; yaz-marcdump $f | egrep '^7...*\$4' ;done | egrep -B1 '^7...*\$4'

ithaca_college_75002321.mrc
700 10 $a Pechman, Joseph A., $d 1918- $4 edt
700 10 $a Timpane, P. Michael, $d 1934- $4 edt
--
lesnoirsetlesrou0000garl_meta.mrc
700 1  $a Raynaud, Vincent, $d 1971- ... $4 trl $0 (FrPBN)13619036 $0 (isni)0000000121358771