MARC meeting-name extraction loses linked 880 alternate-script names
Summary
read_authors() does not preserve alternate-script meeting names linked to MARC field 111 through field 880.
The parallel corporate-name branch (110/710) follows subfield $6 links and preserves both name representations using name and alternate_names.
However, the meeting-name branch reads only the 111 field's a, c, d, and n subfields, without resolving its linked 880 field.
As a result, an explicitly linked alternate-script meeting name is omitted from the extracted author data.
Version and environment
- Repository: https://github.com/internetarchive/openlibrary
- Checked commit:
6d66f877b83af3d4557d766f4f156165add8e405(source checked on 2026-10-25). - Linux; Python 3.14.5 and the checkout’s test requirements. The parsing checks use luqum 0.11.0. Building psycopg2 requires PostgreSQL development headers/pg_config; our reproduction environment used the same-version psycopg2-binary distribution instead.
Expected behavior
When a MARC 111 meeting-name field is linked to an 880 alternate-script representation through subfield $6, read_authors() should preserve both name representations.
This should be consistent with the existing handling of linked 880 fields for corporate names. The report does not require a specific choice of which script becomes the primary name versus an alternate_names entry.
Reproduction
Prepare a separate checkout:
git clone https://github.com/internetarchive/openlibrary.git oblitest-openlibrary
cd oblitest-openlibrary
git checkout --detach 6d66f877b83af3d4557d766f4f156165add8e405
git submodule update --init --recursive
python3.14 -m venv .venv
. .venv/bin/activate
python -m pip install -r requirements_test.txt
export PYTHONPATH="$PWD${PYTHONPATH:+:$PYTHONPATH}"
From the checked-out repository root, save the following as reproduce.py and run python reproduce.py. It prints observations; a zero script exit status does not mean that the reported behavior is correct.
from lxml import etree
from openlibrary.catalog.marc.marc_xml import MarcXml
from openlibrary.catalog.marc.parse import read_authors
def parse(tag, linked=False):
link = '<subfield code="6">880-01</subfield>' if linked else ''
alternate = (f'<datafield tag="880" ind1="2" ind2=" "><subfield code="6">{tag}-01</subfield>'
'<subfield code="a">会议名称</subfield></datafield>') if linked else ''
xml = ('<record xmlns="http://www.loc.gov/MARC21/slim"><leader>00000nam a2200000 a 4500</leader>'
f'<datafield tag="{tag}" ind1="2" ind2=" "><subfield code="a">Example Conference</subfield>{link}</datafield>'
f'{alternate}</record>')
return read_authors(MarcXml(etree.fromstring(xml.encode())))
for tag in ['111', '110']:
print(tag, parse(tag, linked=True))
Observed behavior
With equivalent MARCXML records differing only in whether the primary field is 110 or 111:
- The linked
110record preserves the alternate-script name会议名称and the original nameExample Conference. - The linked
111record returnsExample Conferenceas the event name but does not include会议名称inalternate_names.
Both records contain a correctly linked 880 field. The difference arises from the event-name branch not resolving the $6 linkage.
Scope of the evidence
Actual MARCXML and author-reader components with linked records. The report does not prescribe a particular concatenation format for the primary name.
Relevant source
Reported by ObliTest. We would appreciate your assessment of the behavior and the proposed scope of this report.
We have manually reviewed this finding and believe it may be worth your attention.
Project: https://github.com/oblitest340-oss/ObliTest
Contact: [email protected]
Hi @lucky20020327 i am new to open source can i work on this
Hi! Yes, feel free to give it a try. Please add a regression test for the linked 880 field and follow the existing 110/710 handling as a reference. The maintainers will review the proposed fix and decide on the final scope. Thanks for your interest!
sorry closing this as spammy, no real world use-case to back any of this up or to determine importance.
Sorry, the original report should have included a real Open Library record rather than relying only on synthetic MARCXML.
I checked this again and found an example already imported into Open Library: OL20061444M. Its source_records entry points to a Library of Congress MARC record containing these linked fields:
111 $6 880-01
$a Tang Song fu nü shi yan jiu yu li shi xue guo ji xue shu yan tao hui
880 $6 111-01/$1
$a 唐宋妇女史硏究与历史学国际学术硏讨会
The resulting author record contains only the romanized name and has no alternate_names. Searching Open Library by the romanized meeting name finds the work, while searching by the linked Chinese name does not.
So this is not only a synthetic MARC combination: it occurs in data that Open Library has actually imported, and the alternate-script meeting name is lost during that import. Sorry that this evidence was missing from the initial report. Would you consider reopening the issue?