Commit Graph

3467 Commits

Author SHA1 Message Date
Hayley Mapley 55f94a201e Bug 24846: DBRev 18.11.15.001
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2020-03-27 11:25:34 +13:00
Jonathan Druart 24b4fdebf0 Bug 24846: Add new permission batch_extend_due_dates
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit bb6c483a24)

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2020-03-27 10:27:47 +13:00
Hayley Mapley 1ec18529f8 Increment version for 18.11.15 release
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2020-03-24 09:02:19 +13:00
Hayley Mapley aa15cdfd79 Increment version for 18.11.14 release
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2020-02-21 13:36:50 +13:00
Hayley Mapley aa6eaa2ecb Bug 22868: DBRev 18.11.13.001 (fix)
Previous DBRev contained wrong version number in updatedatabase.pl.

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2020-02-18 14:11:52 +13:00
Hayley Mapley cea8fccd11 Bug 22868: DBRev 18.11.14.001
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2020-02-18 10:19:46 +13:00
Jonathan Druart 3f0b11ad41 Bug 22868: Move suggestions_manage subperm out of acquisition perm
Bug 11911 replaced the permission of suggestions.pl (create a purchase
suggestion) from catalogue => 1 to acquisition => 'suggestions_manage'.
However we have a lot of acquisition scripts that have lax permissions
(acquisition => '*' which means any sub permissions of acquisition is
enough).

That causes problem when a circulation staff can create purchase
suggestions but not access acquisition information.

One solution is to move the suggestions_manage subpermission out of the
acquisition permission and create a new suggestion permission.

Test plan:
0. Setup
* Create a patron with several permission (and full acquisition
permission)
* Create another patron with several permission, and suggestions_manage
permission
* Create another patron without the suggestions_manage permission
1. Apply the patch and execute the update database entry
2. Note that the third patron you create still does not have
suggestions_manage
3. Confirm that you can create a purchase suggestion if you have
suggestions_manage, but cannot access acquisition pages if you do not
have any subpermissions of the acquisition permission

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 462db68024)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit f0c60dfe6f)

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2020-02-18 10:03:31 +13:00
Hayley Mapley fef7bff13d Increment version for 18.11.13 release
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2020-01-21 12:25:07 +13:00
Hayley Mapley b0fa10596a Increment version for 18.11.12 release
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2019-12-20 11:57:39 +13:00
Lucas Gass f1196b9f52 Increment version for 18.11.11 release
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-11-22 17:42:29 +00:00
Caroline Cyr La Rose 4604e34a46 Bug 23353: ACQ framework makes fr-CA web installer explode
This patch removes the standalone ACQ framework SQL file in the fr-CA
directory and adds the ACQ framework creation SQL in the default
framework file, as it is in other languages.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 811bee9bce)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 93b8ea9685)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-10-16 23:48:59 +00:00
Lucas Gass 264c68b8b0 Increment version for 18.11.10 release
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-09-21 18:39:28 +00:00
Lucas Gass 721476029a Bug 23309: (RM follow-up) delete bug_23309.perl
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-09-21 17:43:55 +00:00
Jonathan Druart e2d030efe7 Bug 23265: (bug 12063 follow-up) Remove Koha::Holds from updatedatabase
Test plan:
Have a DB that fail the 16.12.00.032 update, then apply this patch and
verify the expiration dates

RM: Please inforce this rule, no use of Koha:: in updatedatabase!

Signed-off-by: Victor Grousset <victor.grousset@biblibre.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 18d8d3b38b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 8458626205)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-09-21 13:44:38 +00:00
Lucas Gass 105e3c9ce0 Bug 23309: DBRev 18.11.09.002
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-09-17 20:21:28 +00:00
Jonathan Druart d9d4b54065 Bug 23309: Update DB
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 0a0a8d874d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit aaa522c685)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-09-17 20:16:31 +00:00
Lucas Gass bb9dd99b27 Bug 22524: DBRev 18.11.09.001
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-08-31 03:47:42 +00:00
Ere Maijala bc69881893 Bug 22524: Fix date/time-last-modified search with Elasticsearch
Avoid using slash in the field name since it would need to be escaped. Fix conversion of dtlm and any existing mapping.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 5d27fb71cb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit ab0de52ab2)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-08-31 03:37:55 +00:00
Lucas Gass 848aff4a5a Increment version for 18.11.09 release
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-08-28 02:22:21 +00:00
Lucas Gass 36d20d4600 Bug 23151: (RM follow-up) Delete atomicupdate file
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-07-31 18:51:59 +00:00
Lucas Gass a71bd8c195 Increment version for 18.11.08 release
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-07-23 16:56:03 +00:00
Lucas Gass 8a278db2ed Bug 23151: DBRev 18.11.07.001
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-07-23 00:06:45 +00:00
Marcel de Rooy 008573fb60 Bug 23151: (QA follow-up) Remove debug leftover
Removes: Running... Running... Ran

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 f9d39508d6)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 7c98aa2c77)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-07-22 23:59:08 +00:00
Kyle M Hall 0e29ba5c83 Bug 23151: (QA follow-up) Fix atomic update
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.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 4f90d7ecc7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 8dd0f86cd5)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-07-22 23:58:52 +00:00
Mark Tompsett 0c092b854e Bug 23151: Modifiy database structure
This modifies a fresh install structure, and provides
an atomic update.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.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 d102165f8d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit c1e8c57e58)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-07-22 23:57:36 +00:00
Lucas Gass e95ab471b3 RMaint Follow-up: Fix typo in updatedatabase.pl
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-07-12 16:48:54 +00:00
Lucas Gass dc4d92e1de Increment version for 18.11.07 release
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-06-27 17:57:25 +00:00
Lucas Gass f85b8df1eb Bug 22770: DBRev 18.11.06.002
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-06-26 16:49:43 +00:00
Katrin Fischer d53330a64d Bug 22770: Fix typo in German language description of el
Fixes:
Griechisch (Moern [1453- ] ==> Griechisch (Modern 1453-)

To test:
- Install de-DE language and activate it
- Check the language pull down on advanced search has the typo
- Apply patch and run database update
- Check advanced search again
- Verify the description now shows correctly

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit eba980b351)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 9aac2c9051)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-06-26 16:41:43 +00:00
Lucas Gass 8001aae503 Bug 10215: DBRev 18.11.06.001
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-06-12 22:37:43 +00:00
Martin Renvoize 52e3d51c8b Bug 10215: (follow-up) Correct existing data
This patch adds the correction of data ('' => NULL) during the DB
update.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 9713e13893)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 648587b19c)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-06-12 22:21:29 +00:00
Kyle M Hall 0caaa8e884 Bug 10215: Increase the size of opacnote and librariannote for table subscriptionhistory
We have librarians that are regularly hitting the maximum number of
characters for the note fields in subscription history. They would like
to be able to store at least 1000 characters here. Converting the
varchar(150) to text should do it.

Test Plan:
1) Apply this patch
2) Run updatedatabase.pl
3) Add public and private notes to a subscription history entry
   where each note is greater than 150 characters.
4) Save and view the notes, the notes should not be truncated.

Rescued-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 8592474c3f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit c42c44e932)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-06-12 22:21:05 +00:00
Jonathan Druart 76b797bb5f Bug 22919: Fix insert of authorities_normal_marc21.sql with strict SQL modes
If strict SQL modes are set, the insert of authorities_normal_marc21.sql
will fail.

Test plan:
DELETE FROM auth_subfield_structure;
DELETE FROM auth_tag_structure;
DELETE FROM auth_types;
SET sql_mode = 'ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
source /home/vagrant/kohaclone/installer/data/mysql/en/marcflavour/marc21/mandatory/authorities_normal_marc21.sql

You should not see any errors.
Without this patch you see:
ERROR 1366 (22007) at line 280 in file:
'/home/vagrant/kohaclone/installer/data/mysql/en/marcflavour/marc21/mandatory/authorities_normal_marc21.sql':
Incorrect integer value: ' for column 'linkid' at row 148
'

Signed-off-by: nabila <lovenabila@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 703ec1e2f2)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit e69744172a)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-06-12 22:17:11 +00:00
Martin Renvoize 52c8912908
Increment version for 18.11.06 release
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-05-31 07:51:09 +01:00
Katrin Fischer b2e2b918b0
Bug 21651: (QA follow-up) Remove remaining obsolete file from German web installer
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 71018d4cca)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-05-30 20:24:18 +01:00
Jonathan Druart 80b2104cf2
Bug 21651: Remove language specific sql file for notice templates related tables
This patch removes the 3 following files for the different languages
- message_transport_types.sql
- sample_notices_message_attributes.sql
- sample_notices_message_transports.sql
They were all identical, only one version is kept in installer/data/mysql/mandatory

.txt files are removed as well

They inserted data for
- message_transport_types
- message_attributes
- message_transport_type

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 1114ba929f)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-05-30 20:22:44 +01:00
Nick Clemens 41971fd6da
Bug 22899: DBRev 18.11.05.001
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit b90bbc1259)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-05-24 14:40:40 +01:00
Martin Renvoize 07738ea63b
Bug 22899: (QA follow-up) Ensure constraint is created
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 49a6aac8b6)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-05-24 14:35:03 +01:00
Nick Clemens 551fc90f2e
Bug 22899: Database update
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit af1067f3d4)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-05-24 14:29:58 +01:00
Nick Clemens cd147f78d7
Bug 22782: DBIC update for SocialData
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 5ecbe281af)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-05-17 14:29:25 +01:00
Martin Renvoize a056ad12d1
Increment version for 18.11.05 release
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-05-02 14:26:26 +01:00
Nick Clemens 5b8ed9cc0f
Bug 22339: DBRev 18.11.04.004
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit ed6228de83)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-04-26 16:22:37 +01:00
Ere Maijala b1290c0602
Bug 22339: Fix search field mappings of MARC fixed fields
Fixes handling of /0 selector in addition to several fixed field positions. Note that ff7-01-02 is in fact 00-01 in Zebra and that has been replicated here.

Test plan:
1. Before applying a patch, check from Elasticsearch (e.g. localhost:9200/koha_biblios/_search?q=_id:123) what is indexed in Elasticsearch for a record for date-entered-on-file, ff7-00, ff7-01, ff7-02 and lleader.
2. Apply the patch, update database and save the record again.
3. Verify that the contents of the forementioned fields is now correct in Elasticsearch.
4. Verify that tests pass:  prove -v t/Koha/SearchEngine/Elasticsearch.t

Signed-off-by: Björn Nylén <bjorn.nylen@ub.lu.se>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 0047ede37e)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-04-26 16:20:48 +01:00
Katrin Fischer 7cf678b321
Bug 21545: Translate new ACCOUNT_PAYMENT and ACCOUNT_WRITEOFF notices to German
To test:
- Apply patch
- Run the German web installer
- Verify the sample notices installs without error
- Verify it looks 'German' in the GUI :)

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 6b610497ff)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-04-26 15:00:50 +01:00
Katrin Fischer ca4d24c1e2
Bug 21545: Translate 'Stock rotation slip'
Throwing in some capitalization fixes for the English
version of the notice as well.

To test:
- Verify the changes make sense and the SQL is still valid
  and executes

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit bc1a21ec65)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-04-26 15:00:32 +01:00
Bernardo Gonzalez Kriegel 9535293c4a
Bug 21899: Update MARC21 frameworks to Update 27 (November 2018)
This bug updates MARC21 english frameworks to Update 27

Bibliographic
-------------
 * New fields 251, 341 and 532 with corresponding subfields
 * New subfields 041$p, 041$q and 041$r
 * Renamed subfield 041$j

Authorities
-----------
 * New subfield 055$2

To test:
1) Remove all your frameworks
2) Check mandatory bibliographic and authority files load without problem
3) Check new fields/subfields

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit b31d314613)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-04-26 14:19:36 +01:00
Nick Clemens 98a5039290
Bug 22044: DBRev 18.11.04.003
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 4177d2e329)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-04-26 12:55:39 +01:00
Katrin Fischer 36bf400905
Bug 22044: Fix sysprefs.sql description to use circ column description
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit f6e143c73c)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-04-26 12:53:47 +01:00
Nick Clemens eaed1f1e6b
Bug 22044: Correct syspref name
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit a3a3bf2dda)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-04-26 12:53:28 +01:00
Nick Clemens 6cc9e6086a
Bug 22044: Set default and add NoRenewalBeforePrecision preference for new/affected installs
I am not sure the correct answer - for upgraded installs the pref was
set to date, which changed behaviour

For new installs the pref was unset, behaved as if 'exact_time' so we
shouldn't change behaviour?

If the perceived default is date then the code should be changed, or
this shouldn't be a pref at all?

To test:
1 - Have a new system missing this pref
2 - Note when searchign the pref in staff client if appears as 'date'
3 - Check the db to confirm value is 'NULL'
4 - Apply patch and run update
5 - Pref is now set to 'exact_time'

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 4779cf8450)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-04-26 12:53:09 +01:00