Use href from onlineResource
Removed console.log()s