Uploaded image for project: 'mod-data-export'
  1. mod-data-export
  2. MDEXP-136

Generate MARC bib record - 008 fields

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      Concorde - Sprint 89, Concorde - Sprint 90
    • Story Points:
      3
    • Development Team:
      Concorde

      Description

      Purpose
      To a very basic MARC record generated in MDEXP-93 we will append 008 field in accordance with the recommended mapping:

      008 mapping

      • 00-05 - Metadata.createdDate field in yymmdd format
      • 06 is set to | (pipe character)
      • 07-10 to instance.publication[0].dateOfPublicationfield if can be formatted else |||| (four pipe characters)
      • 11-14 to instance.publication[1].dateOfPublicationfield if can be formatted else |||| (four pipe characters)
      • 18- 22 - each field set to |
      • 23-29 - each field to be blank
      • 30-34 - each field set to |
      • 35-37 - if instance.languages array is empty set it to "und", if one element, use it to populate the field (it should be 3 letter language code), if the array contains more than one language, then set it to "mul"
      • 38 set it to |
      • 39 set it to |

      Acceptance criteria

      1. The generated record is short-lived and generated each time it is requested
      2. The record is saved in .mrc file and contains 001, 008, 245$a 999ff$i fields are present and populated with the correct data
      3. Unit tests are written
      4. API tests are written

      Library of Congress documentation:
      https://www.loc.gov/marc/bibliographic/bd008.html

        TestRail: Results

          Attachments

          1. screenshot-5.png
            screenshot-5.png
            115 kB
          2. screenshot-4.png
            screenshot-4.png
            101 kB
          3. screenshot-3.png
            screenshot-3.png
            111 kB
          4. screenshot-2.png
            screenshot-2.png
            161 kB
          5. screenshot-1.png
            screenshot-1.png
            202 kB
          6. expected_marc_record.mrc
            0.9 kB

            Issue Links

              Activity

                People

                Assignee:
                Igor_Gorchakov Igor Gorchakov
                Reporter:
                magdaz Magda Zacharska
                Tester Assignee:
                Magda Zacharska Magda Zacharska
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases