Photoproduction of quarkonium in proton-proton and nucleus-nucleus collisions.