respect documentId and/or collectionId in follow-up search

The search plugin supports limiting the search in current document and/or
collection. This setting get's lost after the search results are listet.
A follow-up search will search in all available documents and
collections.

This fix gets the document or collection UID from the available facet
search metadata.
cleanup debug output
Fix code for TYPO3 6.2

t3lib_cli::t3lib_cli is deprecated since TYPO3 4.6 and was removed in
TYPO3 4.8. Use __construct() instead. See TYPO3 documentation at
http://wiki.typo3.org/TYPO3_6.0_Extension_Migration_Tips

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Fix error in HTML code

The closing " was misplaced.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Merge pull request #20 from stweil/fixes

Two small code fixes
Merge pull request #19 from albig/fix-search-in-collection-and-document

Fix search in collection and document
Ignore short METS object ids (OBJID)

Visual Library uses OBJID="1" (sometimes also "2", "3") for all records.
Ignoring such short OBJID helps when importing from Visual Library.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Handle files with mets:mptr and physical pages

In the old code, physical pages were not handled if there was a mets:mptr
entry. This was bad when importing from Visual Library.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Avoid endless recursion

Signed-off-by: Stefan Weil <sw@weilnetz.de>