Islandora-Collaboration-Group / islandora_webform

islandora_webform
GNU General Public License v3.0
6 stars 8 forks source link

Integrate with Entityform #33

Open bradspry opened 8 years ago

bradspry commented 8 years ago

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 commented 8 years ago

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://github.com/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 commented 8 years ago

@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 commented 8 years ago

@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.