-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add UTF-8 BOM to files written to S3/Minio #567
Open
DerkaouiAnas
wants to merge
3
commits into
folio-org:master
Choose a base branch
from
DerkaouiAnas:MODEXPW-508
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+68
−60
Open
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/authority_control/auth_heading_update.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/authority_control/auth_heading_update_empty.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Last updated,Original heading,New heading,Identifier,Original 1XX,New 1XX,Authority source file name,Number of bibliographic records linked,Updater | ||
Last updated,Original heading,New heading,Identifier,Original 1XX,New 1XX,Authority source file name,Number of bibliographic records linked,Updater | ||
No records found |
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/authority_control/failed_linked_bib_updates.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Failed,Bibliographic title,Bibliographic UUID,Failed bib field update,Linked authority identifier,Reason for error | ||
Failed,Bibliographic title,Bibliographic UUID,Failed bib field update,Linked authority identifier,Reason for error | ||
2019-08-24 14:15:22.000Z,First title,64d2028c-ae87-4069-a624-66089d957ef9,650,mo34056,Not found 404 | ||
2019-08-24 14:15:22.000Z,Second title,65d2028c-ae87-4069-a624-66089d957ef9,150,mo34057,Invalid value |
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/bulk_edit_holdings_records_bad_reference_ids_errors_output.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/bulk_edit_holdings_records_by_item_barcode.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Holdings UUID,"Instance (Title, Publisher, Publication date)",Suppress from discovery,Holdings HRID,Source,Former holdings Id,Holdings type,Statistical codes,Administrative note,Holdings permanent location,Holdings temporary location,Shelving title,Holdings copy number,Holdings level call number type,Holdings level call number prefix,Holdings level call number,Holdings level call number suffix,Number of items,Holdings statement,Holdings statement for supplements,Holdings statement for indexes,ILL policy,Digitization policy,Retention policy,Notes,Electronic access,Acquisition method,Order format,Receipt status,Tags | ||
Holdings UUID,"Instance (Title, Publisher, Publication date)",Suppress from discovery,Holdings HRID,Source,Former holdings Id,Holdings type,Statistical codes,Administrative note,Holdings permanent location,Holdings temporary location,Shelving title,Holdings copy number,Holdings level call number type,Holdings level call number prefix,Holdings level call number,Holdings level call number suffix,Number of items,Holdings statement,Holdings statement for supplements,Holdings statement for indexes,ILL policy,Digitization policy,Retention policy,Notes,Electronic access,Acquisition method,Order format,Receipt status,Tags | ||
0b1e3760-f689-493e-a98e-9cc9dadb7e83,title,,ho13,FOLIO,d1670310-ceac-47d9-aaba-aaeeb890bc07,Physical,"Book, print (books)",Test administrative note,Annex,Main Library,shelving title,copy number,LC Modified,prefix,call number,suffix,10,statement;statement public note;statement staff note,statement for supplements;statement for supplements public note;statement for supplements staff note,statement for indexes;statement for indexes public note;statement for indexes staff note,Limited lending policy,digitisation policy,retention policy,Note;a note;false;diku;b160f13a-ddba-4053-b9c4-60ec5ea45d56|Note;a note;true;diku;b160f13a-ddba-4053-b9c4-60ec5ea45d56,"URL relationship;URI;Link text;Materials specified;URL public note | ||
Version of resource;www.someurl.com;link text;material;www.someurl.com",aquisition method,order format,receipt status, |
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/bulk_edit_holdings_records_empty_reference.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/bulk_edit_holdings_records_errors_output.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
789,No match found | ||
789,No match found | ||
123,Duplicate entry |
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/bulk_edit_holdings_records_errors_output_inst_hrid.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
456,Instance not found by hrid=456 | ||
456,Instance not found by hrid=456 | ||
789,Instance not found by hrid=789 | ||
123,Duplicate entry |
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/bulk_edit_holdings_records_errors_output_item_barcode.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
789,Item not found by barcode=789 | ||
789,Item not found by barcode=789 | ||
123,Duplicate entry |
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/bulk_edit_holdings_records_output.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Holdings UUID,"Instance (Title, Publisher, Publication date)",Suppress from discovery,Holdings HRID,Source,Former holdings Id,Holdings type,Statistical codes,Administrative note,Holdings permanent location,Holdings temporary location,Shelving title,Holdings copy number,Holdings level call number type,Holdings level call number prefix,Holdings level call number,Holdings level call number suffix,Number of items,Holdings statement,Holdings statement for supplements,Holdings statement for indexes,ILL policy,Digitization policy,Retention policy,Notes,Electronic access,Acquisition method,Order format,Receipt status,Tags | ||
Holdings UUID,"Instance (Title, Publisher, Publication date)",Suppress from discovery,Holdings HRID,Source,Former holdings Id,Holdings type,Statistical codes,Administrative note,Holdings permanent location,Holdings temporary location,Shelving title,Holdings copy number,Holdings level call number type,Holdings level call number prefix,Holdings level call number,Holdings level call number suffix,Number of items,Holdings statement,Holdings statement for supplements,Holdings statement for indexes,ILL policy,Digitization policy,Retention policy,Notes,Electronic access,Acquisition method,Order format,Receipt status,Tags | ||
0b1e3760-f689-493e-a98e-9cc9dadb7e83,title,,ho13,FOLIO,d1670310-ceac-47d9-aaba-aaeeb890bc07,Physical,"Book, print (books)",Test administrative note,Annex,Main Library,shelving title,copy number,LC Modified,prefix,call number,suffix,10,statement;statement public note;statement staff note,statement for supplements;statement for supplements public note;statement for supplements staff note,statement for indexes;statement for indexes public note;statement for indexes staff note,Limited lending policy,digitisation policy,retention policy,Note;a note;false;diku;b160f13a-ddba-4053-b9c4-60ec5ea45d56|Note;a note;true;diku;b160f13a-ddba-4053-b9c4-60ec5ea45d56,"URL relationship;URI;Link text;Materials specified;URL public note | ||
Version of resource;www.someurl.com;link text;material;www.someurl.com",aquisition method,order format,receipt status, | ||
855d4693-4087-4339-8c14-c25c350e5e59,title,,ho14,FOLIO,,,,,Main Library,,,,,,,,,,,,,,,,,,,, |
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/bulk_edit_holdings_records_output_instance_hrid.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Holdings UUID,"Instance (Title, Publisher, Publication date)",Suppress from discovery,Holdings HRID,Source,Former holdings Id,Holdings type,Statistical codes,Administrative note,Holdings permanent location,Holdings temporary location,Shelving title,Holdings copy number,Holdings level call number type,Holdings level call number prefix,Holdings level call number,Holdings level call number suffix,Number of items,Holdings statement,Holdings statement for supplements,Holdings statement for indexes,ILL policy,Digitization policy,Retention policy,Notes,Electronic access,Acquisition method,Order format,Receipt status,Tags | ||
Holdings UUID,"Instance (Title, Publisher, Publication date)",Suppress from discovery,Holdings HRID,Source,Former holdings Id,Holdings type,Statistical codes,Administrative note,Holdings permanent location,Holdings temporary location,Shelving title,Holdings copy number,Holdings level call number type,Holdings level call number prefix,Holdings level call number,Holdings level call number suffix,Number of items,Holdings statement,Holdings statement for supplements,Holdings statement for indexes,ILL policy,Digitization policy,Retention policy,Notes,Electronic access,Acquisition method,Order format,Receipt status,Tags | ||
0b1e3760-f689-493e-a98e-9cc9dadb7e83,title,,ho13,FOLIO,d1670310-ceac-47d9-aaba-aaeeb890bc07,Physical,"Book, print (books)",Test administrative note,Annex,Main Library,shelving title,copy number,LC Modified,prefix,call number,suffix,10,statement;statement public note;statement staff note,statement for supplements;statement for supplements public note;statement for supplements staff note,statement for indexes;statement for indexes public note;statement for indexes staff note,Limited lending policy,digitisation policy,retention policy,Note;a note;false;diku;b160f13a-ddba-4053-b9c4-60ec5ea45d56|Note;a note;true;diku;b160f13a-ddba-4053-b9c4-60ec5ea45d56,"URL relationship;URI;Link text;Materials specified;URL public note | ||
Version of resource;www.someurl.com;link text;material;www.someurl.com",aquisition method,order format,receipt status, | ||
855d4693-4087-4339-8c14-c25c350e5e59,title,,ho14,FOLIO,,,,,Main Library,,,,,,,,,,,,,,,,,,,, |
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/bulk_edit_holdings_records_output_item_barcode.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Holdings UUID,"Instance (Title, Publisher, Publication date)",Suppress from discovery,Holdings HRID,Source,Former holdings Id,Holdings type,Statistical codes,Administrative note,Holdings permanent location,Holdings temporary location,Shelving title,Holdings copy number,Holdings level call number type,Holdings level call number prefix,Holdings level call number,Holdings level call number suffix,Number of items,Holdings statement,Holdings statement for supplements,Holdings statement for indexes,ILL policy,Digitization policy,Retention policy,Notes,Electronic access,Acquisition method,Order format,Receipt status,Tags | ||
Holdings UUID,"Instance (Title, Publisher, Publication date)",Suppress from discovery,Holdings HRID,Source,Former holdings Id,Holdings type,Statistical codes,Administrative note,Holdings permanent location,Holdings temporary location,Shelving title,Holdings copy number,Holdings level call number type,Holdings level call number prefix,Holdings level call number,Holdings level call number suffix,Number of items,Holdings statement,Holdings statement for supplements,Holdings statement for indexes,ILL policy,Digitization policy,Retention policy,Notes,Electronic access,Acquisition method,Order format,Receipt status,Tags | ||
0b1e3760-f689-493e-a98e-9cc9dadb7e83,title,,ho13,FOLIO,d1670310-ceac-47d9-aaba-aaeeb890bc07,Physical,"Book, print (books)",Test administrative note,Annex,Main Library,shelving title,copy number,LC Modified,prefix,call number,suffix,10,statement;statement public note;statement staff note,statement for supplements;statement for supplements public note;statement for supplements staff note,statement for indexes;statement for indexes public note;statement for indexes staff note,Limited lending policy,digitisation policy,retention policy,Note;a note;false;diku;b160f13a-ddba-4053-b9c4-60ec5ea45d56|Note;a note;true;diku;b160f13a-ddba-4053-b9c4-60ec5ea45d56,"URL relationship;URI;Link text;Materials specified;URL public note | ||
Version of resource;www.someurl.com;link text;material;www.someurl.com",aquisition method,order format,receipt status, | ||
855d4693-4087-4339-8c14-c25c350e5e59,title,,ho14,FOLIO,,,,,Main Library,,,,,,,,,,,,,,,,,,,, |
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/bulk_edit_holdings_records_output_marc.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Holdings record id,Version,HRID,Holdings type,Former ids,"Instance (Title, Publisher, Publication date)",Permanent location,Temporary location,Effective location,Electronic access,Call number type,Call number prefix,Call number,Call number suffix,Shelving title,Acquisition format,Acquisition method,Receipt status,Administrative note,Notes,Ill policy,Retention policy,Digitization policy,Holdings statements,Holdings statements for indexes,Holdings statements for supplements,Copy number,Number of items,Receiving history,Discovery suppress,Statistical codes,Tags,Source | ||
Holdings record id,Version,HRID,Holdings type,Former ids,"Instance (Title, Publisher, Publication date)",Permanent location,Temporary location,Effective location,Electronic access,Call number type,Call number prefix,Call number,Call number suffix,Shelving title,Acquisition format,Acquisition method,Receipt status,Administrative note,Notes,Ill policy,Retention policy,Digitization policy,Holdings statements,Holdings statements for indexes,Holdings statements for supplements,Copy number,Number of items,Receiving history,Discovery suppress,Statistical codes,Tags,Source | ||
0b1e3760-f689-493e-a98e-9cc9dadb7e83,1,ho13,Physical,d1670310-ceac-47d9-aaba-aaeeb890bc07,Sample instance;5bf370e0-8cca-4d9c-82e4-5170ab2a0a39,Annex,Main Library,Main Library,www.someurl.com;link text;material;www.someurl.com;Version of resource,LC Modified,prefix,call number,suffix,shelving title,order format,aquisition method,receipt status,Test administrative note,Note;a note;false|Note;a note;true,Limited lending policy,retention policy,digitisation policy,statement;statement public note;statement staff note,statement for indexes;statement for indexes public note;statement for indexes staff note,statement for supplements;statement for supplements public note;statement for supplements staff note,copy number,10,|true;enum;chronology|;enum2;chronology2,,"Book, print (books)",,FOLIO | ||
d29b9fa5-c7f5-4b77-9f99-79e5c3a9ae75,1,ho14,,,Sample instance;5bf370e0-8cca-4d9c-82e4-5170ab2a0a39,Main Library,Annex,Annex,,,,,,,,,,,,,,,,,,,,,,,,FOLIO | ||
855d4693-4087-4339-8c14-c25c350e5e59,1,ho15,,,Sample instance;5bf370e0-8cca-4d9c-82e4-5170ab2a0a39,Main Library,Main Library,Main Library,,,,,,,,,,,,,,,,,,,,,,,,MARC |
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/bulk_edit_holdings_records_reference_not_found.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/bulk_edit_instance_by_issn_isbn_output.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Instance UUID,Suppress from discovery,Staff suppress,Previously held,Instance HRID,Source,Cataloged date,Instance status term,Mode of issuance,Administrative note,Resource title,Index title,Series statements,Contributors,Edition,Physical description,Resource type,Nature of content,Formats,Languages,Publication frequency,Publication range,Notes | ||
Instance UUID,Suppress from discovery,Staff suppress,Previously held,Instance HRID,Source,Cataloged date,Instance status term,Mode of issuance,Administrative note,Resource title,Index title,Series statements,Contributors,Edition,Physical description,Resource type,Nature of content,Formats,Languages,Publication frequency,Publication range,Notes | ||
7fbd5d84-62d1-44c6-9c45-6cb173998bbd,false,false,true,inst000000000006,FOLIO,2024-01-26,,,Cataloging data,Bridget Jones's Baby: the diaries,,,"Fielding, Helen",First American Edition,219 pages ; 20 cm.,6312d172-f0cf-40f6-b27d-9fa8feaf332f,,,eng,A frequency description,A publication range, |
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/bulk_edit_instance_identifiers_errors_output.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it makes sense to make this a constant instead of initializing the array in the method each time?
private static final byte[] UTF8_BOM = new byte[]{(byte) 0xEF, (byte) 0xBB, (byte) 0xBF};