Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members
Owen Leonard 87e53a3352 Bug 27725: Use JavaScript to set history state during patron search
This patch modifies the patron search page so that clicks on the "Browse
by last name" letters add an entry to the browser history, allowing the
user to click back and forth from results while preserving their search.

To test, apply the patch and go to Patrons in the staff interface.

- Click one of the "Browse by last name" letters.
- The table of search results should load the correct data.
- In the browser's location bar you should see a query string added to
  the URL, e.g. /cgi-bin/koha/members/members-home.pl?firstletter=Q
- Click another letter.
- Click the back button. You should be returned to the search results
  for your first letter choice.
- Clicking the forward button should work correctly as well.
- Other patron searches (header search, sidebar search) should continue
  to work as expected.

EDIT: Clear single-letter querystring history item if only one result
was returned.

EDIT 2: Fixed handling of history state changes so that forward and back
buttons work correctly.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Bug 27725: (follow-up) Remove code for clearing search results

This patch removes code which cleared search results if there was no
first-letter search. It was unnecessary for the letter search
functionality and made all other searches fail.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-10-07 11:18:29 +02:00
..
tables Bug 28081: Make card number a label in patron search results 2021-04-14 15:25:23 +02:00
accountline-details.tt Bug 22435: Update accountline-details page to show all history 2021-08-04 14:06:43 +02:00
apikeys.tt Bug 28772: Display API secret once 2021-09-30 09:19:05 +02:00
boraccount.tt Bug 28346: (QA follow-up) Add -action for consistency 2021-08-18 15:10:18 +02:00
deletemem.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
discharge.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
discharges.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
files.tt Bug 27846: (follow-up) Add id back to breadcrumbs container 2021-04-01 18:51:38 +02:00
holdshistory.tt Bug 27990: Replace obsolete title-string sorting: Patrons 2021-04-06 15:56:31 +02:00
housebound.tt Bug 26544: Add housebound details to delivery page 2021-10-07 11:07:04 +02:00
ill-requests.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
mancredit.tt Bug 27636: (QA follow-up) Fix tests and validate 2021-04-30 17:07:31 +02:00
maninvoice.tt Bug 27636: (QA follow-up) Fix tests and validate 2021-04-30 17:07:31 +02:00
member-flags.tt Bug 28882: Disable select/hide all links 2021-09-09 10:59:37 +02:00
member-password.tt Bug 28428: Capitalization: Password Updated 2021-06-21 12:07:28 +02:00
member.tt Bug 27725: Use JavaScript to set history state during patron search 2021-10-07 11:18:29 +02:00
memberentrygen.tt Bug 28937: Use Flatpickr on circulation and patron pages 2021-09-29 12:47:33 +02:00
members-update.tt Bug 28073: Patron modifications should auto-open panel for referring patron record 2021-07-26 12:46:32 +02:00
merge-patrons.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
moremember-brief.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
moremember-print.tt Bug 28047: Standardize: Call number, callnumber, Call no. etc. 2021-04-06 15:56:31 +02:00
moremember.tt Bug 29083: Update article requests-related Koha::Patron methods to use relationships 2021-10-07 10:54:59 +02:00
notices.tt Bug 28803: (QA follow-up) Reinstate UNKNOWN_ERROR in templates 2021-09-28 10:22:36 +02:00
pay.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
paycollect.tt Bug 27636: (QA follow-up) Fix tests and validate 2021-04-30 17:07:31 +02:00
printfeercpt.tt Bug 26734: Convert printfeercpt/printinvoice to use GetPreparedLetter 2021-04-27 16:23:49 +02:00
printinvoice.tt Bug 26734: Convert printfeercpt/printinvoice to use GetPreparedLetter 2021-04-27 16:23:49 +02:00
purchase-suggestions.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
readingrec.tt Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
routing-lists.tt Bug 27846: (follow-up) Add id back to breadcrumbs container 2021-04-01 18:51:38 +02:00
statistics.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
update-child.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00