Koha/koha-tmpl/intranet-tmpl/prog/en/includes
Cori Lynn Arnold bae538dcdd
Bug 24323: Advanced editor - Display an error message if the record did not save
Invalid 008 with helper silently fails to save.

This patch adds a "else if" to fall through if the error message isn't
one of the previously defined ones ("syntax" and "invalid") and presents
the human with a generic message that "Something went wrong, cannot
save."

Prior to testing:
a/Verify that Advanced Editor is enabled
b/Download the errorrecord.mrc from bug

To test:
1/Apply patch
2/Go to Cataloging->Advanced Editor
3/Click "Import Record" button and navigate to the record saved from
step b/
4/Add an 003 field (as required by the default cataloging config)
5/Hit "Save to catalog"
6/Verify that a message is passed to the user that the file was unable
to be saved

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-10 10:48:05 +00:00
..
catalogue Bug 24104: Item search - Prevent "Edit" dropdown button to overflow 2020-01-08 14:12:16 +00:00
csv_headers
mana
modals
str
virtualshelves/merge
about-team.inc
accounts.inc
acquisitions-add-to-basket.inc
acquisitions-menu.inc
acquisitions-search.inc
acquisitions-toolbar.inc
additem.js.inc
additional-fields-display.inc
additional-fields-entry.inc
admin-items-search-field-form.inc
admin-menu.inc
adv-search.inc
auth-finder-search.inc
authorities-search-results.inc
authorities-search.inc
authorities-toolbar.inc
authorities.inc
authorities_js.inc
av-build-dropbox.inc
biblio-default-view.inc
biblio-title-head.inc
biblio-title.inc
biblio-view-menu.inc Bug 10352: Use a new object_type parameter instead of the module's name 2020-01-10 08:36:37 +00:00
blocked-fines.inc
blocking_errors.inc
borrower_debarments.inc
branch-selector.inc
browser-strings.inc
budgets-active-currency.inc
budgets-admin-search.inc
budgets-admin-toolbar.inc
calendar.inc Bug 24181: Make our datepicker inputs sexy 2020-01-03 15:52:34 +00:00
cat-menu.inc
cat-search.inc
cat-toolbar.inc
catalog-strings.inc
cataloging-search.inc
cateditor-ui.inc Bug 24323: Advanced editor - Display an error message if the record did not save 2020-01-10 10:48:05 +00:00
cateditor-widgets-marc21.inc
category-out-of-age-limit.inc
chart.inc
checkin-search.inc
checkouts-table-footer.inc
checkouts-table.inc
circ-menu.inc
circ-nav.inc
circ-patron-search-results.inc
circ-search.inc
cities-admin-search.inc
clubs-table.inc
columns_settings.inc
contracts-admin-search.inc
country-list.inc
currencies-admin-search.inc
datatables.inc
date-format.inc
delimiter_text.inc
doc-head-close-receipt.inc
doc-head-close.inc
doc-head-open.inc
empty_line.inc
facets.inc Bug 24371: Fix "Show all items" avaibility link (use $raw filter) - intra 2020-01-10 10:47:32 +00:00
filter-orders.inc
form-blocks.inc
format_price.inc
greybox.inc
guided-reports-view.inc
header.inc
holds_table.inc
home-search.inc
html_helpers.inc
i18n.inc
ill-list-table-strings.inc
ill-list-table.inc
ill-toolbar.inc
installer-doc-head-close.inc
installer-intranet-bottom.inc
installer-strings.inc
intranet-bottom.inc
intranetstylesheet.inc
js_includes.inc
keyboard_shortcuts.inc
labels-toolbar.inc
langmenu-staff-top.inc
last-borrower.inc
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
merge-record-strings.inc
merge-record.inc
messaging-preference-form.inc
noadd-warnings.inc
onboarding_messages.inc
page-numbers.inc
password_check.inc
patron-article-requests.inc
patron-return-claims.inc
patron-search-box.inc
patron-search.inc
patron-title.inc
patron-toolbar.inc
patroncards-errors.inc
patroncards-toolbar.inc
patrons-admin-search.inc
permissions.inc Bug 23442: Add refund permission 2020-01-10 08:41:13 +00:00
popup-bottom.inc
prefs-admin-search.inc
prefs-menu.inc
quotes-toolbar.inc
quotes-upload-toolbar.inc
relatives-issues-table.inc
reports-menu.inc
reports-toolbar.inc
resort_form.inc
rotating-collections-toolbar.inc
search_indexes.inc
select2.inc
serials-menu.inc
serials-search.inc
serials-toolbar.inc
slip-print.inc
stockrotation-toolbar.inc
strings.inc
subscriptions-search.inc
subtypes_unimarc.inc
suggestions-add-search.inc
timepicker.inc
tools-item-action.inc
tools-menu.inc
tools-nomatch-action.inc
tools-overlay-action.inc
validator-strings.inc
vendor-menu.inc
virtualshelves-toolbar.inc
waiting_holds.inc
wysiwyg-systempreferences.inc
xslt-handler.inc
z3950-admin-search.inc
z3950_search.inc