3004. Where subrogation to a hypothecary claim is acquired by operation of law, publication of the subrogation is effected by registering the act from which it derives; if there is no act, publication of the subrogation is effected by presenting a notice stating the causes of the subrogation.