Open patdunlavey opened 7 years ago
Pull request: https://github.com/commonmedia/islandora_webform/pull/38
Hi Pat:
While socked in with snow for a couple of days, I decided to give the Islandora webform a test according to some instructions CM recently sent me.
I used the following instructions for testing the IW. To test it I downloaded a fresh Vagrant instance of Islandora 7.x-1.9RC1.
OUTCOME: Yes, the webform appears as a link and loads the webform as before. But when I went back to the "Islandora Ingest" menu to make a change, I got the following red-letter error message.
"Notice: Undefined property: stdClass::$islandora in iwi_save_webform_configuration() (line 645 of /var/www/drupal/sites/all/modules/islandora_webform/submodules/islandora_webform_ingest/includes/utilities.inc)."
I then enabled the "Islandora example simple text" module and that error went away.
OUTCOME: When I go to /admin/islandora/configure/iw, there is no checkbox labeled "Append webform links to bottom of object view?". I see only a drop-down box labeled "Webform link behavior" with two options "New Tab" or "Sample window".
I'm assuming I either didn't clone the right branch or I didn't apply the right patch(es), which I don't know how to do.
Drupal reports IW is version 7.x-1.4-rc1. I didn't want to proceed without having an up-to-date repo. Sorry.
Please walk me through how to update IW so I can proceed with testing properly. Peter
Currently, the webform links are appended to the bottom of the object display (using hook_islandora_view_object_alter). When inline ajax is enabled, the webform is appended inside the div containing the links. There is no ability to position the links or the webform that pops up anywhere else in the page. Also, there is no ability to alter the individual webform link markup.
It's possible, with normal Drupal theming practices, to add the webform links to another location on the page. But the default webform links location below the object cannot easily be removed.
Proposed solution: