Commit Graph

2749 Commits

Author SHA1 Message Date
Jonathan Druart 8a9fb4541b Update release notes for 21.11.26 release 2023-12-01 08:09:54 +01:00
Koha translators a1610d29c9 Bug 35174: Remove .po files from Koha 2023-11-22 09:43:20 +01:00
Danyon Sewell d8d5724c17 Fix translations for Koha 21.11.25
Signed-off-by: Danyon Sewell <danyonsewell@catalyst.net.nz>
2023-11-16 14:21:48 +13:00
Danyon Sewell 2169f4003e Revert "Fix translations for Koha 21.11.25"
This reverts commit 4945422d32.
2023-11-16 13:55:25 +13:00
Danyon Sewell a69e9b74c3 Revert "Revert "Update release notes for 21.11.25 release""
This reverts commit e7ac7ea2c3.
2023-11-16 13:54:10 +13:00
Danyon Sewell e7ac7ea2c3 Revert "Update release notes for 21.11.25 release"
This reverts commit 1f8cf02020.
reverting as additional changes were added to this commit that shouldn't
be there
2023-11-16 13:39:15 +13:00
Bernardo Gonzalez Kriegel e381372944 Bug 30476: Remove NORMARC translation files
This patch just deletes translation files left behind when removing
support for NORMARC.

To test:
1) Apply the patch
2) Verify there are no more *-marc-NORMARC.po files
   on misc/translator/po/ dir

No consequences are expected.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2023-11-08 15:37:11 +01:00
Bernardo Gonzalez Kriegel 3bb452eb73 Bug 30373: Enable translation of UNIMARC frameworks
This patch adds a new translation file, *-installer-UNIMARC.po

To test:
1. On top of all previous patches
2. Apply this patch
3. Create (or update) some language
Ej.
    misc/translation/translate create xx-YY

    verify new file misc/translation/po/xx-YY-installer-UNIMARC.po
4. Install new language
    misc/translation/translate install xx-YY

    verify new dirs:
        installer/data/mysql/xx-YY/marcflavour/unimarc/{mandatory,optional}

5. Repeat install procedure selecting xx-YY language and UNIMARC
   verify all frameworks are present

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2023-11-08 15:35:23 +01:00
danyonsewell 1f8cf02020 Update release notes for 21.11.25 release
Signed-off-by: danyonsewell <danyonsewell@catalyst.net.nz>
2023-11-01 04:14:30 +00:00
Danyon Sewell 4945422d32 Fix translations for Koha 21.11.25
Signed-off-by: Danyon Sewell <danyonsewell@catalyst.net.nz>
2023-11-01 16:35:12 +13:00
Koha translators 2b4922c886 Translation updates for Koha 21.11.25
Signed-off-by: Danyon Sewell <danyonsewell@catalyst.net.nz>
2023-11-01 15:45:47 +13:00
Jonathan Druart d53685463e Bug 35043: Use Locale::PO->quote
We have our own "quote_po" sub that is stating that Locale::PO::quote
is buggy because it does not deal with quoting new lines correctly.
However it seems that it is fixed now.

Ideally we could use Locale::PO::quote everywhere, but it does not
escape tab characters:
  $string =~ s/\\(?!t)/\\\\/g;           # \t is a tab

This means the following:
msgid "Tabulation (\\t)"
msgstr "Tabulation (\\t)"
become:
-msgid "Tabulation (\t)"
-msgstr "Tabulation (\t)"

And we are seeing the following on Weblate:
https://snipboard.io/BjQmDC.jpg

Note that Locale::PO has not been updated since 2014...

The real problem behind this is that we have 2 methods to quote strings.
At first glance it seems that Locale::PO::quote was not used before, but
with the introduction of the koha-i18n project we will have scripts that
will use Locale::PO->save_file_fromarray, which uses Locale::PO->quote
=> Those scripts will be used on the translation server for post
processing (security reason, marking potential XSS strings as fuzzy).

Test plan:
0. Do not apply the patch
1. gulp po:update --lang LANG # Replace LANG with your favorite language
   code
2. git commit -a -m"init PO files"
3. Apply this patch
4. Repeate 1.
5. git diff
   => The change is about the "Tabulation" and "New line" strings from
      tools/csv-profiles.tt
6. Translate them (replace the \t and \n with %s) and remove the fuzzy
   flag
7. install the template: cd misc/translator && perl translate install
   LANG
8. Enable the language, use it and go to the "Nouveau profil CSV" view
   => Notice that the \t and \n are correctly displayed.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
2023-11-01 02:32:38 +00:00
Jonathan Druart 711dcfbd0b Bug 34959: Sort PO files correctly
The PO files are not sorted when we update them which leads to
unnecessary changes that are commited: hard to see differences and
make git index grow superfluously.

Test plan:
0. Do not apply this patch
1. gulp po:update --lang es-ES
2. git commit -a -m"First PO update"
3. Run again the gulp update command
4. git diff
=> You have a lot of changes generated here, the po:update is not
idempotent.

5. Apply this patch
6. Run the gulp update command
7 git commit -a -m"PO update after 34959"
8. Run the gulp update command
9. git diff
=> No changes are generated

Note that this patch will all the entries by files, and per line
numbers.
It fixes a bug in some condition, where we add information/context about
the string. For instance search for "For the first occurrence" in the
file. Prior to this patch this was not correct, we didn't add info about
the first occurrence (but whichever in the list).

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: danyonsewell <danyonsewell@catalyst.net.nz>
2023-11-01 02:31:41 +00:00
Jonathan Druart d252bdcd65 Bug 34959: Remove unused sub
Nothing special here, this sub is not used and we can remove it.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2023-11-01 02:31:08 +00:00
danyonsewell cff66f740d Update release notes for 21.11.24 release
Signed-off-by: danyonsewell <danyonsewell@catalyst.net.nz>
2023-09-29 00:31:10 +00:00
Danyon Sewell f8887ebe42 Fix translations for Koha 21.11.24
Signed-off-by: Danyon Sewell <danyonsewell@catalyst.net.nz>
2023-09-29 13:21:15 +13:00
Koha translators 5d3be1b913 Translation updates for Koha 21.11.24 2023-09-29 13:21:15 +13:00
danyonsewell dfe2bfbcd1 Update release notes for 21.11.23 release
Signed-off-by: danyonsewell <danyonsewell@catalyst.net.nz>
2023-08-04 03:11:56 +00:00
danyonsewell 1f71daa902 Fix translations for Koha 21.11.23
Signed-off-by: danyonsewell <danyonsewell@catalyst.net.nz>
2023-08-04 02:24:35 +00:00
Koha translators 40a2ef70d7 Translation updates for Koha 21.11.23 2023-08-03 22:19:42 -03:00
Jonathan Druart 01bba47068
Bug 29486: Add check in search_for_data_inconsistencies.pl
If the MARC record does not contain the correct biblionumber of
biblioitemnumber, the script will display the following warning:

== Bibliographic records have MARCXML without biblionumber or biblioitemnumber ==
        * Biblionumber 4242 has '1' in 999$c
        * Biblionumber 4242 has biblioitemnumber '4242' but should be '1' in 999$d
=> The bibliographic records must have the biblionumber and biblioitemnumber in MARCXML

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-06-12 12:36:00 -03:00
Arthur Suzuki fd0c10a561
Update release notes for 21.11.21 release
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-05-25 15:52:29 +02:00
Arthur Suzuki 4d36cc3458
Fix translations for 21.11.21
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-05-25 14:33:36 +02:00
Koha translators d4def6f9e2 Translation updates for Koha 21.11.21 2023-05-25 06:27:37 -03:00
Fridolin Somers 194414625d
Bug 33603: Fix misc/maintenance/search_for_data_inconsistencies.pl when biblio.biblionumber on control field
Since bug 29486, misc/maintenance/search_for_data_inconsistencies.pl search for biblio.biblionumber in MARC record with $record->subfield().
This fails when field is a control field (< 10).
Idem for biblioitems.biblioitemnumber

Test plan :
1.0) On a UNIMARC database (biblio.biblionumber is on 001)
1.1) Run misc/maintenance/search_for_data_inconsistencies.pl
=> Without patch you get error : Control fields (generally, just tags below 010) do not have subfields, use data()
=> With patch no error
2.0) On a MARC21 database (biblio.biblionumber is on 999c)
2.1) Run misc/maintenance/search_for_data_inconsistencies.pl
=> Check you see no error

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit cc1695ba96)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 9971011fb9)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 6254b429b6)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-05-23 20:43:31 +02:00
Arthur Suzuki fa0dc07b26
Update release notes for 21.11.20 release
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-05-11 15:06:39 +02:00
Arthur Suzuki 70317e2f90
Fix translations for Koha 21.11.20
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-05-11 14:57:30 +02:00
Koha translators 3f7716a9ba Translation updates for Koha 21.11.20 2023-05-04 03:36:27 -03:00
Fridolin Somers 0101bbd4cc Bug 33285: (QA follow-up) add POD and fix some code style
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 6221538b6d)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
(cherry picked from commit 4a1c87fe36)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit be2a56a4b7)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-05-03 21:14:49 +02:00
Nick Clemens d209b1a788 Bug 33285: Allow specifying the delimeter for runreport.pl
To test:
1 - Write a report in koha
2 - perl misc/cronjobs/runreport.pl --format csv 1 (or correct report number)
3 - Note you get commas
4 - Apply patch
5 - Repeat #2 - no change
6 - perl misc/cronjobs/runreport.pl --format csv --separator "|" 1
7 - Now it is pipe delimited
8 - perl misc/cronjobs/runreport.pl --format tsv --separator "|" 1
9 - Error is reported, you cannot set separator unless csv
10 - Try other separators

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit bad0d52245)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
(cherry picked from commit 94077abab8)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit dc7fb83485)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-05-03 21:14:49 +02:00
Tomas Cohen Arazi 92ad549936 Bug 33341: Address some perlcritic errors in 5.36
Some old-style code is making our tests fail when run in Debian Testing.

This patch addresses this.

To test:
1. Launch bookworm KTD:
   $ KOHA_IMAGE=master-bookworm ktd up -d
2. Run:
   $ ktd --shell
  k$ prove t/00-testcritic.t
=> FAIL: It fails!
3. Apply the patch
4. Repeat 2
=> SUCCESS: Tests now pass!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 10d12f999f)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
(cherry picked from commit c1c5420afa)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 548a3325ba)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-05-03 21:03:35 +02:00
Arthur Suzuki cc447be32d
Update release notes for 21.11.19 release
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-04-03 13:53:06 +02:00
Arthur Suzuki 968a026972
Fix translation errors for 21.11.19
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-04-03 11:56:43 +02:00
Koha translators 1ec3563cad Translation updates for Koha 21.11.19 2023-03-30 06:13:05 -03:00
Fridolin Somers 0f5208ebe1
Bug 32678: Add new line in authorized values tests in search_for_data_inconsistencies.pl
In search_for_data_inconsistencies.pl, the test for authorized values is a list in one line :
	* The Framework *VR* is using the authorised value's category *LOC*, but the following items.location do not have a value defined ({itemnumber => value }):
 {94 => AV} {95 => AV} {96 => AV} {97 => AV} {98 => AV} {99 => AV} {100 => AV} {101 => AV} {102 => AV} {103 => AV}

It would be more clear with new lines, especially for scripts (grep, awk ...) :
	* The Framework *VR* is using the authorised value's category *LOC*, but the following items.location do not have a value defined ({itemnumber => value }):
 {94 => AV}
 {95 => AV}
 {96 => AV}
 {97 => AV}
 {98 => AV}
 {99 => AV}
 {100 => AV}
 {101 => AV}
 {102 => AV}
 {103 => AV}

Test plan :
1) In koha-testing-docker
2) Delete in authorized values LOC the value AV
3) Run misc/maintenance/search_for_data_inconsistencies.pl
=> You see the new line in result

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 45323886ae)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
(cherry picked from commit 1453472e93)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 519b4f2b59)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-03-29 14:53:57 +02:00
Arthur Suzuki 7ad1b4e57d Fix release notes 21.11.18
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-03-10 12:07:08 +01:00
Arthur Suzuki bb75775081
Update release notes for 21.11.18 release
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-03-06 12:18:29 +01:00
Arthur Suzuki 067bebcda1
Update release notes for 21.11.18 release
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-03-06 12:14:13 +01:00
Arthur Suzuki d2bc6f537b
Fix translations for Koha 21.11.18
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-03-06 11:26:20 +01:00
Koha translators a70eac989f Translation updates for Koha 21.11.18 2023-03-06 05:10:33 -03:00
Jonathan Druart 0d73f1b9a2 Bug 32356: Install installer translated files on update
If the installer files exist for a given language, the translate script
won't update it.
We should get a confirmation from Bernardo (author of bug 24262), but I
don't understand why it could be needed (side-effects?)

Test plan:
Installer several times the same language, drop the DB and run the
installer+onboarding process.
Check files installed by the installer (yaml for notice templates,
biblio frameworks) have inserted the data properly in DB.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit aa3444505f)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
(cherry picked from commit 27d128c3ab)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 1c19bb0532)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-02-17 14:08:10 +01:00
Kyle Hall 36772abfbe Bug 32573: Send ACK message to RabbitMQ before handling the job
Splitting off this functionality from bug 32558. This is the comment that started this discussion: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32558#c15

From the O'Reilly book Mobile and Web Messaging:

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit b3c5bd02e1)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
(cherry picked from commit 0f7b8008f7)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 2fd293fa6e)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-02-17 13:08:30 +01:00
Kyle Hall 32469eb7e0 Bug 32656: Script delete_records_via_leader.pl no longer deletes items
Bug 29788 inadvertantly replaced a call to safe_delete() with safe_to_delete()
such that any time the script should delete an item it only checks to see if
the item is delectable, after which deletion of the record fails because the
items were not deleted.

Test Plan:
1) Mark a record with items to be deleted via the record leader
2) Run delete_records_via_leader.pl -i -b -v
3) Note the script says it is deleting the items but then the record
   deletion fails. Note the items remain in the items table of the
   database.
4) Apply this patch
5) Repeat step 2
6) This time the items and record should be deleted!

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 790f00781a)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
(cherry picked from commit 03a9b13958)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 0f430ce9a8)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-02-17 13:08:29 +01:00
Arthur Suzuki e350767f6b
Update release notes for 21.11.16 release
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-01-27 14:44:54 +01:00
Arthur Suzuki 2d46616524
Fix translations for Koha 21.11.16
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-01-27 11:06:33 +01:00
Koha translators 2e7b38917a
Translation updates for Koha 21.11.16 2023-01-27 11:06:33 +01:00
David Cook b23df4c8c0
Bug 32481: Limit prefetch size for background jobs worker
This patch adds a prefetch size of 1 to the background jobs worker,
so that it fetches 1 message at a time. Without this change,
the RabbitMQ connection timeout when too many messages for slow tasks
are fetched at the same time.

To test:
0. Apply patch
1. Run background worker
2. Rapidly enqueue multiple jobs that in total will take longer
than 30 minutes to process

Bug 32481: Use correct prefetch syntax for RabbitMQ

According to https://www.rabbitmq.com/stomp.html the header to
use for managing the prefetch is "prefetch-count".

You can verify the number of delivered and unacknowledged messages
on a channel on a connection by running "rabbitmqctl list_channels"
on the RabbitMQ host. This will tell you how many messages have been
delivered and are awaiting acknowledgement

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit cd89c38321)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
(cherry picked from commit 6238ce057e)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 0b206ff709)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-01-26 14:31:03 +01:00
Arthur Suzuki 6fd0353f93 Update release notes for 21.11.15 release
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2022-12-23 13:09:43 +01:00
Koha translators f9db6902bf Translation updates for Koha 21.11.15 2022-12-23 13:01:13 +01:00
Marcel de Rooy f5c651de50 Bug 27265: (QA follow-up) Typo on L99 cron script
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit ae986b992d)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 2438b04076)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2022-12-22 19:39:14 +01:00