API Usage : correct optional elements (refs #3284)

Correct function declaration
Correct function call
Correct optional keyword in comment (refs #3284)
Merge pull request #620 from cbonnissent/3.2I3284

Correct optional typo
need datajs for documents tab (refs #3497)
use DocSearch in exportfld and add a status in web interface (closes #3466)