Koha/koha-tmpl/intranet-tmpl/prog/en/includes
Owen Leonard 9d056d0364 Bug 25317: Move translatable strings out of additem.js.inc
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>
2020-09-29 14:28:18 +02:00
..
catalogue Bug 26323: Retrieve the correct values for LOST, DAMAGED, LOC and CCODE 2020-09-28 16:09:10 +02:00
csv_headers Bug 25867: Label "Current location" as "Current library" and "Permanent location" as "Home library" 2020-08-18 15:48:37 +02:00
mana
modals Bug 25728: Create AV when adding a new item 2020-08-24 11:19:03 +02:00
str
virtualshelves/merge
about-team.inc
accounts.inc Bug 26418: Fix translatability of REFUND credit type 2020-09-28 15:07:27 +02:00
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 Bug 25919: Only show Desks in admin navigation when UseCirculationDesks is used 2020-08-07 16:54:40 +02:00
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 Bug 10921: Prevent an order from a closed basket to be edited 2020-09-18 11:49:29 +02:00
borrower_debarments.inc Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
branch-selector.inc
budget_planning.inc
budgets-active-currency.inc Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
budgets-admin-search.inc
budgets-admin-toolbar.inc
calendar.inc
cat-menu.inc
cat-search.inc Bug 26249: Set keep_text class correctly in cat-search.inc 2020-09-28 16:09:11 +02:00
cat-toolbar.inc Bug 26139: Centralize code for "Place hold" button (detail) 2020-08-25 11:31:49 +02:00
catalog-strings.inc Bug 26289: Add missing variable definition to templates 2020-08-31 16:10:25 +02:00
cataloging-search.inc
cateditor-ui.inc Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
cateditor-widgets-marc21.inc
category-out-of-age-limit.inc
chart.inc
checkin-search.inc
checkouts-table-footer.inc
checkouts-table.inc Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
circ-menu.inc Bug 15400: (follow-up) Remove unnecessary class 2020-06-29 12:37:02 +02:00
circ-nav.inc Bug 24201: (QA follow-up) IndependentBranches 2020-08-07 16:54:40 +02:00
circ-patron-search-results.inc Bug 15400: Display date of birth and age more consistantly 2020-06-29 12:37:02 +02:00
circ-search.inc
cities-admin-search.inc
clubs-table.inc
columns_settings.inc Bug 26234: Teach our KohaTable constructor the specific th classes 2020-08-19 08:24:04 +02:00
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 Bug 26323: (QA follow-up) Fix syntax errors 2020-09-28 16:09:10 +02:00
filter-orders.inc
form-blocks.inc
format_price.inc
greybox.inc
guided-reports-view.inc
header.inc Bug 24201: (QA follow-up) Make logic consistent 2020-08-07 16:54:40 +02:00
holds_table.inc Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
home-search.inc
html_helpers.inc Bug 24201: (QA follow-up) Fix desks select box selected attribute 2020-08-07 16:54:40 +02:00
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 Bug 24201: (follow-up) add desk choice with library choice 2020-08-07 16:54:40 +02:00
intranetstylesheet.inc
js-date-format.inc
js_includes.inc Bug 24201: (QA follow-up) Remove setdesk variable and add desk selection script only on pages in need 2020-08-07 16:54:40 +02:00
keyboard_shortcuts.inc
labels-toolbar.inc
langmenu-staff-top.inc Bug 20168: Update of the OPAC bootstrap template to bootstrap v4 2020-09-09 14:13:03 +02:00
last-borrower.inc
letters-search.inc
member-alt-address-style.inc Bug 26556: (bug 25070 follow-up) Fix typo data_addressfield in address includes 2020-09-28 16:09:11 +02:00
member-alt-contact-style.inc
member-display-address-style.inc Bug 22087: Add missing filters 2020-07-30 17:44:27 +02:00
member-display-alt-address-style.inc
member-main-address-style.inc Bug 26556: (bug 25070 follow-up) Fix typo data_addressfield in address includes 2020-09-28 16:09:11 +02:00
members-toolbar.inc Bug 25765: Replace LoginBranchname and LoginBranchcode with use of Branches template plugin 2020-07-23 11:17:27 +02:00
merge-record-strings.inc
merge-record.inc
messaging-preference-form.inc
noadd-warnings.inc
onboarding_messages.inc
page-numbers.inc
password_check.inc Bug 23816: Fix patron edition 2020-09-10 09:57:53 +02:00
patron-age.inc Bug 15400: (follow-up) Remove line break 2020-06-29 12:37:02 +02:00
patron-article-requests.inc Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
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 Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
popup-bottom.inc
pos-menu.inc
prefs-admin-search.inc
prefs-menu.inc Bug 25630: (follow-up) Fix capitalization and terminology for system preferences 2020-09-02 12:05:33 +02:00
quotes-toolbar.inc
quotes-upload-toolbar.inc
relatives-issues-table.inc
renew_results.inc
renew_strings.inc Bug 25717: Improve automatic renewal error messages 2020-07-20 17:45:31 +02:00
reports-menu.inc
reports-toolbar.inc Bug 26165: Fix duplication of large saved reports 2020-08-12 11:46:30 +02:00
resort_form.inc
rotating-collections-toolbar.inc
search_indexes.inc
select2.inc Bug 25727: (follow-up) Some style updates, JS i18n 2020-08-24 11:19:03 +02:00
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 Bug 26323: Retrieve the correct values for LOST, DAMAGED, LOC and CCODE 2020-09-28 16:09:10 +02:00
wysiwyg-systempreferences.inc Bug 25862: Prevent TinyMCE to mangle local url links 2020-07-20 14:05:21 +02:00
xslt-handler.inc
z3950-admin-search.inc
z3950_search.inc