From bd6a1e40eb0aa22ac1e4135029f42641ec498af4 Mon Sep 17 00:00:00 2001 From: Pierre-Luc Lapointe Date: Wed, 25 Jul 2018 15:42:37 -0400 Subject: [PATCH] Bug 20312: Add a link to last consulted patron This is an update to Maksim's patch. The link "Last patron" is now on the top-right corner of the screen and has the same style as attachment 75672. Moreover, the "X" button is added to remove the link if clicked on. To test: 1- Apply the patch 2- Go to a patron details' page 3- Verify that the link "Last patron" appears on the top-right corner of the screen 4- Go to another page 5- The link should still be here 6- Click on the link 7- Verify that you are at the patron's checkout page 8- Click on the "X" button next to the "Last patron" link 9- The link should be gone 10- Go to another page 11- The link shouldn't appear (until the next patron detail's page) --- .../intranet-tmpl/prog/en/includes/circ-menu.inc | 22 ++++++++ .../intranet-tmpl/prog/en/includes/header.inc | 1 + .../prog/en/includes/last-borrower.inc | 58 ++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/last-borrower.inc diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc index fb56a01..a13fca3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -1,6 +1,28 @@ [% USE Koha %] [% IF ( patron.borrowernumber ) %] +
[% INCLUDE 'patron-title.inc' %]
+ + + +