Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Owen Leonard 4a2befa3c7 Bug 26257: Move translatable strings out of subscription-add.tt and into subscription-add.js
This patch removes the definition of translatable strings out of
templates and into the corresponding JavaScript file, using the new JS
i81n function.

To test:

- Apply the patch and go to Serials -> New subscription
- Click "Next" without filling out any fields. You should get two
  confirmations, "If you wish to claim late or missing issues you must
  link this subscription to a vendor. Click OK to ignore or Cancel to
  return and enter a vendor" and "You must choose or create a
  bibliographic record."
- Manually enter a vendor number which doesn't exist and click "Next."
  Error: "The vendor does not exist."
- Manually enter a record number which doesn't exist and click "Next."
  Error: "Bibliographic record does not exist!"
- Select a valid vendor and bibliographic record and proceed to the next
  page.
- Click "Test prediction pattern" without filling in any fields. Error:
  "Cannot test prediction pattern for the following reason(s): Frequency
  is not defined. - First publication date is not defined"
- Click "Save subscription" without filling in any information. Error:
  "You must choose a first publication date."
- Fill in a date and click "Save subscription." Error: "You must choose
  a subscription length or an end date."
- Enter a frequency and subscription start date and click "Save
  subscription." Error: "Please click on 'Test prediction pattern'
  before saving subscription."
- Click "Show advanced pattern" and then "Save subscription." Error:
  "You have modified the advanced prediction pattern. Please save your
  work or cancel modifications."

Testing numbering patterns:

- There are several strings related to setting and editing numbering
  patterns but I don't think they can be tested live while Bug 28012 is
  unfixed.

Testing Mana integration:

- To test Mana integration you must have Mana enabled, and a
  bibliographic record in your catalog which has an ISSN
  matching a record in Mana. You can go to "Search on Mana"
  from the Serials sidebar menu to locate a working record.
- Add a subscription using the bibliographic record which will match a
  record in Mana. When you click "Next" you should see a message at the
  top of the page saying, "Searching for subscription in Mana Knowledge
  Base"
- After a moment this message should be replaced with "Subscription
  found on Mana Knowledge Base: Show Mana results"
- Clicking the "Show Mana results" should trigger a modal window with
  the heading "Results from Mana Knowledge Base."

- Test the subscription add process using a bibliographic record which
  doesn't match anything in Mana. The message at the top of the page
  should read, "No subscription found on Mana Knowledge Base"

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/subscription-add.js for translation,
  e.g.:

  msgid "Next issue publication date is not defined"
  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: Fridolin Somers <fridolin.somers@biblibre.com>
2022-02-14 21:41:38 -10:00
..
acqui Bug 29859: Fix currencies display 2022-02-11 09:11:39 -10:00
admin Bug 29844: Fix selenium/administration_tasks.t 2022-02-11 09:11:39 -10:00
authorities Bug 28993: Switch magnifying glass in staff detail pages to FA icon 2022-02-09 22:01:37 -10:00
basket Bug 26703: authorities, basket and batch folders 2021-04-21 11:16:33 +02:00
batch Bug 29244: Add dialog class where missing in print-notices.tt 2021-10-21 12:24:04 +02:00
catalogue Bug 28993: Switch magnifying glass in staff detail pages to FA icon 2022-02-09 22:01:37 -10:00
cataloguing Bug 26102: Prevent XSS when To.json is used: unimarc_field_4XX.tt 2022-02-02 21:05:29 -10:00
circ Bug 29735: Fix flatpickr init from circulation.tt 2022-02-09 15:36:24 -10:00
clubs Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
common Bug 28350: Fix borrowernotes sorting for patron search 2021-06-14 17:35:20 +02:00
course_reserves Bug 28898: (follow-up) Add context to some more occurrences of Term in course reserves 2021-09-21 20:22:57 +02:00
errors Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
ill Bug 29514: Remove extraneous HTML entity from breadcrumbs 2021-12-01 21:38:12 -10:00
installer Bug 27823: List upcoming steps during installation process 2021-11-03 15:40:52 +01:00
labels Bug 29240: Rename start_for with date_to 2021-10-19 14:08:09 +02:00
mana
members Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
offline_circ Bug 26703: offline_circ and onboarding folders 2021-04-21 11:16:34 +02:00
onboarding Bug 28982: Use Flatpickr on onboarding pages 2021-11-03 15:40:53 +01:00
patron_lists Bug 16446: (follow-up) Fix translation and adjust radio buttons 2021-10-21 12:24:04 +02:00
patroncards Bug 24406: Wrap patron category type code in a span on patron search results 2021-11-03 15:40:52 +01:00
plugins Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
pos Bug 27801: Fix javascript price calculations 2021-12-15 12:15:00 -10:00
reports Bug 29767: (QA follow-up) Make singular/plural forms consistent 2022-02-09 22:01:37 -10:00
reserve Bug 29058: Don't display 'Always show holds' at the bottom of the patron list 2022-01-31 21:55:39 -10:00
reviews Bug 26703: reserve, reviews & rotating_collections folders 2021-04-21 11:16:35 +02:00
rotating_collections Bug 26703: reserve, reviews & rotating_collections folders 2021-04-21 11:16:35 +02:00
serials Bug 26257: Move translatable strings out of subscription-add.tt and into subscription-add.js 2022-02-14 21:41:38 -10:00
services Bug 29496: (bug 27526 follow-up) Fix item form validation 2021-11-19 15:07:10 +01:00
suggestion Bug 24370: (QA follow-up) Make new suggestions default to the library you re viewing 2021-11-02 14:57:04 +01:00
tags Bug 29240: Rename start_for with date_to 2021-10-19 14:08:09 +02:00
test
tools Bug 29869: Teach log viewer about FILL 2022-02-10 14:44:22 -10:00
virtualshelves Bug 29542: Prevent access to private list to non authorized users 2022-02-02 21:05:29 -10:00
about.tt Bug 29123: Add Dataly Tech to About page 2021-11-05 12:17:08 +01:00
auth.tt Bug 29487: Set autocomplete off for userid/password fields at login 2021-12-01 21:57:36 -10:00
intranet-main.tt Bug 29571: Display all pending suggestions even if none from logged in library 2022-01-03 20:58:36 -10:00