From eba6e2b4e1b9339a9cf9f003f793dfeb6107c65c Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 15 Jul 2014 15:48:29 -0400 Subject: [PATCH] initial tpac integration via eg-embed-frame Signed-off-by: Bill Erickson --- .../src/templates/opac/parts/bookbag_actions.tt2 | 2 +- Open-ILS/src/templates/staff/cat/catalog/index.tt2 | 15 ++++++++ Open-ILS/src/templates/staff/circ/patron/index.tt2 | 2 +- .../src/templates/staff/circ/patron/register.tt2 | 2 +- .../src/templates/staff/circ/patron/t_edit.tt2 | 2 +- Open-ILS/src/templates/staff/css/style.css.tt2 | 3 +- Open-ILS/src/templates/staff/navbar.tt2 | 6 +++ Open-ILS/web/js/ui/default/opac/staff.js | 42 +++++++++++++-------- .../web/js/ui/default/staff/cat/catalog/app.js | 38 +++++++++++++++++++ .../js/ui/default/staff/circ/patron/register.js | 12 +++--- .../staff/services/{lframe.js => eframe.js} | 44 +++++++++++++++++----- 11 files changed, 132 insertions(+), 36 deletions(-) create mode 100644 Open-ILS/src/templates/staff/cat/catalog/index.tt2 create mode 100644 Open-ILS/web/js/ui/default/staff/cat/catalog/app.js rename Open-ILS/web/js/ui/default/staff/services/{lframe.js => eframe.js} (65%) diff --git a/Open-ILS/src/templates/opac/parts/bookbag_actions.tt2 b/Open-ILS/src/templates/opac/parts/bookbag_actions.tt2 index de33841e28..611d1fc960 100644 --- a/Open-ILS/src/templates/opac/parts/bookbag_actions.tt2 +++ b/Open-ILS/src/templates/opac/parts/bookbag_actions.tt2 @@ -4,7 +4,7 @@ # Wrap a url to open in a new tab in staff client. MACRO opac_wrap(url) BLOCK; - IF ctx.is_staff; + IF ctx.is_staff AND NOT ctx.is_browser_staff; # void(0) to return false and not go to new page in current tab. "javascript:xulG.new_tab(xulG.urls.XUL_OPAC_WRAPPER, {}, {'opac_url' : 'oils://remote" _ url _ "'});void(0);"; ELSE; diff --git a/Open-ILS/src/templates/staff/cat/catalog/index.tt2 b/Open-ILS/src/templates/staff/cat/catalog/index.tt2 new file mode 100644 index 0000000000..61e4862ff1 --- /dev/null +++ b/Open-ILS/src/templates/staff/cat/catalog/index.tt2 @@ -0,0 +1,15 @@ +[% + WRAPPER "staff/base.tt2"; + ctx.page_title = l("Record Buckets"); + ctx.page_app = "egCatalogApp"; +%] + +[% BLOCK APP_JS %] + + +[% END %] + +
+ +[% END %] + diff --git a/Open-ILS/src/templates/staff/circ/patron/index.tt2 b/Open-ILS/src/templates/staff/circ/patron/index.tt2 index 4f38659163..257462f176 100644 --- a/Open-ILS/src/templates/staff/circ/patron/index.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/index.tt2 @@ -9,7 +9,7 @@ - + [% INCLUDE 'staff/circ/share/circ_strings.tt2' %] diff --git a/Open-ILS/src/templates/staff/circ/patron/register.tt2 b/Open-ILS/src/templates/staff/circ/patron/register.tt2 index 53505a1831..4a3c9ce3df 100644 --- a/Open-ILS/src/templates/staff/circ/patron/register.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/register.tt2 @@ -5,7 +5,7 @@ %] [% BLOCK APP_JS %] - + [% END %] diff --git a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 index 379444ad61..26cc7666c9 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 @@ -1,3 +1,3 @@ - + diff --git a/Open-ILS/src/templates/staff/css/style.css.tt2 b/Open-ILS/src/templates/staff/css/style.css.tt2 index 7d555a7801..0a8becf37b 100644 --- a/Open-ILS/src/templates/staff/css/style.css.tt2 +++ b/Open-ILS/src/templates/staff/css/style.css.tt2 @@ -169,7 +169,8 @@ table.list tr.selected td { /* deprecated? */ white-space:nowrap; } -.eg-legacy-frame { +/* embedded UI iframe */ +.eg-embed-frame { width: 100%; border: none; margin: 0px; diff --git a/Open-ILS/src/templates/staff/navbar.tt2 b/Open-ILS/src/templates/staff/navbar.tt2 index c4ff8691c0..944958f9f7 100644 --- a/Open-ILS/src/templates/staff/navbar.tt2 +++ b/Open-ILS/src/templates/staff/navbar.tt2 @@ -146,6 +146,12 @@