Fixed bug where resource medium was not searchable

Main code re. 1744