reorganized code in ebsco-result.tpl.php to check for existence of resource inside RL to link it