-
Notifications
You must be signed in to change notification settings - Fork 71
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
Store 7.x cannonical URL for resource migrated to CLAW #822
Comments
Some possible uses I would put this stored URL to:
|
During our migration from CONTENTdm to Islandora, we added the previous URL to our MODS like this: <identifier type="uri" invalid="yes" displayLabel="Migrated From">http://content.lib.sfu.ca/cdm/ref/collection/foo/id/14</identifier> and used those URLs to provide auto-redirection. |
@dannylamb can we include this in the sprint? |
@mjordan It will definitely get handled then. That plus a |
Nice. Funny you should mention creating a path alias, I am doing this to keep the old URLs from our IR during our migration to Islandora 7.x in a hook_islandora_object_ingested: /**
* Inserts a path alias.
*
* @param string $pid
* A PID.
* @param string $old_nid
* The item's old Summit node ID.
*/
function islandora_summit_migration_insert_path_alias($pid, $old_nid) {
return db_insert('url_alias')
->fields(array('source' => 'islandora/object/' . $pid, 'alias' => 'item/' . $old_nid, 'language' => 'und'))
->execute();
} |
A module that creates the alias is at https://github.com/mjordan/islandora_pid_alias. |
The text was updated successfully, but these errors were encountered: