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)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 14 Jul 2017 19:12:12 +0000 (12:12 -0700)
commit510c4bb67773bd5e8826a0dc01cee270d038e16b
tree0bc57e60d56a0843a4eb73985aab51a466dc1a45
parent171cfc60d1cce79994dd542c367107c6e36d56b6
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>
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