quickMARC record's edit status

Description

Purpose/Overview:
In order to apply source-record states storing mechanism one need to implement corresponding changes on quickMARC.

Requirements/Scope:

  1. QuickMarcJson updating mechanism should be updated to show updating status as described in wiki

Approach:

  • add status-related fields into QuickMarcJson schema (recordState, updatedDate)

  • update status-related info fields on each GET record request

Acceptance criteria:

  • QuickMarcJson schema is updated

  • QuickMarcJson updating logic is updated

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Viachaslau KhandramaiAugust 18, 2020 at 7:09 PM

Verified on BUGFEST ENV. It works as expected. Story can be closed.

Viachaslau KhandramaiAugust 18, 2020 at 10:31 AM
Edited

Verified on okapi-bugfest-goldenrod.folio.ebsco.com:
1) Retrieve record by quickMarc

curl 'https://okapi-bugfest-goldenrod.folio.ebsco.com/records-editor/records?instanceId=c5eb1bf0-fefe-4e18-8ebc-fef197baacc2' -H "X-Okapi-Token: $TOKEN" -w'\n' { "parsedRecordId" : "bedc6d5d-817b-44b3-a409-981b192f3e3d", "parsedRecordDtoId" : "bedc6d5d-817b-44b3-a409-981b192f3e3d", "suppressDiscovery" : false, "instanceId" : "c5eb1bf0-fefe-4e18-8ebc-fef197baacc2", "leader" : "00835cam a2200229 a 4500", "fields" : [ { "tag" : "001", "content" : "in00000000003", "indicators" : [ ] }, { "tag" : "005", "content" : "20030616111422.0", "indicators" : [ ] }, { "tag" : "008", "content" : { "Type" : "a", "BLvl" : "m", "ELvl" : " ", "Desc" : "a", "DtSt" : "s", "Entered" : "020805", "Srce" : " ", "MRec" : " ", "Ctry" : "nyu", "Date2" : " ", "Lang" : "eng", "Date1" : "2002", "Biog" : " ", "Fest" : "0", "Audn" : "j", "Cont" : [ " ", " ", " ", " " ], "Conf" : "0", "Form" : " ", "GPub" : " ", "Ills" : [ " ", " ", " ", " " ], "LitF" : "1", "Indx" : "0" }, "indicators" : [ ] }, { "tag" : "020", "content" : "$a 0786808772", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 0786816155 (pbk.)", "indicators" : [ " ", " " ] }, { "tag" : "035", "content" : "$a 12883376", "indicators" : [ " ", " " ] }, { "tag" : "040", "content" : "$a DLC $c DLC $d DLC", "indicators" : [ " ", " " ] }, { "tag" : "100", "content" : "$a Chabon, Michael.", "indicators" : [ "1", " " ] }, { "tag" : "245", "content" : "$a Summerland / $c Michael Chabon.", "indicators" : [ "1", "0" ] }, { "tag" : "250", "content" : "$a 1st ed.", "indicators" : [ " ", " " ] }, { "tag" : "260", "content" : "$a New York : $b Miramax Books/Hyperion Books for Children, $c c2002.", "indicators" : [ " ", " " ] }, { "tag" : "300", "content" : "$a 500 p. ; $c 22 cm.", "indicators" : [ " ", " " ] }, { "tag" : "520", "content" : "$a Ethan Feld, the worst baseball player in the history of the game, finds himself recruited by a 100-year-old scout to help a band of fairies triumph over an ancient enemy.", "indicators" : [ " ", " " ] }, { "tag" : "650", "content" : "$a Baseball $v Fiction.", "indicators" : [ " ", "1" ] }, { "tag" : "650", "content" : "$a Fantasy.", "indicators" : [ " ", "1" ] }, { "tag" : "650", "content" : "$a Magic $v Fiction.", "indicators" : [ " ", "1" ] }, { "tag" : "999", "content" : "$s bedc6d5d-817b-44b3-a409-981b192f3e3d $i c5eb1bf0-fefe-4e18-8ebc-fef197baacc2", "indicators" : [ "f", "f" ] } ], "updateInfo" : { "recordState" : "ACTUAL", "updateDate" : "2020-08-18T10:18:54.680+0000" } }

2) Update record

curl -i -X PUT https://okapi-bugfest-goldenrod.folio.ebsco.com/records-editor/records/bedc6d5d-817b-44b3-a409-981b192f3e3d \ -H 'Content-Type: application/json' \ -H "x-okapi-token: $TOKEN" -w'\n' \ -d '{ "parsedRecordId" : "bedc6d5d-817b-44b3-a409-981b192f3e3d", "parsedRecordDtoId" : "bedc6d5d-817b-44b3-a409-981b192f3e3d", "suppressDiscovery" : false, "instanceId" : "c5eb1bf0-fefe-4e18-8ebc-fef197baacc2", "leader" : "00835cam a2200229 a 4500", "fields" : [ { "tag" : "001", "content" : "in00000000003", "indicators" : [ ] }, { "tag" : "005", "content" : "20030616111422.0", "indicators" : [ ] }, { "tag" : "008", "content" : { "Type" : "a", "BLvl" : "m", "ELvl" : " ", "Desc" : "a", "DtSt" : "s", "Entered" : "020805", "Srce" : " ", "MRec" : " ", "Ctry" : "nyu", "Date2" : " ", "Lang" : "eng", "Date1" : "2002", "Biog" : " ", "Fest" : "0", "Audn" : "j", "Cont" : [ " ", " ", " ", " " ], "Conf" : "0", "Form" : " ", "GPub" : " ", "Ills" : [ " ", " ", " ", " " ], "LitF" : "1", "Indx" : "0" }, "indicators" : [ ] }, { "tag" : "020", "content" : "$a 0786808772", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 0786816155 (pbk.)", "indicators" : [ " ", " " ] }, { "tag" : "035", "content" : "$a 12883376", "indicators" : [ " ", " " ] }, { "tag" : "040", "content" : "$a DLC $c DLC $d DLC", "indicators" : [ " ", " " ] }, { "tag" : "100", "content" : "$a Chabon, Michael.", "indicators" : [ "1", " " ] }, { "tag" : "245", "content" : "$a Summerland / $c Michael Chabon.", "indicators" : [ "1", "0" ] }, { "tag" : "250", "content" : "$a 1st ed.", "indicators" : [ " ", " " ] }, { "tag" : "260", "content" : "$a New York : $b Miramax Books/Hyperion Books for Children, $c c2002.", "indicators" : [ " ", " " ] }, { "tag" : "300", "content" : "$a 500 p. ; $c 22 cm.", "indicators" : [ " ", " " ] }, { "tag" : "520", "content" : "$a Ethan Feld, the worst baseball player in the history of the game, finds himself recruited by a 100-year-old scout to help a band of fairies triumph over an ancient enemy. ---> UPDATED", "indicators" : [ " ", " " ] }, { "tag" : "650", "content" : "$a Baseball $v Fiction.", "indicators" : [ " ", "1" ] }, { "tag" : "650", "content" : "$a Fantasy.", "indicators" : [ " ", "1" ] }, { "tag" : "650", "content" : "$a Magic $v Fiction.", "indicators" : [ " ", "1" ] }, { "tag" : "999", "content" : "$s bedc6d5d-817b-44b3-a409-981b192f3e3d $i c5eb1bf0-fefe-4e18-8ebc-fef197baacc2", "indicators" : [ "f", "f" ] } ], "updateInfo" : { "recordState" : "ACTUAL", "updateDate" : "2020-08-18T10:18:54.680+0000" } }' HTTP/2 202

3) Retrieve record again

curl 'https://okapi-bugfest-goldenrod.folio.ebsco.com/records-editor/records?instanceId=c5eb1bf0-fefe-4e18-8ebc-fef197baacc2' -H "X-Okapi-Token: $TOKEN" -w'\n' { "parsedRecordId" : "308cc9b8-0237-458f-83fc-e98c13a0f815", "parsedRecordDtoId" : "bedc6d5d-817b-44b3-a409-981b192f3e3d", "suppressDiscovery" : false, "instanceId" : "c5eb1bf0-fefe-4e18-8ebc-fef197baacc2", "leader" : "00847cam a2200229 a 4500", "fields" : [ { "tag" : "001", "content" : "in00000000003", "indicators" : [ ] }, { "tag" : "005", "content" : "20030616111422.0", "indicators" : [ ] }, { "tag" : "008", "content" : { "Type" : "a", "BLvl" : "m", "ELvl" : " ", "Desc" : "a", "DtSt" : "s", "Entered" : "020805", "Srce" : " ", "MRec" : " ", "Ctry" : "nyu", "Date2" : " ", "Lang" : "eng", "Date1" : "2002", "Biog" : " ", "Fest" : "0", "Audn" : "j", "Cont" : [ " ", " ", " ", " " ], "Conf" : "0", "Form" : " ", "GPub" : " ", "Ills" : [ " ", " ", " ", " " ], "LitF" : "1", "Indx" : "0" }, "indicators" : [ ] }, { "tag" : "020", "content" : "$a 0786808772", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 0786816155 (pbk.)", "indicators" : [ " ", " " ] }, { "tag" : "035", "content" : "$a 12883376", "indicators" : [ " ", " " ] }, { "tag" : "040", "content" : "$a DLC $c DLC $d DLC", "indicators" : [ " ", " " ] }, { "tag" : "100", "content" : "$a Chabon, Michael.", "indicators" : [ "1", " " ] }, { "tag" : "245", "content" : "$a Summerland / $c Michael Chabon.", "indicators" : [ "1", "0" ] }, { "tag" : "250", "content" : "$a 1st ed.", "indicators" : [ " ", " " ] }, { "tag" : "260", "content" : "$a New York : $b Miramax Books/Hyperion Books for Children, $c c2002.", "indicators" : [ " ", " " ] }, { "tag" : "300", "content" : "$a 500 p. ; $c 22 cm.", "indicators" : [ " ", " " ] }, { "tag" : "520", "content" : "$a Ethan Feld, the worst baseball player in the history of the game, finds himself recruited by a 100-year-old scout to help a band of fairies triumph over an ancient enemy. ---> UPDATED", "indicators" : [ " ", " " ] }, { "tag" : "650", "content" : "$a Baseball $v Fiction.", "indicators" : [ " ", "1" ] }, { "tag" : "650", "content" : "$a Fantasy.", "indicators" : [ " ", "1" ] }, { "tag" : "650", "content" : "$a Magic $v Fiction.", "indicators" : [ " ", "1" ] }, { "tag" : "999", "content" : "$s bedc6d5d-817b-44b3-a409-981b192f3e3d $i c5eb1bf0-fefe-4e18-8ebc-fef197baacc2", "indicators" : [ "f", "f" ] } ], "updateInfo" : { "recordState" : "ACTUAL", "updateDate" : "2020-08-18T10:21:44.862+0000" } }

It works as expected now. Status is ACTIVE after updating. Updating date is changed correctly.

Viachaslau KhandramaiJuly 24, 2020 at 11:39 AM

Verified on folio-testing:
1) Retrieve record by quickMarc

curl 'https://folio-testing-okapi.aws.indexdata.com/records-editor/records?instanceId=980579b8-dc5d-4ea4-bc97-90011ed9ccb8' -H "X-Okapi-Token: $TOKEN" -w'\n' { "parsedRecordId" : "01e681ea-afa5-4cbe-86ce-c2be1a043264", "parsedRecordDtoId" : "01e681ea-afa5-4cbe-86ce-c2be1a043264", "suppressDiscovery" : false, "instanceId" : "980579b8-dc5d-4ea4-bc97-90011ed9ccb8", "leader" : "02370cam a2200565 i 4500", "fields" : [ { "tag" : "001", "content" : "in00000000002", "indicators" : [ ] }, { "tag" : "005", "content" : "20180706131013.0", "indicators" : [ ] }, { "tag" : "008", "content" : { "Type" : "a", "BLvl" : "m", "ELvl" : " ", "Desc" : "i", "DtSt" : "m", "Entered" : "180614", "Srce" : "c", "MRec" : " ", "Ctry" : "ja ", "Date2" : "2003", "Lang" : "jpn", "Date1" : "1999", "Biog" : " ", "Fest" : "0", "Audn" : " ", "Cont" : [ "b", " ", " ", " " ], "Conf" : "0", "Form" : " ", "GPub" : " ", "Ills" : [ "a", " ", " ", " " ], "LitF" : "e", "Indx" : "1" }, "indicators" : [ ] }, { "tag" : "020", "content" : "$a 4061594028 $q (v. 1)", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 4061594036 $q (v. 2)", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 4061594044 $q (v. 3)", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 9784061594029 $q (v. 1)", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 9784061594036 $q (v. 2)", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 9784061594043 $q (v. 3)", "indicators" : [ " ", " " ] }, { "tag" : "035", "content" : "$a (OCoLC)55983459", "indicators" : [ " ", " " ] }, { "tag" : "035", "content" : "$a (OCoLC)ocm55983459", "indicators" : [ " ", " " ] }, { "tag" : "035", "content" : "$a 7850557", "indicators" : [ " ", " " ] }, { "tag" : "040", "content" : "$a IUL $b eng $c IUL $d KEI $d OCLCG $d OCLCA $d JTH $d OCLCO $d OCLCA $d OCLCQ $d OCLCF $d ALM", "indicators" : [ " ", " " ] }, { "tag" : "042", "content" : "$a pcc", "indicators" : [ " ", " " ] }, { "tag" : "049", "content" : "$a ALMM", "indicators" : [ " ", " " ] }, { "tag" : "050", "content" : "$a PL788.6 $b .M3 1999", "indicators" : [ " ", "4" ] }, { "tag" : "100", "content" : "$6 880-01 $a Sei Shōnagon, $d approximately 967-", "indicators" : [ "0", " " ] }, { "tag" : "245", "content" : "$6 880-02 $a Makura no sōshi / $c [Sei Shōnagon] ; zen yakuchū Uesaka Nobuo, Kansaku Kōichi hoka.", "indicators" : [ "1", "0" ] }, { "tag" : "260", "content" : "$6 880-03 $a Tōkyō : $b Kōdansha, $c 1999-2003.", "indicators" : [ " ", " " ] }, { "tag" : "300", "content" : "$a 3 volumes : $b illustrations ; $c 15 cm.", "indicators" : [ " ", " " ] }, { "tag" : "336", "content" : "$a text $b txt $2 rdacontent", "indicators" : [ " ", " " ] }, { "tag" : "337", "content" : "$a unmediated $b n $2 rdamedia", "indicators" : [ " ", " " ] }, { "tag" : "338", "content" : "$a volume $b nc $2 rdacarrier", "indicators" : [ " ", " " ] }, { "tag" : "490", "content" : "$6 880-04 $a Kōdansha gakujutsu bunko ; $v 1402-1404", "indicators" : [ "1", " " ] }, { "tag" : "504", "content" : "$a Includes bibliographical references and index.", "indicators" : [ " ", " " ] }, { "tag" : "520", "content" : "$a The Pillow Book is a collection of anecdotes and personal reflections on life in the Japanese royal court composed around the turn of the 11th century by a woman known as Sei Shônagon. Its lyrical style and compelling images have captured the imagination of readers worldwide.", "indicators" : [ " ", " " ] }, { "tag" : "546", "content" : "$a Text in Japanese.", "indicators" : [ " ", " " ] }, { "tag" : "600", "content" : "$6 880-05 $a Sei Shōnagon, $d approximately 967-", "indicators" : [ "0", "0" ] }, { "tag" : "600", "content" : "$a Sei Shōnagon, $d approximately 967- $2 fast $0 (OCoLC)fst01846685", "indicators" : [ "0", "7" ] }, { "tag" : "650", "content" : "$a Japanese essays.", "indicators" : [ " ", "0" ] }, { "tag" : "650", "content" : "$a Paid companions (Household employees) $z Japan.", "indicators" : [ " ", "0" ] }, { "tag" : "700", "content" : "$6 880-06 $a Uesaka, Nobuo, $d 1927-", "indicators" : [ "1", " " ] }, { "tag" : "700", "content" : "$6 880-07 $a Kansaku, Kōichi, $d 1931-", "indicators" : [ "1", " " ] }, { "tag" : "830", "content" : "$6 880-08 $a Kōdansha gakujutsu bunko ; $v 1402-1404.", "indicators" : [ " ", "0" ] }, { "tag" : "880", "content" : "$6 260-03 $a 東京 : $b 講談社, $c 1999-2003.", "indicators" : [ " ", " " ] }, { "tag" : "880", "content" : "$6 300-00 $a 3冊 ; $c 15 cm.", "indicators" : [ " ", " " ] }, { "tag" : "880", "content" : "$6 830-08 $a 講談社学術文庫; ; $v 1402-1404.", "indicators" : [ " ", "0" ] }, { "tag" : "880", "content" : "$6 100-01 $a 淸少納言, $d approximately 967-", "indicators" : [ "0", " " ] }, { "tag" : "880", "content" : "$6 600-05 $a 淸少納言, $d approximately 967-", "indicators" : [ "0", "4" ] }, { "tag" : "880", "content" : "$6 490-04 $a 講談社学術文庫 ; $v 1402-1404", "indicators" : [ "1", " " ] }, { "tag" : "880", "content" : "$6 700-06 $a 上坂信男, $d 1927-", "indicators" : [ "1", " " ] }, { "tag" : "880", "content" : "$6 700-07 $a 神作光一, $d 1931-", "indicators" : [ "1", " " ] }, { "tag" : "880", "content" : "$6 245-02 $a 枕草子 / $c [淸少納言] ; 全訳註 上坂信男, 神作光一他.", "indicators" : [ "1", "0" ] }, { "tag" : "994", "content" : "$a C0 $b ALM", "indicators" : [ " ", " " ] }, { "tag" : "999", "content" : "$s 01e681ea-afa5-4cbe-86ce-c2be1a043264 $i 980579b8-dc5d-4ea4-bc97-90011ed9ccb8", "indicators" : [ "f", "f" ] } ], "updateInfo" : { "recordState" : "ACTUAL", "updateDate" : "2020-07-24T05:47:00.526+0000" } }

2) Update record

curl -i -X PUT https://folio-testing-okapi.aws.indexdata.com:443/records-editor/records/01e681ea-afa5-4cbe-86ce-c2be1a043264 \ -H 'Content-Type: application/json' \ -H "x-okapi-token: $TOKEN" -w'\n' \ -d '{ "parsedRecordId" : "01e681ea-afa5-4cbe-86ce-c2be1a043264", "parsedRecordDtoId" : "01e681ea-afa5-4cbe-86ce-c2be1a043264", "suppressDiscovery" : false, "instanceId" : "980579b8-dc5d-4ea4-bc97-90011ed9ccb8", "leader" : "02370cam a2200565 i 4500", "fields" : [ { "tag" : "001", "content" : "in00000000002", "indicators" : [ ] }, { "tag" : "005", "content" : "20180706131013.0", "indicators" : [ ] }, { "tag" : "008", "content" : { "Type" : "a", "BLvl" : "m", "ELvl" : " ", "Desc" : "i", "DtSt" : "m", "Entered" : "180614", "Srce" : "c", "MRec" : " ", "Ctry" : "ja ", "Date2" : "2003", "Lang" : "jpn", "Date1" : "1999", "Biog" : " ", "Fest" : "0", "Audn" : " ", "Cont" : [ "b", " ", " ", " " ], "Conf" : "0", "Form" : " ", "GPub" : " ", "Ills" : [ "a", " ", " ", " " ], "LitF" : "e", "Indx" : "1" }, "indicators" : [ ] }, { "tag" : "020", "content" : "$a 4061594028 $q (v. 1) - updated", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 4061594036 $q (v. 2) - updated", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 4061594044 $q (v. 3) - updated", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 9784061594029 $q (v. 1) - updated", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 9784061594036 $q (v. 2) - updated", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 9784061594043 $q (v. 3) - updated", "indicators" : [ " ", " " ] }, { "tag" : "035", "content" : "$a (OCoLC)55983459", "indicators" : [ " ", " " ] }, { "tag" : "035", "content" : "$a (OCoLC)ocm55983459", "indicators" : [ " ", " " ] }, { "tag" : "035", "content" : "$a 7850557", "indicators" : [ " ", " " ] }, { "tag" : "040", "content" : "$a IUL $b eng $c IUL $d KEI $d OCLCG $d OCLCA $d JTH $d OCLCO $d OCLCA $d OCLCQ $d OCLCF $d ALM", "indicators" : [ " ", " " ] }, { "tag" : "042", "content" : "$a pcc", "indicators" : [ " ", " " ] }, { "tag" : "049", "content" : "$a ALMM", "indicators" : [ " ", " " ] }, { "tag" : "050", "content" : "$a PL788.6 $b .M3 1999", "indicators" : [ " ", "4" ] }, { "tag" : "100", "content" : "$6 880-01 $a Sei Shōnagon, $d approximately 967-", "indicators" : [ "0", " " ] }, { "tag" : "245", "content" : "$6 880-02 $a Makura no sōshi / $c [Sei Shōnagon] ; zen yakuchū Uesaka Nobuo, Kansaku Kōichi hoka.", "indicators" : [ "1", "0" ] }, { "tag" : "260", "content" : "$6 880-03 $a Tōkyō : $b Kōdansha, $c 1999-2003.", "indicators" : [ " ", " " ] }, { "tag" : "300", "content" : "$a 3 volumes : $b illustrations ; $c 15 cm.", "indicators" : [ " ", " " ] }, { "tag" : "336", "content" : "$a text $b txt $2 rdacontent", "indicators" : [ " ", " " ] }, { "tag" : "337", "content" : "$a unmediated $b n $2 rdamedia", "indicators" : [ " ", " " ] }, { "tag" : "338", "content" : "$a volume $b nc $2 rdacarrier", "indicators" : [ " ", " " ] }, { "tag" : "490", "content" : "$6 880-04 $a Kōdansha gakujutsu bunko ; $v 1402-1404", "indicators" : [ "1", " " ] }, { "tag" : "504", "content" : "$a Includes bibliographical references and index.", "indicators" : [ " ", " " ] }, { "tag" : "520", "content" : "$a The Pillow Book is a collection of anecdotes and personal reflections on life in the Japanese royal court composed around the turn of the 11th century by a woman known as Sei Shônagon. Its lyrical style and compelling images have captured the imagination of readers worldwide.", "indicators" : [ " ", " " ] }, { "tag" : "546", "content" : "$a Text in Japanese.", "indicators" : [ " ", " " ] }, { "tag" : "600", "content" : "$6 880-05 $a Sei Shōnagon, $d approximately 967-", "indicators" : [ "0", "0" ] }, { "tag" : "600", "content" : "$a Sei Shōnagon, $d approximately 967- $2 fast $0 (OCoLC)fst01846685", "indicators" : [ "0", "7" ] }, { "tag" : "650", "content" : "$a Japanese essays.", "indicators" : [ " ", "0" ] }, { "tag" : "650", "content" : "$a Paid companions (Household employees) $z Japan.", "indicators" : [ " ", "0" ] }, { "tag" : "700", "content" : "$6 880-06 $a Uesaka, Nobuo, $d 1927-", "indicators" : [ "1", " " ] }, { "tag" : "700", "content" : "$6 880-07 $a Kansaku, Kōichi, $d 1931-", "indicators" : [ "1", " " ] }, { "tag" : "830", "content" : "$6 880-08 $a Kōdansha gakujutsu bunko ; $v 1402-1404.", "indicators" : [ " ", "0" ] }, { "tag" : "880", "content" : "$6 260-03 $a 東京 : $b 講談社, $c 1999-2003.", "indicators" : [ " ", " " ] }, { "tag" : "880", "content" : "$6 300-00 $a 3冊 ; $c 15 cm.", "indicators" : [ " ", " " ] }, { "tag" : "880", "content" : "$6 830-08 $a 講談社学術文庫; ; $v 1402-1404.", "indicators" : [ " ", "0" ] }, { "tag" : "880", "content" : "$6 100-01 $a 淸少納言, $d approximately 967-", "indicators" : [ "0", " " ] }, { "tag" : "880", "content" : "$6 600-05 $a 淸少納言, $d approximately 967-", "indicators" : [ "0", "4" ] }, { "tag" : "880", "content" : "$6 490-04 $a 講談社学術文庫 ; $v 1402-1404", "indicators" : [ "1", " " ] }, { "tag" : "880", "content" : "$6 700-06 $a 上坂信男, $d 1927-", "indicators" : [ "1", " " ] }, { "tag" : "880", "content" : "$6 700-07 $a 神作光一, $d 1931-", "indicators" : [ "1", " " ] }, { "tag" : "880", "content" : "$6 245-02 $a 枕草子 / $c [淸少納言] ; 全訳註 上坂信男, 神作光一他.", "indicators" : [ "1", "0" ] }, { "tag" : "994", "content" : "$a C0 $b ALM", "indicators" : [ " ", " " ] }, { "tag" : "999", "content" : "$s 01e681ea-afa5-4cbe-86ce-c2be1a043264 $i 980579b8-dc5d-4ea4-bc97-90011ed9ccb8", "indicators" : [ "f", "f" ] } ], "updateInfo" : { "recordState" : "ACTUAL", "updateDate" : "2020-07-24T05:47:00.526+0000" } }' HTTP/2 202 date: Fri, 24 Jul 2020 11:15:03 GMT x-okapi-trace: PUT mod-authtoken-2.6.0-SNAPSHOT.73 http://10.36.1.117:9133/records-editor/records/01e681ea-afa5-4cbe-86ce-c2be1a043264 : 202 25955us x-okapi-trace: PUT mod-quick-marc-1.1.0-SNAPSHOT.55 http://10.36.1.117:9154/records-editor/records/01e681ea-afa5-4cbe-86ce-c2be1a043264 : 202 249740us

3) Retrieve record again

curl 'https://folio-testing-okapi.aws.indexdata.com/records-editor/records?instanceId=980579b8-dc5d-4ea4-bc97-90011ed9ccb8' -H "X-Okapi-Token: $TOKEN" -w'\n' { "parsedRecordId" : "dd2cf8cf-013c-455c-b883-071f5e45d62c", "parsedRecordDtoId" : "01e681ea-afa5-4cbe-86ce-c2be1a043264", "suppressDiscovery" : false, "instanceId" : "980579b8-dc5d-4ea4-bc97-90011ed9ccb8", "leader" : "02429cam a2200565 i 4500", "fields" : [ { "tag" : "001", "content" : "in00000000002", "indicators" : [ ] }, { "tag" : "005", "content" : "20180706131013.0", "indicators" : [ ] }, { "tag" : "008", "content" : { "Type" : "a", "BLvl" : "m", "ELvl" : " ", "Desc" : "i", "DtSt" : "m", "Entered" : "180614", "Srce" : "c", "MRec" : " ", "Ctry" : "ja ", "Date2" : "2003", "Lang" : "jpn", "Date1" : "1999", "Biog" : " ", "Fest" : "0", "Audn" : " ", "Cont" : [ "b", " ", " ", " " ], "Conf" : "0", "Form" : " ", "GPub" : " ", "Ills" : [ "a", " ", " ", " " ], "LitF" : "e", "Indx" : "1" }, "indicators" : [ ] }, { "tag" : "020", "content" : "$a 4061594028 $q (v. 1) - updated", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 4061594036 $q (v. 2) - updated", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 4061594044 $q (v. 3) - updated", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 9784061594029 $q (v. 1) - updated", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 9784061594036 $q (v. 2) - updated", "indicators" : [ " ", " " ] }, { "tag" : "020", "content" : "$a 9784061594043 $q (v. 3) - updated", "indicators" : [ " ", " " ] }, { "tag" : "035", "content" : "$a (OCoLC)55983459", "indicators" : [ " ", " " ] }, { "tag" : "035", "content" : "$a (OCoLC)ocm55983459", "indicators" : [ " ", " " ] }, { "tag" : "035", "content" : "$a 7850557", "indicators" : [ " ", " " ] }, { "tag" : "040", "content" : "$a IUL $b eng $c IUL $d KEI $d OCLCG $d OCLCA $d JTH $d OCLCO $d OCLCA $d OCLCQ $d OCLCF $d ALM", "indicators" : [ " ", " " ] }, { "tag" : "042", "content" : "$a pcc", "indicators" : [ " ", " " ] }, { "tag" : "049", "content" : "$a ALMM", "indicators" : [ " ", " " ] }, { "tag" : "050", "content" : "$a PL788.6 $b .M3 1999", "indicators" : [ " ", "4" ] }, { "tag" : "100", "content" : "$6 880-01 $a Sei Shōnagon, $d approximately 967-", "indicators" : [ "0", " " ] }, { "tag" : "245", "content" : "$6 880-02 $a Makura no sōshi / $c [Sei Shōnagon] ; zen yakuchū Uesaka Nobuo, Kansaku Kōichi hoka.", "indicators" : [ "1", "0" ] }, { "tag" : "260", "content" : "$6 880-03 $a Tōkyō : $b Kōdansha, $c 1999-2003.", "indicators" : [ " ", " " ] }, { "tag" : "300", "content" : "$a 3 volumes : $b illustrations ; $c 15 cm.", "indicators" : [ " ", " " ] }, { "tag" : "336", "content" : "$a text $b txt $2 rdacontent", "indicators" : [ " ", " " ] }, { "tag" : "337", "content" : "$a unmediated $b n $2 rdamedia", "indicators" : [ " ", " " ] }, { "tag" : "338", "content" : "$a volume $b nc $2 rdacarrier", "indicators" : [ " ", " " ] }, { "tag" : "490", "content" : "$6 880-04 $a Kōdansha gakujutsu bunko ; $v 1402-1404", "indicators" : [ "1", " " ] }, { "tag" : "504", "content" : "$a Includes bibliographical references and index.", "indicators" : [ " ", " " ] }, { "tag" : "520", "content" : "$a The Pillow Book is a collection of anecdotes and personal reflections on life in the Japanese royal court composed around the turn of the 11th century by a woman known as Sei Shônagon. Its lyrical style and compelling images have captured the imagination of readers worldwide.", "indicators" : [ " ", " " ] }, { "tag" : "546", "content" : "$a Text in Japanese.", "indicators" : [ " ", " " ] }, { "tag" : "600", "content" : "$6 880-05 $a Sei Shōnagon, $d approximately 967-", "indicators" : [ "0", "0" ] }, { "tag" : "600", "content" : "$a Sei Shōnagon, $d approximately 967- $2 fast $0 (OCoLC)fst01846685", "indicators" : [ "0", "7" ] }, { "tag" : "650", "content" : "$a Japanese essays.", "indicators" : [ " ", "0" ] }, { "tag" : "650", "content" : "$a Paid companions (Household employees) $z Japan.", "indicators" : [ " ", "0" ] }, { "tag" : "700", "content" : "$6 880-06 $a Uesaka, Nobuo, $d 1927-", "indicators" : [ "1", " " ] }, { "tag" : "700", "content" : "$6 880-07 $a Kansaku, Kōichi, $d 1931-", "indicators" : [ "1", " " ] }, { "tag" : "830", "content" : "$6 880-08 $a Kōdansha gakujutsu bunko ; $v 1402-1404.", "indicators" : [ " ", "0" ] }, { "tag" : "880", "content" : "$6 260-03 $a 東京 : $b 講談社, $c 1999-2003.", "indicators" : [ " ", " " ] }, { "tag" : "880", "content" : "$6 300-00 $a 3冊 ; $c 15 cm.", "indicators" : [ " ", " " ] }, { "tag" : "880", "content" : "$6 830-08 $a 講談社学術文庫; ; $v 1402-1404.", "indicators" : [ " ", "0" ] }, { "tag" : "880", "content" : "$6 100-01 $a 淸少納言, $d approximately 967-", "indicators" : [ "0", " " ] }, { "tag" : "880", "content" : "$6 600-05 $a 淸少納言, $d approximately 967-", "indicators" : [ "0", "4" ] }, { "tag" : "880", "content" : "$6 490-04 $a 講談社学術文庫 ; $v 1402-1404", "indicators" : [ "1", " " ] }, { "tag" : "880", "content" : "$6 700-06 $a 上坂信男, $d 1927-", "indicators" : [ "1", " " ] }, { "tag" : "880", "content" : "$6 700-07 $a 神作光一, $d 1931-", "indicators" : [ "1", " " ] }, { "tag" : "880", "content" : "$6 245-02 $a 枕草子 / $c [淸少納言] ; 全訳註 上坂信男, 神作光一他.", "indicators" : [ "1", "0" ] }, { "tag" : "994", "content" : "$a C0 $b ALM", "indicators" : [ " ", " " ] }, { "tag" : "999", "content" : "$s 01e681ea-afa5-4cbe-86ce-c2be1a043264 $i 980579b8-dc5d-4ea4-bc97-90011ed9ccb8", "indicators" : [ "f", "f" ] } ], "updateInfo" : { "recordState" : "IN_PROGRESS", "updateDate" : "2020-07-24T11:15:03.296+0000" } }

Changes were applied but recordStatus is incorrect. Story can be closed& Mentioned bug should be fixed in scope of CM story https://folio-org.atlassian.net/browse/MODSOURMAN-342.

Viachaslau KhandramaiJuly 24, 2020 at 10:52 AM

Story for recordState issues is created https://folio-org.atlassian.net/browse/MODSOURMAN-342

Siarhei CharniakJuly 24, 2020 at 8:41 AM

Verified on folio-testing environment

Note: For the sake of clarity, redundant fields in records were removed.

1. Retrieve an existing MARC record

curl -i --request GET 'https://folio-testing-okapi.aws.indexdata.com:443/records-editor/records?instanceId=be94d061-8e4d-4979-bb59-fc6ef0f40738' \ --header "x-okapi-token: $OKAPITOKEN" \ --header 'Content-Type: application/json' HTTP/2 200 date: Fri, 24 Jul 2020 07:58:47 GMT content-type: application/json x-okapi-trace: GET mod-authtoken-2.6.0-SNAPSHOT.73 http://10.36.1.117:9133/records-editor/records.. : 202 25776us x-okapi-trace: GET mod-quick-marc-1.1.0-SNAPSHOT.55 http://10.36.1.117:9154/records-editor/records.. : 200 72154us { "parsedRecordId" : "d648d9bf-396b-4c1d-8ea7-1c8663f2bedd", "parsedRecordDtoId" : "d648d9bf-396b-4c1d-8ea7-1c8663f2bedd", "suppressDiscovery" : false, "instanceId" : "be94d061-8e4d-4979-bb59-fc6ef0f40738", "leader" : "03413cmm a2200685Ia 4500", "fields" : [ { "tag" : "001", "content" : "in00000000042", "indicators" : [ ] }, { "tag" : "005", "content" : "20180706150512.0", "indicators" : [ ] }, { "tag" : "007", "content" : { "Level of compression" : "|", "Category" : "c", "Color" : "c", "Antecedent/ Source" : "|", "File formats" : "|", "Quality assurance target(s)" : "|", "Dimensions" : "|", "Sound" : "g", "SMD" : "o", "Reformatting quality" : "|", "Image bit depth" : "|||" }, "indicators" : [ ] }, { "tag" : "008", "content" : { "Type" : "m", "BLvl" : "m", "ELvl" : "I", "Desc" : "a", "DtSt" : "s", "Entered" : "020327", "Srce" : "d", "MRec" : " ", "Ctry" : "cc ", "Date2" : " ", "Lang" : "chi", "Date1" : "1999", "Audn" : " ", "Form" : "q", "GPub" : " ", "File" : "i" }, "indicators" : [ ] }, { "tag" : "020", "content" : "$a 7900615644", "indicators" : [ " ", " " ] }, ... { "tag" : "999", "content" : "$s d648d9bf-396b-4c1d-8ea7-1c8663f2bedd $i be94d061-8e4d-4979-bb59-fc6ef0f40738", "indicators" : [ "f", "f" ] } ], "updateInfo" : { "recordState" : "ACTUAL", "updateDate" : "2020-07-24T05:47:00.657+0000" } }

2. Edit record (for example, "Date2" field value in tag 008) and update it

curl -i --request PUT 'https://folio-testing-okapi.aws.indexdata.com:443/records-editor/records/d648d9bf-396b-4c1d-8ea7-1c8663f2bedd' \ --header "x-okapi-token: $OKAPITOKEN" \ --header 'Content-Type: application/json' \ --data-raw '{ "parsedRecordId" : "d648d9bf-396b-4c1d-8ea7-1c8663f2bedd", "parsedRecordDtoId" : "d648d9bf-396b-4c1d-8ea7-1c8663f2bedd", "suppressDiscovery" : false, "instanceId" : "be94d061-8e4d-4979-bb59-fc6ef0f40738", "leader" : "03413cmm a2200685Ia 4500", "fields" : [ { "tag" : "001", "content" : "in00000000042", "indicators" : [ ] }, { "tag" : "005", "content" : "20180706150512.0", "indicators" : [ ] }, { "tag" : "007", "content" : { "Level of compression" : "|", "Category" : "c", "Color" : "c", "Antecedent/ Source" : "|", "File formats" : "|", "Quality assurance target(s)" : "|", "Dimensions" : "|", "Sound" : "g", "SMD" : "o", "Reformatting quality" : "|", "Image bit depth" : "|||" }, "indicators" : [ ] }, { "tag" : "008", "content" : { "Type" : "m", "BLvl" : "m", "ELvl" : "I", "Desc" : "a", "DtSt" : "s", "Entered" : "020327", "Srce" : "d", "MRec" : " ", "Ctry" : "cc ", "Date2" : "2000", "Lang" : "chi", "Date1" : "1999", "Audn" : " ", "Form" : "q", "GPub" : " ", "File" : "i" }, "indicators" : [ ] }, { "tag" : "020", "content" : "$a 7900615644", "indicators" : [ " ", " " ] }, ... { "tag" : "999", "content" : "$s d648d9bf-396b-4c1d-8ea7-1c8663f2bedd $i be94d061-8e4d-4979-bb59-fc6ef0f40738", "indicators" : [ "f", "f" ] } ], "updateInfo" : { "recordState" : "ACTUAL", "updateDate" : "2020-07-24T05:47:00.657+0000" } }' HTTP/2 202 date: Fri, 24 Jul 2020 08:09:18 GMT x-okapi-trace: PUT mod-authtoken-2.6.0-SNAPSHOT.73 http://10.36.1.117:9133/records-editor/records/d648d9bf-396b-4c1d-8ea7-1c8663f2bedd : 202 7819us x-okapi-trace: PUT mod-quick-marc-1.1.0-SNAPSHOT.55 http://10.36.1.117:9154/records-editor/records/d648d9bf-396b-4c1d-8ea7-1c8663f2bedd : 202 536995us

3. Retrieve record again to check it's status

curl -i --request GET 'https://folio-testing-okapi.aws.indexdata.com:443/records-editor/records?instanceId=be94d061-8e4d-4979-bb59-fc6ef0f40738' \ --header "x-okapi-token: $OKAPITOKEN" \ --header 'Content-Type: application/json' HTTP/2 200 date: Fri, 24 Jul 2020 08:11:58 GMT content-type: application/json x-okapi-trace: GET mod-authtoken-2.6.0-SNAPSHOT.73 http://10.36.1.117:9133/records-editor/records.. : 202 29752us x-okapi-trace: GET mod-quick-marc-1.1.0-SNAPSHOT.55 http://10.36.1.117:9154/records-editor/records.. : 200 61237us { "parsedRecordId" : "0b2bfc92-3858-4ce6-a33a-dda39f3eeb51", "parsedRecordDtoId" : "d648d9bf-396b-4c1d-8ea7-1c8663f2bedd", "suppressDiscovery" : false, "instanceId" : "be94d061-8e4d-4979-bb59-fc6ef0f40738", "leader" : "03412cmm a2200685Ia 4500", "fields" : [ { "tag" : "001", "content" : "in00000000042", "indicators" : [ ] }, { "tag" : "005", "content" : "20180706150512.0", "indicators" : [ ] }, { "tag" : "007", "content" : { "Level of compression" : "|", "Category" : "c", "Color" : "c", "Antecedent/ Source" : "|", "File formats" : "|", "Quality assurance target(s)" : "|", "Dimensions" : "|", "Sound" : "g", "SMD" : "o", "Reformatting quality" : "|", "Image bit depth" : "|||" }, "indicators" : [ ] }, { "tag" : "008", "content" : { "Type" : "m", "BLvl" : "m", "ELvl" : "I", "Desc" : "a", "DtSt" : "s", "Entered" : "020327", "Srce" : "d", "MRec" : " ", "Ctry" : "cc ", "Date2" : "2000", "Lang" : "chi", "Date1" : "1999", "Audn" : " ", "Form" : "q", "GPub" : " ", "File" : "i" }, "indicators" : [ ] }, { "tag" : "020", "content" : "$a 7900615644", "indicators" : [ " ", " " ] }, ... { "tag" : "999", "content" : "$s d648d9bf-396b-4c1d-8ea7-1c8663f2bedd $i be94d061-8e4d-4979-bb59-fc6ef0f40738", "indicators" : [ "f", "f" ] } ], "updateInfo" : { "recordState" : "IN_PROGRESS", "updateDate" : "2020-07-24T08:09:18.125+0000" } }

Note: the record was updated successfuly and updateInfo fields were changed, but recordState remains "IN_PROGRESS". This is an issue on the change-manager side, as shown below:

curl -i --request GET 'https://folio-testing-okapi.aws.indexdata.com:443/change-manager/parsedRecords?instanceId=be94d061-8e4d-4979-bb59-fc6ef0f40738' \ --header "x-okapi-token: $OKAPITOKEN" \ --header 'Content-Type: application/json' HTTP/2 200 date: Fri, 24 Jul 2020 08:14:42 GMT content-type: application/json x-okapi-trace: GET mod-authtoken-2.6.0-SNAPSHOT.73 http://10.36.1.117:9133/change-manager/parsedRecords.. : 202 26465us x-okapi-trace: GET mod-source-record-manager-2.4.0-SNAPSHOT.291 http://10.36.1.117:9153/change-manager/parsedRecords.. : 200 28820us { "id" : "d648d9bf-396b-4c1d-8ea7-1c8663f2bedd", "externalIdsHolder" : { "instanceId" : "be94d061-8e4d-4979-bb59-fc6ef0f40738" }, "recordType" : "MARC", "parsedRecord" : { "id" : "0b2bfc92-3858-4ce6-a33a-dda39f3eeb51", "content" : { "fields" : [ { "001" : "in00000000042" }, { "005" : "20180706150512.0" }, { "007" : "co c|g||||||||" }, { "008" : "020327s19992000cc q i chi d" }, { "020" : { "ind1" : " ", "ind2" : " ", "subfields" : [ { "a" : "7900615644" } ] } }, ... { "999" : { "ind1" : "f", "ind2" : "f", "subfields" : [ { "s" : "d648d9bf-396b-4c1d-8ea7-1c8663f2bedd" }, { "i" : "be94d061-8e4d-4979-bb59-fc6ef0f40738" } ] } } ], "leader" : "03412cmm a2200685Ia 4500" } }, "recordState" : "IN_PROGRESS", "additionalInfo" : { "suppressDiscovery" : false }, "metadata" : { "createdDate" : "2020-07-24T08:09:18.125+0000", "createdByUserId" : "725da2bc-7d4c-5c54-b3b4-64631d4dcaa5", "updatedDate" : "2020-07-24T08:09:18.125+0000", "updatedByUserId" : "725da2bc-7d4c-5c54-b3b4-64631d4dcaa5" } }
Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Firebird

Fix versions

Release

Q2 2020 Hot Fix #1

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created July 13, 2020 at 9:21 AM
Updated August 18, 2020 at 7:09 PM
Resolved July 27, 2020 at 6:18 AM
TestRail: Cases
TestRail: Runs

Flag notifications