The Move to Islandora Kit is an extensible PHP command-line tool for converting source content and metadata into packages suitable for importing into Islandora (or other digital repository and preservations systems).
Adds support for commenting out rows in CSV input files.
What's new?
A check within the src/fetchers/Csv.php fetcher to filter out any rows that have a # at the beginning of the column configured to be the record_key. This filtering happens before fetchermanipulators are applied.
How should this be tested?
This PR can be tested using the proposed "testable" workflow described in #384. The following tests pass on my local copy:
In the master branch, run the PHPUnit tests: phpunit --exclude-group inputvalidators --bootstrap vendor/autoload.php tests. You should get 46 tests, 66 assertions.
Check out the issue-388 branch and rerun the tests. You should get the same results.
This test covers the changed code because the testGetNumRecs() test within the CsVFetcherTest.php class continues to pass.
We will need to document how to comment out rows in all of the CSV toolchain wiki pages.
Github issue: (#388)
What does this Pull Request do?
Adds support for commenting out rows in CSV input files.
What's new?
A check within the src/fetchers/Csv.php fetcher to filter out any rows that have a
#
at the beginning of the column configured to be therecord_key
. This filtering happens before fetchermanipulators are applied.How should this be tested?
This PR can be tested using the proposed "testable" workflow described in #384. The following tests pass on my local copy:
phpunit --exclude-group inputvalidators --bootstrap vendor/autoload.php tests
. You should get 46 tests, 66 assertions.This test covers the changed code because the
testGetNumRecs()
test within the CsVFetcherTest.php class continues to pass.We will need to document how to comment out rows in all of the CSV toolchain wiki pages.