Comment 2 for bug 1879335

Revision history for this message
Bill Erickson (berick) wrote :

As it stands, my branch extracts the heading and thesaurus data the same way the Dojo UI does, by pulling it directly from the MARC record. I wanted to use the already extracted simple_heading data, but I ran into some inconsistencies. I'm wondering if they are configuration related or if I'm missing something.

Concerto authority record #54 has a 100 field like so:

100 $a Handel, George Frideric, 1685-1759. $x Operas

It has a normalized simple heading value (authority.record_entry.simple_heading):

100 a handel george frideric 1685 1759 x operas

However when you look at the authority.simple_heading entries for the record, there are 2 main_entry headings:

evergreen=# select ash.atag, ash.value, acsaf.main_entry, acsaf.name from authority.simple_heading ash join authority.control_set_authority_field acsaf on acsaf.id = ash.atag where ash.record = 54;
 atag | value | main_entry | name
------+------------------------------------+------------+--------------------------
    1 | Handel, George Frideric, 1685-1759 | | Heading -- Personal Name
    5 | Operas | | Heading -- Topical Term

I expected to find a single main entry authority.simple_heading that matched the normalized simple heading that's stored directly on the record (sans normalization). What am I missing?

=====

On another note, is authority.record_entry.source meant to be a reference to config.bib_source? I can't find any code that actually uses it, no IDL refs, foreign key refs, etc.