Dropped unused import.
Advancedsearch: Dropped reference number solution.

The whole functionality should be rethinked and reworked so that it supports the reference formatter setting in the registry.
Merge pull request #158 from 4teamwork/pg_advancedsearch_fix

Advancedsearch: Dropped reference number solution.