Koha/koha-tmpl/intranet-tmpl/prog/en/includes
Baptiste Wojtkowski cb01b25330 Bug 17047: SQL reports management with Mana-KB
Includes:

* code factorization
Some code from subscription & Mana-KB has been factorized in order to speed-up next developments

* SytemPreferences:
Mana Activation:
    - add a value "no, let me think about it", that is the default value.
    - as long as this value is selected, messages ask if user want to activate it ( in Administration and Add-subscription(page 2) )
AutoShareWithMana
    - Add the syspref AutoShareWithMana: user can automatically share infos with Mana-KB (not set by default)

* Interface :
    - On mana-search, rows are now sorted by date of last import, then by number of users
    - Windows redesigned to improve the user experience

* New Feature : report a mistake.
    - people can now report an invalid data (wrong, obsolete,...)
    - if a data is reported as invalid many time, it will appear differently
    - Added few tooltip (to explain the fields last import, nb of users, to explain the new feature)
    - When reporting a data as invalid, a comment can also be added. Koha will then display comments related to data in result lists

* API (svc/mana)
    - add svc/mana/addvaluetofield: allows to ask mana incrementing a field of a resource
    - no hardcoding for resources in the code of api (api needs to be called with a ressourcename)

* New feature : SQL report sharing
    - Create Koha::Report.pm and Koha::Reports.pm, objects class for Reports
    - New feature: share reports with Mana-KB
    - New feature: search report in Mana-KB with keywords
    - New feature: load reports from Mana-KB

Test plan:
    1 - Apply Patch + update database
    2 - Copy the three lines about mana config in etc/koha-conf.xml in ../etc/koha-conf.xml (after <backupdir> for example)
        <!-- URL of the mana KB server -->
        <!-- alternative value http://mana-test.koha-community.org to query the test server -->
        <mana_config>https://mana-kb.koha-community.org</mana_config>
    3 - Check Mana syspref and AutoShareWithMana syspref are not activated
    4 - Search the syspref ManaToken and follow the instructions
    5 - subscriptions
      - Try create a new subscription for a first serial  => Mana-KB shouldn't show you anything (except if the base hase been filled)
      - Share this serial with Mana-KB (on the serial individual's page there must be a Share button)
      - Try to create a new subscription for serial nr1 => a message should appear when you click on "next", click on "use", the fields should automaticaly appear
      - Activate AutoShareWithMana => Subscriptions
      - Create a new subscription for a second serial
      - There shouldn't be any Share button
      - Create a second subscription => the message should appear, click again on use

    6 - SQL Report
      - Create a new SQL report, without notes.
      - On the table with all report (reports > use saved), there should be the action "Share"
      - If you click on share, you have an error message
      - Create a new report, with a title and notes longer than 20 characters
      - You  can share it with mana => you will have a success message
      - On (report > use saved), there must be a message inviting you to search on Mana-KB for more results, enter a few word from title, notes, type of  the report you shared, it should appear. You can use it, it will load it into your report list.

    7 - Report mistakes.
      - On any table containing Mana-KB search results, you can report a mistake and add a comment.

    8 - For each previous test, try to send wrong data, to delete the security token, to send nothing: it should show a correct warning message.

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Rebased-by: Alex Arnaud <alex.arnaud@biblibre.com> (2018-07-04)
Signed-off-by: Michal Denar <black23@gmail.com>

Signed-off-by: Michal Denar <black23@gmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-01-23 14:39:26 +00:00
..
catalogue Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
csv_headers Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
mana Bug 17047: SQL reports management with Mana-KB 2019-01-23 14:39:26 +00:00
modals Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
str Bug 21068: Remove NorwegianPatronDB related code 2018-08-30 13:40:29 +00:00
virtualshelves/merge Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
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 Bug 11911: Add a separate permission for managing suggestions 2018-07-23 15:34:20 +00:00
acquisitions-search.inc Bug 18584: Our legacy code contains trailing-spaces 2018-11-15 12:47:34 +00:00
acquisitions-toolbar.inc Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
additem.js.inc
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 14391: (follow-up) check for correct patron categories permission 2018-11-07 14:02:27 +00:00
adv-search.inc Bug 13272: (follow-up) add missing type="text" 2018-10-01 11:18:32 +00:00
auth-finder-search.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
authorities-search-results.inc Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
authorities-search.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
authorities-toolbar.inc Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +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 Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
av-build-dropbox.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
biblio-default-view.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
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 15184: Add the ability to duplicate existing order lines 2018-11-08 15:52:57 +00:00
borrower_debarments.inc Bug 13272: (follow-up) fix concerns from comment #5 2018-10-01 11:18:31 +00:00
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 Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
budgets-admin-search.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
budgets-admin-toolbar.inc Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
calendar.inc Bug 17047: SQL reports management with Mana-KB 2019-01-23 14:39:26 +00:00
cat-menu.inc
cat-search.inc Bug 13272: Adds type="text" to inputs missing it 2018-10-01 11:18:30 +00:00
cat-toolbar.inc Bug 21905: Plugin hook intranet_catalog_biblio_enhancements_toolbar_button incorrectly filtered 2018-11-29 18:36:32 +00:00
catalog-strings.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
cataloging-search.inc Bug 13272: (follow-up) add missing type="text" 2018-10-01 11:18:32 +00:00
cateditor-ui.inc Bug 14786: Use MARC istead of ISO2709 everywhere 2018-10-17 13:55:19 +00:00
cateditor-widgets-marc21.inc Bug 19263: Rancor - 001 widget - changes to address QA issues 2018-10-27 13:26:09 +00:00
chart.inc Bug 17282: add template's variable filters 2018-10-01 13:56:36 +00:00
checkin-search.inc Bug 13272: (follow-up) add missing type="text" 2018-10-01 11:18:32 +00:00
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 21578: Terminology changes in patron's account section (staff) 2019-01-02 20:50:14 +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 21703: Fix filter on dataurl variable to allow placing holds in staff again 2018-10-29 00:27:42 +00:00
circ-search.inc Bug 13272: Adds type="text" to inputs missing it 2018-10-01 11:18:30 +00:00
cities-admin-search.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
columns_settings.inc Bug 21216: (follow-up) Exclude some columns from export 2018-10-24 13:38:49 +00:00
contracts-admin-search.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
country-list.inc Bug 14608: Move country list to an include file 2017-03-22 23:51:30 +00:00
currencies-admin-search.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
datatables.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
date-format.inc
delimiter_text.inc Bug 19910: Use span to make translators happy 2018-04-04 16:06:56 -03:00
doc-head-close-receipt.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
doc-head-close.inc Bug 21352: Add missing USE statements 2018-10-03 17:45:58 +00:00
doc-head-open.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
empty_line.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
facets.inc Bug 21950: Remove filtering for query_cgi and limit_cgi 2018-12-14 13:29:31 +00:00
filter-orders.inc Bug 15184: add missing filters 2018-11-08 15:52:58 +00:00
form-blocks.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
format_price.inc
greybox.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
guided-reports-view.inc Bug 19856: Improve styling of reports sidebar 2018-03-23 11:45:38 -03:00
header.inc Bug 22101: Ill Requests missing in menu on advanced search page 2019-01-18 20:41:58 +00:00
holds_table.inc Bug 21608: (QA follow-up) Rename revert button 2018-12-11 19:13:32 +00:00
home-search.inc Bug 13272: Adds type="text" to inputs missing it 2018-10-01 11:18:30 +00:00
html_helpers.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
i18n.inc Bug 15395: Make QA test script happy 2018-11-08 15:55:52 +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 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
installer-strings.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
intranet-bottom.inc Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
intranetstylesheet.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
js_includes.inc Bug 15734: Use To.json to filter audio alerts 2018-10-09 15:45:03 +00:00
labels-toolbar.inc Bug 18403: Add sub output_and_exit_if_error - unknown_patron & cannot_see_patron_infos 2018-02-12 15:41:38 -03: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 Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
mana.inc Bug 17047: SQL reports management with Mana-KB 2019-01-23 14:39:26 +00:00
member-alt-address-style-de.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
member-alt-address-style-fr.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
member-alt-address-style-us.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
member-alt-contact-style-de.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
member-alt-contact-style-fr.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
member-alt-contact-style-us.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
member-display-address-style-de.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
member-display-address-style-fr.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
member-display-address-style-us.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
member-display-alt-address-style-de.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
member-display-alt-address-style-fr.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
member-display-alt-address-style-us.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
member-main-address-style-de.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
member-main-address-style-fr.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
member-main-address-style-us.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
members-toolbar.inc Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
merge-record-strings.inc
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 Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
noadd-warnings.inc
onboarding_messages.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
page-numbers.inc Bug 21950: Remove filtering for query_cgi and limit_cgi 2018-12-14 13:29:31 +00:00
password_check.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
patron-article-requests.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
patron-search-box.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
patron-search.inc Bug 20165: Changed uppercase letter to a lowercase letter in the patron search search fields under the plus option. 2019-01-17 02:23:27 +00:00
patron-title.inc Bug 21526: Remove duplicated USE raw statement 2018-10-26 17:09:58 +00:00
patron-toolbar.inc Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
patroncards-errors.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
patroncards-toolbar.inc Bug 18403: Add sub output_and_exit_if_error - unknown_patron & cannot_see_patron_infos 2018-02-12 15:41:38 -03:00
patrons-admin-search.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
permissions.inc Bug 14391: (QA follow-up) Fix some typos 2018-11-07 12:29:32 +00:00
popup-bottom.inc Bug 13618: Manually replace missing .raw 2018-08-17 15:55:10 +00:00
prefs-admin-search.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
prefs-menu.inc Bug 19538: Move EnableAdvancedCatalogingEdtor from 'Labs' to 'Cataloging' 2018-04-11 16:45:09 -03:00
quotes-toolbar.inc Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
quotes-upload-toolbar.inc Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
reports-menu.inc Bug 19856: (follow-up) Improve styling of reports sidebar 2018-03-23 11:45:38 -03:00
reports-toolbar.inc Bug 17047: SQL reports management with Mana-KB 2019-01-23 14:39:26 +00:00
resort_form.inc
rotating-collections-toolbar.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
search_indexes.inc Bug 9968: Fix wrong index for Standard number in advanced and label search 2018-10-09 11:04:24 +00:00
select2.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
serials-menu.inc Bug 17047: subscriptions management with Mana-KB 2019-01-23 14:39:26 +00:00
serials-search.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
serials-toolbar.inc Bug 17047: SQL reports management with Mana-KB 2019-01-23 14:39:26 +00:00
slip-print.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
stockrotation-toolbar.inc Bug 11897: (QA follow-up) Template filter fixes 2018-10-09 15:46:06 +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 Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
timepicker.inc
tools-item-action.inc
tools-menu.inc Bug 21615: Move stock rotation in the tools menu 2018-11-21 11:26:43 +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 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
waiting_holds.inc Bug 21628: (follow-up) Indentation and filter corrections 2018-11-08 02:18:47 +00:00
wysiwyg-systempreferences.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
xslt-handler.inc Bug 20272: Changes for Breeding.pm and Record.pm 2018-07-02 12:12:49 +00:00
z3950-admin-search.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
z3950_search.inc Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00