Close search branch.
Merged galaxy/galaxy-central into default
Merged galaxy/galaxy-central into default
Merged galaxy/galaxy-central into default
Merged galaxy/galaxy-central into default
Merged galaxy/galaxy-central into default
Merged galaxy/galaxy-central into default
Default merge
Adding in history_id selection to hda view, so hda elements can be selected by their parent history
Adding 'copied_from_hda_id' field to hda view.
Fix API workflow show for workflows created with history Extract Workflow.

To reproduce:
1) for an existing history, select "Extract Workflow" from the history menu
2) find the id of the new workflow, e.g. by opening /api/workflows/
3) open /api/workflows/$workflow_id

Result is an Internal Server Error.
In Galaxy log:

galaxy.web.framework ERROR 2013-11-19 12:44:17,367 Uncaught exception in exposed API method:
Traceback (most recent call last):
  File "/srv/galaxy/lib/galaxy/web/framework/__init__.py", line 197, in decorator
    rval = func( self, trans, *args, **kwargs)
  File "/srv/galaxy/lib/galaxy/webapps/galaxy/api/workflows.py", line 77, in show
    inputs[step.id] = {'label':step.tool_inputs['name'], 'value':""}
TypeError: 'NoneType' object has no attribute '__getitem__'

Reported-by: Simone Leo <simone.leo@crs4.it>
Merged in kellrott/galaxy-central/search (pull request #261)

Adding history_id selection to hda search