Owen Leonard
9d056d0364
This patch moves the definition of translatable strings out of additem.js.inc and into additem.js using the new JS i81n function. additem.js.inc is removed, being obsolete. To test: When creating an order: - Go to Administration -> System preferences and set "AcqCreateItem" to "when placing an order." - Apply the patch and go to Acquisitions -> Vendor -> Add to basket -> From a new (empty) record. - In the "Item" section, confirm that the buttons at the bottom of the form are correct: "Add item," "Clear," and "Add multiple items." - Click "Add multiple items." The placeholder in the revealed form field should read "Number of items to add." The corresponding button should be labeled "Add." - You should see a note, "NOTE: Fields listed in the 'UniqueItemsFields' system preference will not be copied." - Fill out the item entry form and add a number to the "multiple items" field. Click "Add." - A table of items should be displayed with "Edit" and "Delete" buttons for each new item. - Click one of the "Edit" buttons. The item form should be populated with the item's data, with an "Update item" button at the bottom. When receiving an order: - Go to Administration -> System preferences and set "AcqCreateItem" to "when receiving an order." - Go to Acquisitions -> Vendor -> Receive shipments. - Select or create an invoice. - Click "Receive" on an order which has a quantity greater than 1. - Add two items, duplicating in each at least one value which is marked as unique by the "UniqueItemFields" system preference (e.g. fill in the same barcode number for each item). - Click "Save." You should get an alert about duplicated values, and there should be an alert message on the page, "barcode 'XXX' is duplicated." - Edit one of the two items and change the barcode to one which already exists in your database. - Click "Save." An alert message should be shown on the page, "barcode 'XXX' already exists in the database." - Note: I was unable to find out how to trigger this error, "You can't receive any more items." It may be obsolete. TESTING TRANSLATABILITY - Update a translation, e.g. fr-FR: > cd misc/translator > perl translate update fr-FR - Open the corresponding .po file for JavaScript strings, e.g. misc/translator/po/fr-FR-messages-js.po - Locate strings pulled from koha-tmpl/intranet-tmpl/prog/js/additem.js for translation, e.g.: msgid "Add multiple items" msgstr "" - Edit the "msgstr" string however you want (it's just for testing). - Install the updated translation: > perl translate install fr-FR - Switch to your newly translated language in the staff client and repeat the test plan above. The translated strings should appear. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> |
||
---|---|---|
.. | ||
catalogue | ||
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 | ||
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 | ||
blocked-fines.inc | ||
blocking_errors.inc | ||
borrower_debarments.inc | ||
branch-selector.inc | ||
budget_planning.inc | ||
budgets-active-currency.inc | ||
budgets-admin-search.inc | ||
budgets-admin-toolbar.inc | ||
calendar.inc | ||
cat-menu.inc | ||
cat-search.inc | ||
cat-toolbar.inc | ||
catalog-strings.inc | ||
cataloging-search.inc | ||
cateditor-ui.inc | ||
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 | ||
desks-admin-search.inc | ||
doc-head-close-receipt.inc | ||
doc-head-close.inc | ||
doc-head-open.inc | ||
empty_line.inc | ||
facets.inc | ||
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-availability-table.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-date-format.inc | ||
js_includes.inc | ||
keyboard_shortcuts.inc | ||
labels-toolbar.inc | ||
langmenu-staff-top.inc | ||
last-borrower.inc | ||
letters-search.inc | ||
member-alt-address-style.inc | ||
member-alt-contact-style.inc | ||
member-display-address-style.inc | ||
member-display-alt-address-style.inc | ||
member-main-address-style.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-age.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 | ||
patronfields.inc | ||
patrons-admin-search.inc | ||
payments.inc | ||
permissions.inc | ||
popup-bottom.inc | ||
pos-menu.inc | ||
prefs-admin-search.inc | ||
prefs-menu.inc | ||
quotes-toolbar.inc | ||
quotes-upload-toolbar.inc | ||
relatives-issues-table.inc | ||
renew_results.inc | ||
renew_strings.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 |