-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GETOPT for the command line scripts #326
- Loading branch information
Showing
11 changed files
with
11 additions
and
241 deletions.
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
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,30 +0,0 @@ | ||
options.addOption("m", "marcVersion", true, "MARC version ('OCLC' or 'DNB')"); | ||
options.addOption("h", "help", false, "display help"); | ||
options.addOption("n", "nolog", false, "do not display log messages"); | ||
options.addOption("l", "limit", true, "limit the number of records to process"); | ||
options.addOption("o", "offset", true, "the first record to process"); | ||
options.addOption("i", "id", true, "the MARC identifier (content of 001)"); | ||
options.addOption("d", "defaultRecordType", true, "the default record type if the record's type is undetectable"); | ||
options.addOption("q", "fixAlephseq", false, "fix the known issues of Alephseq format"); | ||
options.addOption("a", "fixAlma", false, "fix the known issues of Alma format"); | ||
options.addOption("b", "fixKbr", false, "fix the known issues of Alma format"); | ||
options.addOption("p", "alephseq", false, "the source is in Alephseq format"); | ||
options.addOption("x", "marcxml", false, "the source is in MARCXML format"); | ||
options.addOption("y", "lineSeparated", false, "the source is in line separated MARC format"); | ||
options.addOption("t", "outputDir", true, "output directory"); | ||
options.addOption("r", "trimId", false, "remove spaces from the end of record IDs"); | ||
options.addOption("z", "ignorableFields", true, "ignore fields from the analysis"); | ||
options.addOption("v", "ignorableRecords", true, "ignore records from the analysis"); | ||
options.addOption("f", "marcFormat", true, "MARC format (like 'ISO' or 'MARCXML')"); | ||
options.addOption("s", "dataSource", true, "data source (file of stream)"); | ||
options.addOption("g", "defaultEncoding", true, "default character encoding"); | ||
options.addOption("1", "alephseqLineType", true, "Alephseq line type"); | ||
options.addOption("2", "picaIdField", true, "PICA id field"); | ||
options.addOption("u", "picaSubfieldSeparator", true, "PICA subfield separator"); | ||
options.addOption("j", "picaSchemaFile", true, "Avram PICA schema file"); | ||
options.addOption("w", "schemaType", true, "metadata schema type ('MARC21', 'UNIMARC', or 'PICA')"); | ||
options.addOption("k", "picaRecordType", true, "picaRecordType"); | ||
options.addOption("c", "allowableRecords", true, "allow records for the analysis"); | ||
options.addOption("e", "groupBy", true, "group the results by the value of this data element (e.g. the ILN of library)"); | ||
options.addOption("3", "groupListFile", true, "the file which contains a list of ILN codes"); | ||
options.addOption("4", "solrForScoresUrl", true, "the URL of the Solr server used to store scores"); | ||
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,31 +1 @@ | ||
options.addOption("m", "marcVersion", true, "MARC version ('OCLC' or 'DNB')"); | ||
options.addOption("h", "help", false, "display help"); | ||
options.addOption("n", "nolog", false, "do not display log messages"); | ||
options.addOption("l", "limit", true, "limit the number of records to process"); | ||
options.addOption("o", "offset", true, "the first record to process"); | ||
options.addOption("i", "id", true, "the MARC identifier (content of 001)"); | ||
options.addOption("d", "defaultRecordType", true, "the default record type if the record's type is undetectable"); | ||
options.addOption("q", "fixAlephseq", false, "fix the known issues of Alephseq format"); | ||
options.addOption("a", "fixAlma", false, "fix the known issues of Alma format"); | ||
options.addOption("b", "fixKbr", false, "fix the known issues of Alma format"); | ||
options.addOption("p", "alephseq", false, "the source is in Alephseq format"); | ||
options.addOption("x", "marcxml", false, "the source is in MARCXML format"); | ||
options.addOption("y", "lineSeparated", false, "the source is in line separated MARC format"); | ||
options.addOption("t", "outputDir", true, "output directory"); | ||
options.addOption("r", "trimId", false, "remove spaces from the end of record IDs"); | ||
options.addOption("z", "ignorableFields", true, "ignore fields from the analysis"); | ||
options.addOption("v", "ignorableRecords", true, "ignore records from the analysis"); | ||
options.addOption("f", "marcFormat", true, "MARC format (like 'ISO' or 'MARCXML')"); | ||
options.addOption("s", "dataSource", true, "data source (file of stream)"); | ||
options.addOption("g", "defaultEncoding", true, "default character encoding"); | ||
options.addOption("1", "alephseqLineType", true, "Alephseq line type"); | ||
options.addOption("2", "picaIdField", true, "PICA id field"); | ||
options.addOption("u", "picaSubfieldSeparator", true, "PICA subfield separator"); | ||
options.addOption("j", "picaSchemaFile", true, "Avram PICA schema file"); | ||
options.addOption("w", "schemaType", true, "metadata schema type ('MARC21', 'UNIMARC', or 'PICA')"); | ||
options.addOption("k", "picaRecordType", true, "picaRecordType"); | ||
options.addOption("c", "allowableRecords", true, "allow records for the analysis"); | ||
options.addOption("e", "groupBy", true, "group the results by the value of this data element (e.g. the ILN of library)"); | ||
options.addOption("3", "groupListFile", true, "the file which contains a list of ILN codes"); | ||
options.addOption("4", "solrForScoresUrl", true, "the URL of the Solr server used to store scores"); | ||
options.addOption("A", "collectCollocations", false, "collect collocatiion of schemas"); |
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,33 +1,3 @@ | ||
options.addOption("m", "marcVersion", true, "MARC version ('OCLC' or 'DNB')"); | ||
options.addOption("h", "help", false, "display help"); | ||
options.addOption("n", "nolog", false, "do not display log messages"); | ||
options.addOption("l", "limit", true, "limit the number of records to process"); | ||
options.addOption("o", "offset", true, "the first record to process"); | ||
options.addOption("i", "id", true, "the MARC identifier (content of 001)"); | ||
options.addOption("d", "defaultRecordType", true, "the default record type if the record's type is undetectable"); | ||
options.addOption("q", "fixAlephseq", false, "fix the known issues of Alephseq format"); | ||
options.addOption("a", "fixAlma", false, "fix the known issues of Alma format"); | ||
options.addOption("b", "fixKbr", false, "fix the known issues of Alma format"); | ||
options.addOption("p", "alephseq", false, "the source is in Alephseq format"); | ||
options.addOption("x", "marcxml", false, "the source is in MARCXML format"); | ||
options.addOption("y", "lineSeparated", false, "the source is in line separated MARC format"); | ||
options.addOption("t", "outputDir", true, "output directory"); | ||
options.addOption("r", "trimId", false, "remove spaces from the end of record IDs"); | ||
options.addOption("z", "ignorableFields", true, "ignore fields from the analysis"); | ||
options.addOption("v", "ignorableRecords", true, "ignore records from the analysis"); | ||
options.addOption("f", "marcFormat", true, "MARC format (like 'ISO' or 'MARCXML')"); | ||
options.addOption("s", "dataSource", true, "data source (file of stream)"); | ||
options.addOption("g", "defaultEncoding", true, "default character encoding"); | ||
options.addOption("1", "alephseqLineType", true, "Alephseq line type"); | ||
options.addOption("2", "picaIdField", true, "PICA id field"); | ||
options.addOption("u", "picaSubfieldSeparator", true, "PICA subfield separator"); | ||
options.addOption("j", "picaSchemaFile", true, "Avram PICA schema file"); | ||
options.addOption("w", "schemaType", true, "metadata schema type ('MARC21', 'UNIMARC', or 'PICA')"); | ||
options.addOption("k", "picaRecordType", true, "picaRecordType"); | ||
options.addOption("c", "allowableRecords", true, "allow records for the analysis"); | ||
options.addOption("e", "groupBy", true, "group the results by the value of this data element (e.g. the ILN of library)"); | ||
options.addOption("3", "groupListFile", true, "the file which contains a list of ILN codes"); | ||
options.addOption("4", "solrForScoresUrl", true, "the URL of the Solr server used to store scores"); | ||
options.addOption("R", "format", true, "specify a format"); | ||
options.addOption("V", "advanced", false, "advanced mode (not yet implemented)"); | ||
options.addOption("P", "onlyPackages", false, "only packages (not yet implemented)"); |
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,30 +0,0 @@ | ||
options.addOption("m", "marcVersion", true, "MARC version ('OCLC' or 'DNB')"); | ||
options.addOption("h", "help", false, "display help"); | ||
options.addOption("n", "nolog", false, "do not display log messages"); | ||
options.addOption("l", "limit", true, "limit the number of records to process"); | ||
options.addOption("o", "offset", true, "the first record to process"); | ||
options.addOption("i", "id", true, "the MARC identifier (content of 001)"); | ||
options.addOption("d", "defaultRecordType", true, "the default record type if the record's type is undetectable"); | ||
options.addOption("q", "fixAlephseq", false, "fix the known issues of Alephseq format"); | ||
options.addOption("a", "fixAlma", false, "fix the known issues of Alma format"); | ||
options.addOption("b", "fixKbr", false, "fix the known issues of Alma format"); | ||
options.addOption("p", "alephseq", false, "the source is in Alephseq format"); | ||
options.addOption("x", "marcxml", false, "the source is in MARCXML format"); | ||
options.addOption("y", "lineSeparated", false, "the source is in line separated MARC format"); | ||
options.addOption("t", "outputDir", true, "output directory"); | ||
options.addOption("r", "trimId", false, "remove spaces from the end of record IDs"); | ||
options.addOption("z", "ignorableFields", true, "ignore fields from the analysis"); | ||
options.addOption("v", "ignorableRecords", true, "ignore records from the analysis"); | ||
options.addOption("f", "marcFormat", true, "MARC format (like 'ISO' or 'MARCXML')"); | ||
options.addOption("s", "dataSource", true, "data source (file of stream)"); | ||
options.addOption("g", "defaultEncoding", true, "default character encoding"); | ||
options.addOption("1", "alephseqLineType", true, "Alephseq line type"); | ||
options.addOption("2", "picaIdField", true, "PICA id field"); | ||
options.addOption("u", "picaSubfieldSeparator", true, "PICA subfield separator"); | ||
options.addOption("j", "picaSchemaFile", true, "Avram PICA schema file"); | ||
options.addOption("w", "schemaType", true, "metadata schema type ('MARC21', 'UNIMARC', or 'PICA')"); | ||
options.addOption("k", "picaRecordType", true, "picaRecordType"); | ||
options.addOption("c", "allowableRecords", true, "allow records for the analysis"); | ||
options.addOption("e", "groupBy", true, "group the results by the value of this data element (e.g. the ILN of library)"); | ||
options.addOption("3", "groupListFile", true, "the file which contains a list of ILN codes"); | ||
options.addOption("4", "solrForScoresUrl", true, "the URL of the Solr server used to store scores"); | ||
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
php generate.php validate.txt > validate.sh.txt | ||
php generate.php completeness.txt > completeness.sh.txt | ||
php generate.php classifications.txt > classifications.sh.txt | ||
php generate.php authorities.txt > authorities.sh.txt | ||
php generate.php serials.txt > serials.sh.txt | ||
php generate.php tt-completeness.txt > tt-completeness.sh.txt | ||
php generate.php shelf-ready-completeness.txt > shelf-ready-completeness.sh.txt | ||
php generate.php functions.txt > functions.sh.txt | ||
php generate.php shacl4bib.txt > shacl4bib.sh.txt |
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,31 +1 @@ | ||
options.addOption("m", "marcVersion", true, "MARC version ('OCLC' or 'DNB')"); | ||
options.addOption("h", "help", false, "display help"); | ||
options.addOption("n", "nolog", false, "do not display log messages"); | ||
options.addOption("l", "limit", true, "limit the number of records to process"); | ||
options.addOption("o", "offset", true, "the first record to process"); | ||
options.addOption("i", "id", true, "the MARC identifier (content of 001)"); | ||
options.addOption("d", "defaultRecordType", true, "the default record type if the record's type is undetectable"); | ||
options.addOption("q", "fixAlephseq", false, "fix the known issues of Alephseq format"); | ||
options.addOption("a", "fixAlma", false, "fix the known issues of Alma format"); | ||
options.addOption("b", "fixKbr", false, "fix the known issues of Alma format"); | ||
options.addOption("p", "alephseq", false, "the source is in Alephseq format"); | ||
options.addOption("x", "marcxml", false, "the source is in MARCXML format"); | ||
options.addOption("y", "lineSeparated", false, "the source is in line separated MARC format"); | ||
options.addOption("t", "outputDir", true, "output directory"); | ||
options.addOption("r", "trimId", false, "remove spaces from the end of record IDs"); | ||
options.addOption("z", "ignorableFields", true, "ignore fields from the analysis"); | ||
options.addOption("v", "ignorableRecords", true, "ignore records from the analysis"); | ||
options.addOption("f", "marcFormat", true, "MARC format (like 'ISO' or 'MARCXML')"); | ||
options.addOption("s", "dataSource", true, "data source (file of stream)"); | ||
options.addOption("g", "defaultEncoding", true, "default character encoding"); | ||
options.addOption("1", "alephseqLineType", true, "Alephseq line type"); | ||
options.addOption("2", "picaIdField", true, "PICA id field"); | ||
options.addOption("u", "picaSubfieldSeparator", true, "PICA subfield separator"); | ||
options.addOption("j", "picaSchemaFile", true, "Avram PICA schema file"); | ||
options.addOption("w", "schemaType", true, "metadata schema type ('MARC21', 'UNIMARC', or 'PICA')"); | ||
options.addOption("k", "picaRecordType", true, "picaRecordType"); | ||
options.addOption("c", "allowableRecords", true, "allow records for the analysis"); | ||
options.addOption("e", "groupBy", true, "group the results by the value of this data element (e.g. the ILN of library)"); | ||
options.addOption("3", "groupListFile", true, "the file which contains a list of ILN codes"); | ||
options.addOption("4", "solrForScoresUrl", true, "the URL of the Solr server used to store scores"); | ||
options.addOption("F", "fileName", true, "the report file name (default is serial-score.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,33 +1,3 @@ | ||
options.addOption("m", "marcVersion", true, "MARC version ('OCLC' or 'DNB')"); | ||
options.addOption("h", "help", false, "display help"); | ||
options.addOption("n", "nolog", false, "do not display log messages"); | ||
options.addOption("l", "limit", true, "limit the number of records to process"); | ||
options.addOption("o", "offset", true, "the first record to process"); | ||
options.addOption("i", "id", true, "the MARC identifier (content of 001)"); | ||
options.addOption("d", "defaultRecordType", true, "the default record type if the record's type is undetectable"); | ||
options.addOption("q", "fixAlephseq", false, "fix the known issues of Alephseq format"); | ||
options.addOption("a", "fixAlma", false, "fix the known issues of Alma format"); | ||
options.addOption("b", "fixKbr", false, "fix the known issues of Alma format"); | ||
options.addOption("p", "alephseq", false, "the source is in Alephseq format"); | ||
options.addOption("x", "marcxml", false, "the source is in MARCXML format"); | ||
options.addOption("y", "lineSeparated", false, "the source is in line separated MARC format"); | ||
options.addOption("t", "outputDir", true, "output directory"); | ||
options.addOption("r", "trimId", false, "remove spaces from the end of record IDs"); | ||
options.addOption("z", "ignorableFields", true, "ignore fields from the analysis"); | ||
options.addOption("v", "ignorableRecords", true, "ignore records from the analysis"); | ||
options.addOption("f", "marcFormat", true, "MARC format (like 'ISO' or 'MARCXML')"); | ||
options.addOption("s", "dataSource", true, "data source (file of stream)"); | ||
options.addOption("g", "defaultEncoding", true, "default character encoding"); | ||
options.addOption("1", "alephseqLineType", true, "Alephseq line type"); | ||
options.addOption("2", "picaIdField", true, "PICA id field"); | ||
options.addOption("u", "picaSubfieldSeparator", true, "PICA subfield separator"); | ||
options.addOption("j", "picaSchemaFile", true, "Avram PICA schema file"); | ||
options.addOption("w", "schemaType", true, "metadata schema type ('MARC21', 'UNIMARC', or 'PICA')"); | ||
options.addOption("k", "picaRecordType", true, "picaRecordType"); | ||
options.addOption("c", "allowableRecords", true, "allow records for the analysis"); | ||
options.addOption("e", "groupBy", true, "group the results by the value of this data element (e.g. the ILN of library)"); | ||
options.addOption("3", "groupListFile", true, "the file which contains a list of ILN codes"); | ||
options.addOption("4", "solrForScoresUrl", true, "the URL of the Solr server used to store scores"); | ||
options.addOption("C", "shaclConfigurationFile", true, "specify the configuration file"); | ||
options.addOption("O", "shaclOutputFile", true, "output file"); | ||
options.addOption("P", "shaclOutputType", true, "output type (STATUS: status only, SCORE: score only, BOTH: status and score"); |
Oops, something went wrong.