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

Integrate with Entityform #33

Open
bradspry opened this issue Mar 14, 2016 · 3 comments
Open

Integrate with Entityform #33

bradspry opened this issue Mar 14, 2016 · 3 comments

Comments

@bradspry
Copy link

Entityform provides a Term Reference field for Webform, which connects to Taxonomy. With it, you can create Autocompleting term fields, populated with people's names, places, or whatever controlled metadata you need.

This integration would greatly aid photo annotation efforts and many other object metadata collection efforts.

https://www.drupal.org/project/entityform

@patdunlavey
Copy link
Member

Hi Brad. This sounds like a great idea. How far have you dug into it? Do you have a sense of how to implement this integration? It looks like we would need to start by including the component type in the list returned by https:/commonmedia/islandora_webform/blob/7.x/submodules/islandora_webform_ingest/islandora_webform_ingest.module#L676. We would also need to figure out how the submitted value is represented and how that value could be mapped into a mimetype which could then be mapped to, or into, a datastream.

May be best to think in terms of adding hooks to support this, rather than hard-coding the entityform support directly?

@bradspry
Copy link
Author

@patdunlavey Thank You for including a link to function islandora_webform_ingest_get_component_types()

I immediately added 'term_reference' to the array and tested :-)

Sure enough, the Islandora Ingest Mapping form appeared, but it is unusable: "Islandora Large Image Content Model provides no datastreams that can be populated from this webform field type."

Field type 'term_reference' stores the term TID in 'webform_submitted_data'.

@bradspry
Copy link
Author

@patdunlavey It doesn't necessarily have to integrate with Entityform... It could just have it's own implementation of a autocompleting taxonomy field, which inserts just the text value.

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

No branches or pull requests

2 participants