From 61f4a26d0396fa6ff3fa0293c5f439cdb8d403d7 Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Fri, 17 Mar 2017 15:22:32 -0700 Subject: [PATCH] LP#1673870: Add ebook API checkout functionality to OPAC Signed-off-by: Jeff Davis Signed-off-by: Galen Charlton Signed-off-by: Bill Erickson --- Open-ILS/src/templates/opac/myopac/ebook_circs.tt2 | 16 ++++-- .../src/templates/opac/parts/ebook_api/base_js.tt2 | 13 +++++ Open-ILS/web/js/ui/default/opac/ebook_api/ebook.js | 40 +++++++++++++ .../web/js/ui/default/opac/ebook_api/loggedin.js | 67 +++++++++++++++++++++- 4 files changed, 131 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/templates/opac/myopac/ebook_circs.tt2 b/Open-ILS/src/templates/opac/myopac/ebook_circs.tt2 index 5a53976be5..7af1a8d102 100644 --- a/Open-ILS/src/templates/opac/myopac/ebook_circs.tt2 +++ b/Open-ILS/src/templates/opac/myopac/ebook_circs.tt2 @@ -2,7 +2,13 @@ PROCESS "opac/parts/misc_util.tt2"; PROCESS "opac/parts/myopac/column_sort_support.tt2"; WRAPPER "opac/parts/myopac/base.tt2"; - myopac_page = "ebook_circs" %] + myopac_page = "ebook_circs"; + IF CGI.param("action") == 'checkout'; + ebook_circs_title = l('Check Out E-Item'); + ELSE; + ebook_circs_title = l('E-Items Currently Checked Out'); + END; +%]

[% l('E-Items Currently Checked Out') %]

[% l("Check Out History") %] @@ -19,13 +25,15 @@
- [% l('E-Items Currently Checked Out') %] + [% ebook_circs_title %]
+ +