result.php: Fetch record_id in search query

Issue #126.
results.php: Don't push fake details links

Issue #126.
results.html: Link record id to details page

Issue #126.