Koha/koha-tmpl/intranet-tmpl/prog/en/includes
Owen Leonard 679fdaebb1 Bug 22250: Clean up Mana KB integration with serials and reports
This patch makes many changes to templates and JavaScript related to the
integration of Mana with serials reports:

 - Many incorrect uses of the raw filter with html
 - Corrections to Bootstrap modal markup
 - Untranslatable strings moved out of JavaScript
 - Removed markup and JavaScript related to reports comments, a feature
   which doesn't exist in this version.

  New include file: mana/mana-comment-status.inc

  This file contains hidden-by-default messages which are shown during
  the process of submitting a comment on a subscription.

  New include file: mana/mana-share-report.inc

  This file contains the "Share report" modal markup formerly in
  guided_reports_start.tt

  New JavaScript file: mana.js

  Previously mana.inc, an include file containing only JavaScript which
  didn't include any template processing.

  Changed: mana/mana-report-search-result.inc

  This include file is now a full template so that jQuery's load()
  function can be used to pull its contents into the reports search
  modal.

  Changed: svc/mana/search

  This script was returning json-encoded HTML. Now it returns regular
  HTML.

To test you must have Mana configured and enabled. Apply the patch and
go to Reports -> Saved reports.

 - Choose New report -> New SQL from Mana. A "Mana search" modal should
   appear.
   - Perform a search which will return results, e.g. "circulation."
   - A "Loading" indicator should appear while the results are being
     retrieved. It should disappear when results appear.
   - Results should appear in the DataTable with sorting, paging, and
     search options.
   - In the "Notes" column, notes longer than 200 characters should be
     truncated with a "Show more" link. Clicking it should expand the
     comment and reveal a "Show less" link in its place.
   - Click the "Import" button (previously "Use"). The button icon
     should change to a loading indicator.
   - When the import is complete you should be redirected to a view of
     your new report.

Go to Serials and click the "Search on Mana" link in the sidebar.

 - Perform a search for a serial
 - Results should appear in a DataTable with sorting, paging, and search
   options.
 - Sorting by title should ignore articles "a," "an," and "the."

Create a new subscription or edit an existing subscription which will
match a record in Mana.

 - On the second step of adding/editing the subscription a message
   should appear at the top of the form, "Searching for subscription in
   Mana Knowledge Base," with a loading icon.
 - When searching has completed a "Show Mana results" link should
   appear.
 - Clicking the link should trigger a modal showing search results which
   match your subscription, displayed in a DataTable with sorting,
   paging, and search options.
 - The last column of the table should contain "Import" and "Report"
   buttons.
   - Clicking the "Report" button should trigger a menu. Any existing
     comments will be listed as well as a "New comment" item.
     - Clicking an existing comment should cause the menu to close and a
       "Submitting comment" message to appear. It should be shortly
       replaced with a "Your comment has been submitted" message.
     - Clicking "New comment" should reveal a comment form.
       - It should not be possible to submit an empty comment.
       - Clicking the "cancel" link should redisplay the search results.
       - Submitting a new comment should trigger a "Submitting comment"
         message followed by a "Your comment has been submitted"
         message.
   - In the table of search results, click the "Import" button
     (previously "Use"). The button icon should change to a loading
     indicator.
     - The modal should close and the data from Mana should be loaded
       into the subscription entry form.

View the detail page of a subscription which has saved with Mana data.

  - There should be a "Report mistake" button in the toolbar. Clicking
    it should reveal a menu of comments like the one you saw previously.
     - Clicking an existing comment should cause the menu to close and a
       "Submitting comment" message to appear. It should be shortly
       replaced with a "Your comment has been submitted" message.
     - Clicking "New comment" should reveal a comment form modal.
       - It should not be possible to submit an empty comment.
       - Clicking the "cancel" link should hide the modal.
       - Submitting a new comment should trigger a "Submitting comment"
         message followed by a "Your comment has been submitted"
         message.

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-04-11 11:34:14 +00:00
..
catalogue Bug 22442: (bug 13618 follow-up) Fix item search CSV export 2019-03-11 10:23:06 +00:00
csv_headers
mana Bug 22250: Clean up Mana KB integration with serials and reports 2019-04-11 11:34:14 +00:00
modals
str Bug 21091: Add missing USE raw statement 2019-03-11 11:57:03 +00:00
virtualshelves/merge
accounts.inc Bug 21715: Ease translation of account and account offset type descriptions 2018-11-08 02:18:47 +00:00
acquisitions-add-to-basket.inc Bug 15184: Add the ability to duplicate existing order lines 2018-11-08 15:52:57 +00:00
acquisitions-menu.inc
acquisitions-search.inc Bug 18584: Our legacy code contains trailing-spaces 2018-11-15 12:47:34 +00:00
acquisitions-toolbar.inc Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
additem.js.inc
additional-fields-display.inc Bug 15774: (follow-up) Add html filters 2019-03-07 20:37:05 +00:00
additional-fields-entry.inc Bug 15774: (follow-up) Add html filters 2019-03-07 20:37:05 +00:00
admin-items-search-field-form.inc Bug 13618: remove wrong html filter in 'Item search fields' admin 2018-10-26 15:54:54 +00:00
admin-menu.inc Bug 15774: Add permission for managing additional fields 2019-03-07 20:37:06 +00:00
adv-search.inc
auth-finder-search.inc
authorities-search-results.inc Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
authorities-search.inc
authorities-toolbar.inc Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
authorities.inc Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
authorities_js.inc
av-build-dropbox.inc
biblio-default-view.inc
biblio-view-menu.inc Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
blocked-fines.inc Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
blocking_errors.inc Bug 21993: Display a user-friendly message when the CSRF token is wrong 2019-01-25 20:38:32 +00:00
borrower_debarments.inc
branch-selector.inc Bug 21669: Do not html filter TT assignement statements 2018-10-26 16:38:36 +00:00
browser-strings.inc
budgets-active-currency.inc
budgets-admin-search.inc
budgets-admin-toolbar.inc Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
calendar.inc Bug 20729: Update style of datepickers 2019-01-28 13:06:34 +00:00
cat-menu.inc
cat-search.inc Bug 19046: Make seach pulldown to retain index selection 2019-03-11 10:28:09 +00:00
cat-toolbar.inc Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
catalog-strings.inc
cataloging-search.inc
cateditor-ui.inc
cateditor-widgets-marc21.inc Bug 21049: Set 007/00 when selecting material type (Rancor) 2019-03-28 13:46:04 +00:00
chart.inc Bug 22168: Improve styling of new chart settings for reports 2019-01-28 16:05:37 +00:00
checkin-search.inc
checkouts-table-footer.inc Bug 21777: (QA follow-up) Fix colspan in the footer 2018-11-13 20:54:28 +00:00
checkouts-table.inc Bug 21777: Fix circulation table alignment 2018-11-13 20:54:28 +00:00
circ-menu.inc Bug 12159: Fix getting extended patron attributes for circ-menu 2019-03-28 13:05:22 +00:00
circ-nav.inc Bug 21693: Clean up checkout notes template 2018-12-26 20:47:05 +00:00
circ-patron-search-results.inc Bug 17353: Add phone number column to checkout search 2019-01-28 13:06:35 +00:00
circ-search.inc
cities-admin-search.inc
columns_settings.inc Bug 22261: Revise style of DataTables menus 2019-02-22 14:14:27 +00:00
contracts-admin-search.inc
country-list.inc
currencies-admin-search.inc
datatables.inc Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
date-format.inc
delimiter_text.inc
doc-head-close-receipt.inc
doc-head-close.inc Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
doc-head-open.inc
empty_line.inc
facets.inc Bug 18213: Add language facets to Elasticsearch 2019-03-28 15:57:32 +00:00
filter-orders.inc Bug 15774: Add additional fields to order baskets 2019-03-07 20:37:05 +00:00
form-blocks.inc
format_price.inc
greybox.inc
guided-reports-view.inc
header.inc Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
holds_table.inc Bug 21070: request.pl details links to biblio instead of moredetail.pl for that item 2019-03-13 03:43:16 +00:00
home-search.inc Bug 12283: Disable autocomplete for patron search inputs 2019-01-30 11:53:17 +00:00
html_helpers.inc
i18n.inc Bug 15395: Make QA test script happy 2018-11-08 15:55:52 +00:00
ill-list-table-strings.inc Bug 18589: (follow-up) Fix QA tool failures 2019-03-22 20:21:47 +00:00
ill-list-table.inc Bug 18589: (follow-up) Fix QA tool failures 2019-03-22 20:21:47 +00:00
ill-toolbar.inc Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
installer-doc-head-close.inc Bug 20658: (follow-up) Fix for QA: Add missing html filters 2019-03-15 19:44:45 +00:00
installer-intranet-bottom.inc Bug 20658: (follow-up) Fix for QA: Add missing html filters 2019-03-15 19:44:45 +00:00
installer-strings.inc
intranet-bottom.inc Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
intranetstylesheet.inc
js_includes.inc
labels-toolbar.inc Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
langmenu-staff-top.inc Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
last-borrower.inc Bug 20312: Add a link to last consulted patron 2018-11-08 15:38:20 +00:00
letters-search.inc
member-alt-address-style-de.inc
member-alt-address-style-fr.inc
member-alt-address-style-us.inc
member-alt-contact-style-de.inc
member-alt-contact-style-fr.inc
member-alt-contact-style-us.inc
member-display-address-style-de.inc
member-display-address-style-fr.inc
member-display-address-style-us.inc
member-display-alt-address-style-de.inc
member-display-alt-address-style-fr.inc
member-display-alt-address-style-us.inc
member-main-address-style-de.inc
member-main-address-style-fr.inc
member-main-address-style-us.inc
members-toolbar.inc Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
merge-record-strings.inc Bug 21672: Switch templates to Bootstrap grid: Various 2019-01-25 17:41:37 +00:00
merge-record.inc Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
messaging-preference-form.inc
noadd-warnings.inc
onboarding_messages.inc
page-numbers.inc Bug 21950: Remove filtering for query_cgi and limit_cgi 2018-12-14 13:29:31 +00:00
password_check.inc
patron-article-requests.inc
patron-search-box.inc Bug 12283: Disable autocomplete for patron search inputs 2019-01-30 11:53:17 +00:00
patron-search.inc Bug 21904: Add missing PROCESS stt 2019-02-19 13:52:14 +00:00
patron-title.inc Bug 21526: Remove duplicated USE raw statement 2018-10-26 17:09:58 +00:00
patron-toolbar.inc Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
patroncards-errors.inc
patroncards-toolbar.inc
patrons-admin-search.inc
permissions.inc Bug 11375: (QA follow-up) Fix typo 2019-03-11 13:05:19 +00:00
popup-bottom.inc
prefs-admin-search.inc
prefs-menu.inc
quotes-toolbar.inc Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
quotes-upload-toolbar.inc
reports-menu.inc
reports-toolbar.inc Bug 22250: Clean up Mana KB integration with serials and reports 2019-04-11 11:34:14 +00:00
resort_form.inc
rotating-collections-toolbar.inc
search_indexes.inc Bug 19046: (QA follow-up) Remove doubled up 'Title as phrase' 2019-03-11 10:28:09 +00:00
select2.inc
serials-menu.inc Bug 15774: Add additional fields to order baskets 2019-03-07 20:37:05 +00:00
serials-search.inc
serials-toolbar.inc Bug 22250: Clean up Mana KB integration with serials and reports 2019-04-11 11:34:14 +00:00
slip-print.inc
stockrotation-toolbar.inc Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
strings.inc Bug 15494: Update display of renewal errors 2018-11-07 21:39:38 +00:00
subscriptions-search.inc
subtypes_unimarc.inc
suggestions-add-search.inc
timepicker.inc
tools-item-action.inc
tools-menu.inc Bug 8387: Hide headings in tools when user has no permissions for any listed below 2019-02-15 18:42:48 +00:00
tools-nomatch-action.inc
tools-overlay-action.inc
validator-strings.inc
vendor-menu.inc Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
virtualshelves-toolbar.inc Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
waiting_holds.inc Bug 19770: Add cardnumber and CSS classed to patron info on waiting holds 2019-01-28 15:13:35 +00:00
wysiwyg-systempreferences.inc
xslt-handler.inc
z3950-admin-search.inc
z3950_search.inc