LP#1673870: Use separate templates for ebook checkouts and holds
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Mon, 26 Jun 2017 23:23:54 +0000 (16:23 -0700)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 31 Aug 2017 15:31:56 +0000 (11:31 -0400)
commitce4814552d645f3d0df1ff67b34eac4dda30f837
treea3855546b46b06ba3326e7ef918d2b57cf9cc2b7
parent682b4368521faf7b2b4d5521c6507bb559d799d6
LP#1673870: Use separate templates for ebook checkouts and holds

Previously we used the same TT2 template for listing checkouts and
performing a checkout, and for listing holds and placing a hold.  This
leads to problems; in particular, URL parameters required for checkout
and hold actions were "sticky," so viewing your holds after placing a
hold would show the "Place Hold" UI instead of a list of holds.  This
commit introduces separate templates for ebook actions as a workaround.

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/opac/myopac/ebook_checkout.tt2 [new file with mode: 0644]
Open-ILS/src/templates/opac/myopac/ebook_circs.tt2
Open-ILS/src/templates/opac/myopac/ebook_holds.tt2
Open-ILS/src/templates/opac/myopac/ebook_place_hold.tt2 [new file with mode: 0644]
Open-ILS/src/templates/opac/parts/record/summary.tt2
Open-ILS/src/templates/opac/parts/result/table.tt2
Open-ILS/web/js/ui/default/opac/ebook_api/loggedin.js