From 2cc4477c4c657ed9a29eb57c58b5b995a35ed59a Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Wed, 22 Mar 2017 13:00:47 -0700 Subject: [PATCH] LP#1673870: Add ebook API place hold 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_holds.tt2 | 15 +++- .../src/templates/opac/parts/ebook_api/base_js.tt2 | 2 + Open-ILS/web/js/ui/default/opac/ebook_api/ebook.js | 17 +++++ .../web/js/ui/default/opac/ebook_api/loggedin.js | 82 +++++++++++++++++++--- 4 files changed, 105 insertions(+), 11 deletions(-) diff --git a/Open-ILS/src/templates/opac/myopac/ebook_holds.tt2 b/Open-ILS/src/templates/opac/myopac/ebook_holds.tt2 index 76bde68522..eeefea3a29 100644 --- a/Open-ILS/src/templates/opac/myopac/ebook_holds.tt2 +++ b/Open-ILS/src/templates/opac/myopac/ebook_holds.tt2 @@ -4,6 +4,13 @@ PROCESS "opac/parts/myopac/column_sort_support.tt2"; WRAPPER "opac/parts/myopac/base.tt2"; myopac_page = "ebook_holds"; + IF CGI.param("action") == 'place_hold'; + ebook_holds_title = l('Place Hold on E-Item'); + ELSIF CGI.param("action") == 'cancel_hold'; + ebook_holds_title = l('Cancel Hold on E-Item'); + ELSE; + ebook_holds_title = l('E-Items on Hold'); + END; limit = (ctx.holds_limit.defined) ? ctx.holds_limit : 0; offset = (ctx.holds_offset.defined) ? ctx.holds_offset : 0; count = (ctx.holds_ids.size.defined) ? ctx.holds_ids.size : 0; @@ -27,13 +34,17 @@
- [% l('E-Items on Hold') %] + [% ebook_holds_title %]
+ + + +