adds result page resource icon, and implements logic for showing icon when item has more than one resource type