LP#1684011: My Account summary ebook link correction
authorKathy Lussier <klussier@masslnc.org>
Wed, 19 Apr 2017 06:02:33 +0000 (02:02 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 24 Apr 2017 18:58:10 +0000 (14:58 -0400)
The links on the My Account Summary page to the user's ebook checkouts and holds
go to the incorrect URL. The links are updated in this commit to the correct
URL.

Test Plan:
* If your test system is not configured for ebook access, enabled it in the
config.tt2 file by setting ebook_api_enabled to true and
ebook_api.ebook_test.enabled to true.
* Log into a patron account
* The Account Summary page will show links to E-Items Currently Checked out,
E-Items Currently on Hold, and E-Items ready for pickup. Pre-patch, clicking one
of those links will bring you to a 404 page. Post-patch, clicking those links
should bring you to the appropriate My Account tab.

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/opac/parts/myopac/main_base.tt2

index 705ba02..e19b336 100644 (file)
@@ -53,7 +53,7 @@
                         </a>
                     </td>
                     <td class="td-right hidden" id="acct_sum_ebook_circs">
-                        <a href="[% mkurl(ctx.opac_root _ '/myopac/circs?e_items') %]"
+                        <a href="[% mkurl(ctx.opac_root _ '/myopac/ebook_circs') %]"
                             title="[% l('View My Checked Out E-Items') %]">
                             [% l("E-Items Currently Checked out") %] (<span id="acct_sum_ebook_circ_total">-</span>)
                         </a>
@@ -68,7 +68,7 @@
                         </a>
                     </td>
                     <td class="td-right hidden" id="acct_sum_ebook_holds">
-                        <a href="[% mkurl(ctx.opac_root _ '/myopac/holds?e_items') %]"
+                        <a href="[% mkurl(ctx.opac_root _ '/myopac/ebook_holds') %]"
                             title="[% l('View My E-Items On Hold') %]">
                             [% l("E-Items Currently on Hold") %] (<span id="acct_sum_ebook_hold_total">-</span>)
                         </a>
@@ -83,7 +83,7 @@
                         </a>
                     </td>
                     <td class="td-right hidden" id="acct_sum_ebook_holds_ready">
-                        <a href="[% mkurl(ctx.opac_root _ '/myopac/holds?e_items&available=1') %]"
+                        <a href="[% mkurl(ctx.opac_root _ '/myopac/ebook_holds_ready') %]"
                             title="[% l('View My E-Items Ready for Pickup') %]">
                             [% l("E-Items ready for pickup") %] (<span id="acct_sum_ebook_hold_ready_total">-</span>)
                         </a>