Skip to content
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

Islandora Sync: Fixes / Enhancements #23

Open
wants to merge 8 commits into
base: 7.x
Choose a base branch
from

Conversation

slangerx
Copy link

@slangerx slangerx commented Sep 1, 2015

We use a customized version of Islandora Sync on our production site, Worthington Memory. This pull request includes most of the modifications we made along the way. The remaining changes are too specific to our particular setup and/or too weird to be generalized for other environments.

Changes in this pull request include:

  • Data mapping fixes and enhancements, so Islandora Sync has a better time mapping to field collections, taxonomy term references, entity reference fields, and long text.
  • Image field / file field subdirectories: Drupal file and image fields include a configuration screen where you can specify a subdirectory for saving attached files. Whenever that's filled out, Islandora Sync now uses it. If not, it follows the module's default behavior, which is to create a directory named after the node ID (inside an "islandora_sync" folder) and save the files there.

Note that this pull request only impacts the Fedora-to-Drupal import process. Islandora Sync can also do the reverse (import Drupal content into Fedora) -- but no changes have been made to that.

@ruebot
Copy link

ruebot commented Sep 1, 2015

@slangerx might want to check your gitconfig settings. Your commits are showing up as authored by Islandora Conference 2015

Also, I'm putting this on the agenda for the September 10 committes call. If you can attend, and speak to it, it would be great. Basically, we need to sort out how to test and merge any work done on Islandora Sync.

tags @manez

@slangerx
Copy link
Author

slangerx commented Sep 1, 2015

@ruebot Thanks! Yes, I just noticed that as well. Those commits came from a different environment -- obviously, one that I set up rather hurriedly. ;-)

@slangerx
Copy link
Author

slangerx commented Sep 1, 2015

@ruebot @manez I should be able to attend the Committers Call meeting on September 10th. So a 3pm start time for you (time zone: ADT) would be a 2pm start time for me (EDT). Let me know if I have that wrong.

@ruebot
Copy link

ruebot commented Sep 1, 2015

@slangerx you got that right 😄

@manez
Copy link

manez commented Sep 1, 2015

Cool! Please list your Skype name or add me m.manez and I'll bring you in to the Committers Call.

@whikloj whikloj self-assigned this Sep 10, 2015
@slangerx
Copy link
Author

@whikloj FYI: I'm going to be off the grid until September 28th. Feel free to post any questions or comments here. Just know that I won't be able to respond for about two weeks. :-)

@whikloj
Copy link

whikloj commented Sep 11, 2015

Absolutely, have fun and I'll start digging. Great work.

@slangerx slangerx changed the title Islandora Sync: Enhancements Islandora Sync: Fixes / Enhancements Sep 11, 2015
$node_path = "public://$subdirectory";
if (strtolower($field_info->dsid) != $extension) {
$file_name_component = '-' . str_replace($extension, '', strtolower($field_info->dsid));
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@slangerx, I'm not clear why this is needed, but if it is why does it only appears when there is a file_directory defined. Should it not appear below in the else as well?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@whikloj Sorry about the delayed response -- and for lines 245-247. That code pertains to something unique to my organization's environment and shouldn't be in here. I'll make the appropriate changes within the hour. Good catch! -- and sorry about the confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants