-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ISLANDORA-2175: Use appropriate namespace in CSV importer (#125)
* ISLANDORA-2175: Use appropriate namespace in CSV importer - Get the namespace for the new objects from the collection policy rather than imposing 'islandora' - Default to ingesting into islandora:root if the user-provided collection PID is invalid * Implement changes suggested by @willtp87 and @DiegoPino - Remove default behaviour of ingesting into `islandora:root` and just warn instead - Implement a validator for the form element to prevent the issue from arising in the first place * Implement changes requested by @DiegoPino - Perform all collection related checks in submit handler - Add `$namespace` as an optional parameter to `function islandora_entities_import_csv_batch()` and `islandora_entities_build_scholar_object()` - Treat whitespace only object label as empty - Set current user as owner of created objects * Improve form validation - Define a function that retrieves the collection info - Validate the 'collection' form element separately - Retrieve namespace in submit handler and re-check collection info
- Loading branch information
Showing
2 changed files
with
107 additions
and
8 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