Go to file
Nick Clemens 3f2af68a05 Bug 37790: Add skip indexing and holds queue options and verbosity to update localuse script
This patch skips record indexing and real time holds queue updates when updating the localuse field
from statistics. A note is added to the script that the user should reindex if the localuse field is mapped.

Additionally a verbose option is added to the script, and doubled use of GetOptions is removed.

Lastly, a check is added to confirm the items value is being changed before the value is stored.

To test:
 1 - Enable the real time holds queue
 2 - Enable Elasticsearch
 3 - perl misc/maintenance/update_localuse_from_statistics.pl --confirm
 4 - Note all items are touched and reported
 5 - Check the background jobs table - there are many jobs generated
 6 - Apply patch
 7 - perl misc/maintenance/update_localuse_from_statistics.pl --confirm
 8 - Note 0 items are reported updated, no new background jobs
 9 - perl misc/maintenance/update_localuse_from_statistics.pl --confirm --verbose
10 - No items reported
11 - Update some items in the DB
     UPDATE items SET localuse = 99 WHERE itemnumber LIKE '%9';
12 - perl misc/maintenance/update_localuse_from_statistics.pl --confirm
13 - Only the number of items changed above reported
14 - UPDATE items SET localuse = 99 WHERE itemnumber LIKE '%9';
15 - perl misc/maintenance/update_localuse_from_statistics.pl --confirm --verbose
16 - Each item changed reported, and the amounts, and the total items updated.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 1ba5e028cb)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2024-12-05 22:41:21 +00:00
C4 Bug 38344: Fix typo - space before exclamation mark in "Thank you !" 2024-12-05 22:38:57 +00:00
Koha Bug 33348: (follow-up) Fix if no 008 defined 2024-12-05 22:12:00 +00:00
acqui Bug 37265: Consideration of UniqueItemFields setting when receiving items in an order 2024-11-18 22:39:24 +00:00
admin Bug 37954: Fix barcode column name 2024-11-18 23:16:08 +00:00
api Bug 38390: Add subscriptions+count to vendors embed 2024-12-05 22:19:28 +00:00
authorities Bug 38200: Remove dead code to delete authorities in authorities/authorities.pl 2024-11-20 18:34:52 +00:00
basket
…
bin
…
bookings
…
catalogue Bug 38000: Update imports 2024-11-18 22:49:20 +00:00
cataloguing Bug 38030: (QA follow-up) Move csrf_token to POST body from URL 2024-11-21 14:34:53 +00:00
circ Bug 37865: Fix uninitialized value $op warns 2024-12-05 22:16:43 +00:00
clubs
…
course_reserves Bug 28762: Use Koha::Course in course-details controller 2024-08-28 20:20:33 +00:00
debian Bug 38249: Fix typo in koha-list --help 2024-11-20 18:42:39 +00:00
docs Bug 37003: (follow-up) Amend 22.11 RMaint 2024-07-18 19:44:01 +00:00
erm
…
errors Bug 37741: Do not send cookie back from error pages 2024-11-15 20:31:16 +00:00
etc Bug 37582: Add ability to for SIP to convert control and separator characters to spaces 2024-11-22 21:14:41 +00:00
ill Bug 35106: CSRF fix 2024-04-29 18:53:09 +02:00
installer Bug 37856: DBRev 24.05.05.007 2024-12-05 19:07:26 +00:00
koha-tmpl Bug 38463: Unnecessary CSRF token in OPAC authority search 2024-12-05 22:40:18 +00:00
labels Bug 37206: Removing an item from a label batch should be a CSRF-protected POST operation 2024-11-18 17:41:08 +00:00
lib Bug 35681: Use ::Bootstrap version of FromANSI 2024-05-02 16:47:39 +02:00
members Bug 37365: (QA follow-up) Add error checking around AddFile call 2024-12-05 21:49:10 +00:00
misc Bug 37790: Add skip indexing and holds queue options and verbosity to update localuse script 2024-12-05 22:41:21 +00:00
offline_circ
…
opac Bug 35126: Remove onload from opac-addbybiblionumber.pl 2024-12-05 21:59:30 +00:00
patron_lists
…
patroncards Bug 37614: Printing patron cards from patron lists should be a GET 2024-09-11 16:37:03 +00:00
plugins
…
pos Bug 33478: Apply formatting to RECEIPT 2024-04-26 20:15:44 +02:00
preservation Bug 38089: (follow-up) More fixes for errors in original submission 2024-11-18 22:53:55 +00:00
recalls Bug 38089: (follow-up) More fixes for errors in original submission 2024-11-18 22:53:55 +00:00
reports Bug 37595: Double HTML escaped ampersand in pagination bar 2024-11-18 18:44:02 +00:00
reserve Bug 37587: (QA follow-up) Tidy reserve/placerequest.pl 2024-10-09 19:34:22 +00:00
reviews Bug 37074: Comment approval and un-approval should be CSRF-protected 2024-07-25 14:08:54 +00:00
rotating_collections
…
serials Bug 33339: Prevent Formula Injection (CSV Injection) in CSV files 2024-11-07 23:02:54 +00:00
services
…
skel
…
suggestion Bug 37246: Use the same dropdown for filtering and editing/adding budgets 2024-11-18 17:52:00 +00:00
svc Bug 37056: Mount a new intranet_svc api to avoid redirects 2024-11-18 17:42:23 +00:00
t Bug 38322: (QA follow-up) Fix spelling 2024-12-05 22:26:58 +00:00
tags
…
tools Bug 38266: (bug 21083 follow-up) Increment after comparison 2024-12-05 21:12:08 +00:00
virtualshelves Bug 37285: (QA follow-up) Perl Tidy 2024-08-29 15:06:09 +00:00
xt Bug 37490: Add a test to detect when yarn.lock is not updated 2024-11-15 20:43:22 +00:00
.editorconfig
…
.eslintrc.json
…
.gitignore Bug 36546: (QA follow-up) Add bundle spec to .gitignore 2024-04-30 15:55:37 -03:00
.htaccess
…
.mailmap Bug 36943: (follow-up) 24.05.00 - Update .mailmap 2024-05-24 15:36:40 +02:00
.perlcriticrc
…
.perltidyrc
…
.prettierrc.js
…
.proverc.dist
…
.stylelintrc.json
…
INSTALL
…
Koha.pm Bug 37856: DBRev 24.05.05.007 2024-12-05 19:07:26 +00:00
LICENSE
…
MANIFEST.SKIP
…
Makefile.PL Bug 37824: remove references to non-existent files in Makefile.PL 2024-12-05 18:54:16 +00:00
README
…
README.md
…
README.robots
…
about.pl Bug 37509: Check Elasticsearch info for both 'about' and 'sysinfo' tabs 2024-09-06 16:52:55 +00:00
app.psgi Bug 36149: Add userenv middleware to app.psgi 2024-05-14 15:04:37 -03:00
build-resources.PL
…
changelanguage.pl
…
cpanfile Bug 37478: (follow-up) Add MARC::Lint to cpanfile 2024-12-05 22:06:17 +00:00
cypress.config.ts
…
fix-perl-path.PL
…
gulpfile.js Bug 36730: (Bug 35428 follow-up) po files (sometimes) fail to update 2024-05-07 15:53:44 +02:00
help.pl
…
kohaversion.pl
…
mainpage.pl Bug 30493: (QA follow-up) Fix for the only_my_library case as well 2024-07-18 19:31:50 +00:00
package.json Bug 37824: Replace webpack with rspack for fun and profit 2024-12-05 18:54:16 +00:00
rewrite-config.PL
…
rspack.config.js Bug 37824: (QA follow-up) Fix improper handling of jQuery and DataTables libraries by marking them as externals 2024-12-05 18:54:16 +00:00
tsconfig.json
…
webpack.config.js
…
yarn.lock Bug 37824: Replace webpack with rspack for fun and profit 2024-12-05 18:54:16 +00:00

README.md

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo