Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

then it fetches a MARC record from Walter's folio::marcRecords db table like so : select marc from marcRecords where instanceId is null limit 1;

next it parses the MARC record for the following tags and puts whatever data it finds into the relevant JSON string or array

    •  100 → contributors
    •  110 → contributors
    •  111 → contributors
    •  130 → alternativeTitles
    •  210 → alternativeTitles
    •  222 → alternativeTitles
    •  240 → alternativeTitles
    •  242 → alternativeTitles
    •  243 → alternativeTitles
    •  246 → alternativeTitles
      •  # - No type specified
      •  0 - Portion of title
      •  1 - Parallel title
      •  2 - Distinctive title
      •  3 - Other title
      •  4 - Cover title
      •  5 - Added title page title
      •  6 - Caption title
      •  7 - Running title
      •  8 - Spine title
    •  247 → alternativeTitles
    •  730 → alternativeTitles
    •  740 → alternativeTitles

- see mapping bib/item data to FOLIO

since FOLIO associates locations with call numbers and the ILS associated locations with items Walter has to figure how to do that...

when it's all done it updates Walter's folio::marcRecords db table like so : update marcRecords set instanceId=$instanceId where catalogKey=$catalogKey; 

...