This project is mirrored from https://*****@gitlab.com/koha-community/Koha.git.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
- Feb 11, 2020
-
-
joubu authored
This patch add a new column "quantity" to the late orders page Test plan: 1. Create some orders, close the basket 2. Go to the "Late orders" page => You should see a new column "quantity" that contains the number of items of the order Sponsored-by: Cork Institute of Technology
-
joubu authored
Sponsored-by: Institute of Technology Tralee
-
joubu authored
This new enhancement adds the ability to create a CSV profile for the late orders export. Prior to this, the CSV profile was hardcoded in a template and not editable (unless you modify the .tt file of course). The main difficulty of the request was to make the multiple claims dates accessible from the CSV profile. So far we only accept columns from the database. However we would like to use the Koha::Acquisition::Order object to make things easier (it had a ->claims method to access the different claims). To acchieve this, we are going to accept the TT syntax for that CSV profile. It means that only CSV profiles created for 'late_orders' will have the capability to use the TT syntax (can be extended later of course if needed). The alternative was to use specific placeholders, like %claims_count%, %claimed_date%, but it sounded more powerful and flexible to allow the TT syntax instead. Note that the former export (template based) still exists and is the default option. Test plan: 0. Apply the patches and execute the update database entry 1. Create some orders, close the basket 2. Claim some of the orders 3. Note the new button at the bottom of the table that have several entries. => The first entry will generate a CSV file using the previous method => The second entry will generate it using the new CSV profile, note that the number of claims as well as the different claims date are displayed. 4. Bonus point: Edit the CSV profile (Home › Tools › CSV export profiles) that is named "Late orders (csv profile)", or create a new one, and modify it. Export the late orders using this CSV profile and confirm that the generated CSV file is the one you expect. Sponsored-by: Institute of Technology Tralee
-
joubu authored
Sponsored-by: Cork Institute of Technology
-
joubu authored
Sponsored-by: Cork Institute of Technology
-
joubu authored
So far we only record the number of claims and the date of the last claim, in the aqorders table. To keep track of the different claim dates, this patchset is going to make the following DB changes: * Create a new table 'aqorders_claims' (id, ordernumber, claimed_on) * Remove the two columns from the aqorders table: claims_count and claimed_date This will allow to display the different claim dates where needed: on the late orders page, and the basket page. To avoid additional fetches of Koha::Acquisition::Orders, GetLateOrders has been moved to Koha::Acquisition::Orders->filter_by_late That way we are going to add consistency, robustness, and cover the feature with new tests. Test plan: 0/ Create a bunch of new orders. Make sure they are from different vendor (with different delivery time). 1/ Go to the late orders page and claim some orders 2/ Reclaim some of those orders 3/ Confirm that you can see the different claim dates for a given orders (the history of the late orders claims is kept and displayed) 4/ Bonus point: Regression tests: a. Modify the closedate of the basket in the database. That will allow you to make sure the patch set did not introduce regressions. It would be good to test the different filters on the late orders page: * delay * Estimated delivery date from/to * Vendor b. Confirm that the subtotal and the total values from the late orders page is correct. c. Test the update database entry: do not apply these patches, claims some orders against master. Apply the patch, execute the update DB entry then confirm that the number of claims is correct (note that the dates will not as it is not possible to guess them). QA note: the branchcode parameter has been removed from filter_by_late. At first glance it seems that it was not used. Sponsored-by: Cork Institute of Technology
-
joubu authored
Sponsored-by: Cork Institute of Technology
-
joubu authored
Sponsored-by: Cork Institute of Technology
-
joubu authored
Sponsored-by: Cork Institute of Technology
-
joubu authored
The budget_lock is never set (and has never been). Test plan: For QAer only, make sure this never worked
-
- Feb 10, 2020
-
-
Martin Renvoize authored
Signed-off-by:Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
This patch adds 2 new columns on the suggestions table on purchase-suggestions.tt. These use the data-order attribute to allow for sorting. TEST PLAN: 1. Have a patron with some suggestions that have been managed by staff. (accept or reject the request). 2. View that patrons suggestions from purchase-suggestions.pl. 3. No suggested on or managaed on columns. 4. Apply patch and reload the page. 5. The new columns are there, have multiple suggestions and make sure sorting by the date works. Signed-off-by:
Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
It adds Javascript equivalent of Koha::I18N's exported subroutines, and they are used the same way. String extraction is done only on *.js files and require gettext 0.19 (available in Debian jessie, and also in wheezy-backports) It adds Javascript library Gettext.js for handling translation and a Perl script po2json to transform PO file into JSON. Gettext.js and po2json both come from Locale::Simple. There are several tools named po2json. It's simpler to integrate this one into Koha than to check if the good one is installed on the system. Locale::Simple is not needed. To avoid polluting the global namespace too much, this patch also introduce a global JS object named Koha and add some stuff in Koha.i18n Test plan: 1. Add a translatable string in a JS file. For example, add this: alert(__nx("There is one item", "There are {count} items", 3, {count: 3})); to staff-global.js 2. cd misc/translator && ./translate update fr-FR 3. Open misc/translator/po/fr-FR-messages-js.po, verify that your string is present, and translate it 4. cd misc/translator && ./translate install fr-FR 5. (Optional) Verify that koha-tmpl/intranet-tmpl/prog/fr-FR/js/locale_data.js exists and contains your translation 6. Open your browser on the staff main page, change language and verify that the message is translated 7. Repeat 1-6 on OPAC side Signed-off-by:Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by:
Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Works well, translation is OK and test message is displayed correctly. Current qa-tool error is a false positive. Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
Signed-off-by:Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
Signed-off-by:
Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
Usually commit takes a value Signed-off-by:
Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
Signed-off-by:
Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
Signed-off-by:
Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by:
Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
To test: 1 - Apply patch 2 - Have some items marked for auto-renewal 3 - Run the job with no parameters 4 - It should print 'Test mode' 5 - Provide -v 6 - It should print 'Test mode' then a line for each item 7 - Provide -v -c 8 - It should not say test mode, but should provide a line for each item 9 - Provide -c 10 - Shoudl run as expected with no output Signed-off-by:
David Nind <david@davidnind.com> Signed-off-by:
Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by:
Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
It is annoying to have to specify database connection parameters each time DBIx::Class files need to be updated. This patch adds a new option --koha-conf that takes an optional <path> which defaults to the value of KOHA_CONF environment variable, and use the database connection parameters found in that file. --db_* options override values from $KOHA_CONF Test plan: 1. Run the script with the same parameters as before the patch and see that it still works. Example: misc/devel/update_dbix_class_files.pl --db_name koha_dev \ --db_user koha --db_pass koha 2. Verify that KOHA_CONF is set and execute: misc/devel/update_dbix_class_files.pl --koha-conf Verify that Koha/Schema files were updated accordingly 3. Execute: misc/devel/update_dbix_class_files.pl --koha-conf \ /path/to/another/koha-conf.xml Verify that Koha/Schema files were updated accordingly Signed-off-by:Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by:
Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
This patch adds columns configuration to the holds awaiting pickup tables. Doing so helps solve the printing issue by adding a "Print" option to both tables. Using this print function will provide a printable version of only that table. To test you should have multiple holds in your system which are marked "waiting" and some which have been waiting longer than the value specified in the ReservesMaxPickUpDelay system preference. Apply the patch and go to Circulation -> Holds awaiting pickup. - On both the "Holds waiting" and "Holds waiting over..." tabs the DataTable should display correctly and all the controls should work, including the columns settings and the choices in the export menu. - Confirm that the "Print" action creates a printable version of only the table you are viewing. - Go to Administration -> Columns settings -> Circulation. - Change some visibility controls for the tables under the "holds_awaiting_pickup" heading (id=holdso and id=holdst). Confirm that these changes are reflected in the "Holds waiting" interface. Signed-off-by:
David Nind <david@davidnind.com> Signed-off-by:
Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
This trivial patch changes the attribute names for API reprensentation of Koha::Acquisition::Invoice objects. To test: 1. Open https://wiki.koha-community.org/wiki/Acquisitions_invoices_endpoint_RFC 2. Check the mappings are correct => SUCCESS: The patch makes the right changes to the mappings 3. Sign off :-D Signed-off-by:
Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com> Signed-off-by:
Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
Test plan: 0/ Do not apply the patch 1/ select count(*) from borrowers; 2/ Run the tests => Notice that you have 1 more patron 3/ Apply the patch and repeat 1/ and 2/ => Notice that you have the same number of patrons before and after the tests 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>
-
The column was missing from the yml file. Signed-off-by:
David Nind <david@davidnind.com> Signed-off-by:
Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
Test plan: Check the tab order of the item block on additem.pl (item editor), Acquisition (neworderempty or addiso2709), serials-edit.pl. You could also check services/itemrecorddisplay.pl and pass a biblionumber; this script is used in additem.js for cataloguing and acquisition. Signed-off-by:
Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by:
David Nind <david@davidnind.com> Signed-off-by:
Katrin Fischer <katrin.fischer.83@web.de> 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>
-
Change to allow for unmapped default passwords 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>
-
Nullable DB fields should be passed null in cases where ldap fields are empty and not replaced with empty strings. 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>
-
Martin Renvoize authored
The use of cash registers adds the requirement to enter a payment type, this patch adds the required status when cash registers are configured. Signed-off-by:Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
Martin Renvoize authored
Signed-off-by:
Nick Clemens <nick@bywatersolutions.com> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
Martin Renvoize authored
This patch removes the SIP payments types from displaying in the select options on the point of sale payment page. Signed-off-by:
David Nind <david@davidnind.com> Signed-off-by:
Nick Clemens <nick@bywatersolutions.com> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
This patch flushes the L1 cache on each SIP connection (ie every invocation of process_request). This means each SIP connection will fetch values from the L2 cache (ie memcached) and persist the L1 cache (in Perl memory cache) only until a new SIP connection comes in. Without this patch, the L1 cache persists for the length of the server process, which means the L1 cache will become stale very quickly, which can lead to unexpected behaviour. Test plan: 1. Enable IssueLog 2. Start SIP server 2a. change to Koha git directory 2b. koha-shell kohadev 2c. perl C4/SIP/SIPServer.pm /etc/koha/sites/kohadev/SIPconfig.xml 3. Issue book via SIP perl misc/sip_cli_emulator.pl -a 127.0.0.1 -p 6001 -su term1 -sp term1 -l CPL --patron 1 --item 3999900000001 -m checkout 4. Check action_logs for "CIRCULATION ISSUE <borrowernumber> <biblionumber>" line http://localhost:8081/cgi-bin/koha/tools/viewlog.pl 5. Disable IssueLog 6. Check in the book and then check it out again perl misc/sip_cli_emulator.pl -a 127.0.0.1 -p 6001 -su term1 -sp term1 -l CPL --patron 1 --item 3999900000001 -m checkin perl misc/sip_cli_emulator.pl -a 127.0.0.1 -p 6001 -su term1 -sp term1 -l CPL --patron 1 --item 3999900000001 -m checkout 7. Check action_logs for "CIRCULATION ISSUE <borrowernumber> <biblionumber>" line http://localhost:8081/cgi-bin/koha/tools/viewlog.pl 8. Note results Without the patch, you'll see a 2nd checkout. With the patch, you won't see the 2nd checkout. (Note: After applying the patch, you have to restart the SIP server.) Signed-off-by:David Cook <dcook@prosentient.com.au> Signed-off-by:
Nick Clemens <nick@bywatersolutions.com> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
Martin Renvoize authored
This patch for the point of sale feature fixes an issue where items for purchase with a value of $1,000 or more break the payment calculations. Test plan: 1) Enable the point of sale feature (EnablePointOfSale + UseCashRegisters system preferences) 2) Add a cash register for a library (Home > Point of sale > Cash registers > New cash register) 3) Create a purchase item with a cost of $1000 (Home > Point of sale > Purchase items > New debit type) 4) Go to to the point of sale page and attempt to sell one of your items (Home > Point of sale > click 'Add' next to the item to purchase) 5) Note that Koha inserts a comma into the price in the list of items for purchase 6) Note that the 'Amount being paid' changes to 0.00 instead of $1,000, which affects the other calculations 7) Apply the patch 8) Repeat step 4 9) Amount being paid and other calculations should now be correct 10) Enter an amount for 'Collected from patron' and click 'Confirm' check that the change calculation is correct. 11) Sign-off the patch! Signed-off-by:David Nind <david@davidnind.com> Signed-off-by:
Nick Clemens <nick@bywatersolutions.com> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
The onshelfholds circulation rules values are more of an ENUM type (as opposed to other rules with integers like max*qty). In the quantities cases, it makes sense to have undef mean unlimited. In the enum type it is clearer to just set a default value (0) as the code already expects (Note: undef and 0 both eval to false so there's no behaviour problem, but warnings or we get forced to check for defined when the rule is used. It seems trivial to just make the rule fallback to a chosen default value). This patch makes it fallback to 0. To test: 1. Run: $ kshell k$ prove t/db_dependent/Koha/CirculationRules.t \ t/db_dependent/Reserves.t => FAIL: CirculationRules.t fails and Reserves.t prints a warning 2. Apply this patch 3. Repeat (1) => SUCCESS: Tests pass! No warning! 4. Sign off :-D Signed-off-by:David Nind <david@davidnind.com> Signed-off-by:
Nick Clemens <nick@bywatersolutions.com> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
Ths patch introduces tests for get_onshelf_policy. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Koha/CirculationRules.t => FAIL: Tests fail because the current code returns undef instead of 0 Signed-off-by:
David Nind <david@davidnind.com> Signed-off-by:
Nick Clemens <nick@bywatersolutions.com> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
- Feb 07, 2020
-
-
Martin Renvoize authored
We replaced this module with Cache::Memcached::Fast::Safe and so do not need to depend upon it any longer. Signed-off-by:Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
The dependancy has now been packaged, this patch adds it to the debian control file for package installs. Signed-off-by:Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
When a high enough number of forks try to access for example system preferences with Koha::Cache using memcached as backend the results of different cache requests get mixed up. The problem is fixed by using Cache::Memcached::Fast::Safe that is a fork safe version of Cache::Memcached::Fast. Sponsored-by: The National Library of Finland Signed-off-by:
David Cook <dcook@prosentient.com.au> Works as described, and solves an insidious difficult to debug problem in Koha. Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
- Feb 06, 2020
-
-
This patch simplifies the behaviour of Koha::Biblio->to_api. It was designed with the idea of handling possible methods that would be added to Koha::Biblioitem. But it had a weird fallback behaviour was highlighted by using it with bug 24528. On fixing it it become obvious that it was unnessessarily complex and that it was not worth. That's the reason there wasn't any test for it, as Koha::Biblioitem doesn't implement any extra methods. To test: 1. Run: $ kshell k$ prove t/db_dependent/Koha/Biblio.t => SUCCESS: Tests pass 2. Apply this patch 3. Repeat (1) => SUCCESS: Tests pass! 4. Sign off :-D Signed-off-by:
Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com> Signed-off-by:
Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-
Bug 19618 replaces the call to placerequest.pl with a REST API /holds That is wrong as it does not support multi holds. Test plan: Confirm that prior to this patch you are not able to place a hold on several records at once, and that this patch fixes it Signed-off-by:
Julian Maurice <julian.maurice@biblibre.com> Signed-off-by:
Agustin Moyano <agustinmoyano@theke.io> Signed-off-by:
Martin Renvoize <martin.renvoize@ptfs-europe.com>
-