Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-1785

Pass form state through to export callbacks for Bookmark

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Fix Version/s: 7.x-1.8
    • Component/s: Bookmark
    • Labels:
      None

      Description

      Pass the form_state through to the callbacks for exporting items from a Bookmark list.

      --Use Case--
      As a developer I want the ability to extend the export functionality of Bookmark with more options than the vanilla export formats allow for (array of PIDs and optionally a style for citation export).

      It's possible to form_alter the Solr results and Bookmark form to include additional UI options for the user to select from. The form_state is than required in the callback execution to grab the user choices.

      --Technical Approach--
      Pass through the form_state in the listing of parameters to call_user_func_array.

      --Test Case--
      Use an export from Bookmark, Scholar or any other implementation. Export happens as expected.

      --Impact--
      None. By appending the form_state as the last parameter the existing exporters that rely on the current function signature (Scholar) are not effected.

      ----
      Jordan Dukart
      Developer
      discoverygarden inc. | Managing Digital Content

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jordandukart Jordan Dukart
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: