]> git.koha-community.org Git - koha.git/commit
Bug 32752: Use an include to display the serial status in the staff interface
authorKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 17 Mar 2023 09:24:22 +0000 (09:24 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 15 May 2023 21:24:07 +0000 (18:24 -0300)
commitb7afb8e8a2124e0e8a7afd079a72e6245c7f43dc
treea2c95a3c059c4c7fc2fbb61838fa7b76c496642d
parent129bf4781f834424858be6eef8fac11511a0a42d
Bug 32752: Use an include to display the serial status in the staff interface

This moves the identical code used to display the serial status
from the different templates into one common include.

To test:
* Add a subscription
* Receive several issues, make sure 2 are late
* Claim one of the late issues
* Verify the status displays nicely on these pages:
  * Subscription detail page > issues tab
  * Catalog detail page > subscription tab
  * Serial claims page
  * Serial collection page of your subscription

Note: there was some code for the subscription detail page
that should have displayed the claim date, but didn't work.
To keep things simpler and identical to before, I have left
that bit out for now.

Sponsored-by: The Research University in the Helmholtz Association (KIT)
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/includes/serial-status.inc [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt