Refactored text selection code.
Removed old code.
Renamed publicationItem to publicationEntry.
Bugfix.
Selection of multiple lines.