Koha/koha-tmpl/opac-tmpl/bootstrap/en/modules
Owen Leonard 17cf2657ef Bug 11694: Improve handling of individual hold suspension in Bootstrap OPAC
This patch changes the way the controls to suspend and resume holds are
displayed on the OPAC for a logged-in user when using the Bootstrap
theme. Instead of showing all the suspend options in the table cell a
link will trigger a modal with the controls. This makes the table more
compact and readable.

The patch adds a span and class to the dateformat include so that the
dateformat hint can be hidden if JavaScript is enabled (and thus the
datepicker will use the correct format automatically).

A new class has been added to the CSS, ".js-show" to be used for
elements which should be hidden if JavaScript is disabled and made
visible by JavaScript if it is enabled.

To test you must have RequestOnOpac, SuspendHoldsOpac, and the bootstrap
theme enabled.

Apply the patch and test with AutoResumeSuspendedHolds enabled:

1. Log in to the OPAC and place a hold.
2. View the list of your holds in the OPAC.
3. Click the "Suspend" link for your new hold. A modal window should
   appear allowing you to specify a suspend-until date.
4. Specify a suspend-until date. Test the "clear" link and confirm that
   it clears the date.
5. Specify a suspend-until date and submit.
6. Confirm that the hold has been suspended with the specified
   resumption date.
7. Click the "Resume" link on the suspended hold to resume.
8. Click the "Suspend" link again and submit without specifying a date.
9. Confirm that the hold has been suspended indefinitely.

Follow the same steps above with JavaScript disabled. The "suspend
until" options will appear inside the table as before and everything
should work correctly.

Test with AutoResumeSuspendedHolds disabled. No modal dialog should
appear when the "Suspend" link is clicked. The hold should simply be
suspended indefinitely.

Test again with JavaScript disabled. There should be no change in
functionality.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script, works as described.
Happy about the fallback for users without Javascript.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-03-26 16:07:44 +00:00
..
errors
sco Bug 11784 - fix displaying patron images in self checkout 2014-02-19 15:56:09 +00:00
search
svc Bug 10309: (follow-up) Update for Bug 10856, improve shelf browser 2013-10-14 23:13:47 +00:00
text
ilsdi.tt
maintenance.tt
opac-account.tt
opac-addbybiblionumber.tt
opac-advsearch.tt Bug 10309: (follow-up) Add changes from Bug 8712, "and" labels in advanced search 2013-10-14 23:14:02 +00:00
opac-alert-subscribe.tt
opac-auth-detail.tt Bug 11794 - restore functioning of opacSerialDefaultTab 2014-03-10 15:29:04 +00:00
opac-auth-MARCdetail.tt
opac-auth.tt
opac-authorities-home.tt
opac-authoritiessearchresultlist.tt Bug 10691: (follow-up) restore behaviour for control field ($w) 2014-01-16 22:39:42 +00:00
opac-basket.tt
opac-browser.tt
opac-course-details.tt Bug 11649 - Always use words "copy number" - opac bootstrap 2014-02-18 23:51:53 +00:00
opac-course-reserves.tt
opac-detail.tt Bug 11516: make OPAC search term highlighting work in results browser 2014-03-10 21:30:38 +00:00
opac-downloadcart.tt
opac-downloadshelf.tt
opac-full-serial-issues.tt
opac-imageviewer.tt
opac-ISBDdetail.tt
opac-main.tt
opac-MARCdetail.tt Bug 11648 - Use word item instead of copy - opac bootstrap 2014-03-12 14:21:44 +00:00
opac-memberentry-update-submitted.tt
opac-memberentry.tt Bug 11809: don't display 'Clear date' on OPAC patron details form if date of birth is required 2014-02-26 17:32:06 +00:00
opac-messaging.tt
opac-mymessages.tt
opac-opensearch.tt Bug 11308: fix RSS page in bootstrap theme 2013-11-27 15:50:19 +00:00
opac-overdrive-search.tt Bug 11648 - Use word item instead of copy - opac bootstrap 2014-03-12 14:21:44 +00:00
opac-passwd.tt
opac-privacy.tt
opac-readingrecord.tt
opac-registration-confirmation.tt
opac-registration-email-sent.tt
opac-registration-invalid.tt
opac-reserve.tt Bug 11648 - Use word item instead of copy - opac bootstrap 2014-03-12 14:21:44 +00:00
opac-results-grouped.tt Bug 11648 - Use word item instead of copy - opac bootstrap 2014-03-12 14:21:44 +00:00
opac-results.tt Bug 11648 - Use word item instead of copy - opac bootstrap 2014-03-12 14:21:44 +00:00
opac-review.tt
opac-search-history.tt
opac-sendbasket.tt
opac-sendbasketform.tt
opac-sendshelf.tt Bug 8368: (follow-up) port change to the Bootstrap OPAC; restore ISBN display 2013-10-18 06:47:39 +00:00
opac-sendshelfform.tt
opac-serial-issues.tt Bug 11647 : (follow-up) Add template modification for bootstrap theme 2014-03-13 14:57:00 +00:00
opac-shelves.tt Bug 11709: revisions to Bootstrap OPAC lists interface 2014-02-18 23:39:21 +00:00
opac-showmarc.tt
opac-showreviews-rss.tt
opac-showreviews.tt
opac-suggestions.tt Bug 11127: (follow-up) define a specific message for suggestions 2014-03-13 16:50:12 +00:00
opac-tags.tt
opac-tags_subject.tt
opac-topissues.tt Bug 11692: fix display of additional bib information in OPAC "most popular" pag 2014-02-10 15:17:50 +00:00
opac-user.tt Bug 11694: Improve handling of individual hold suspension in Bootstrap OPAC 2014-03-26 16:07:44 +00:00