You may find [this paper of Hartshorne][1] to be helpful.


  [1]: https://projecteuclid.org/journals/kyoto-journal-of-mathematics/volume-26/issue-3/Generalized-divisors-on-Gorenstein-curves-and-a-theorem-of-Noether/10.1215/kjm/1250520873.full