Go to file
Andreas Jonsson 048f154e77 Bug 25850: Adapt day of week in Koha::Calendar::get_push_amt to 0..6 with 0 being Sunday.
1. Go to tools -> calendar and make sure Sundays are holidays by adding
   a holiday on a Sunday and selecting "Holiday repeated every same day
   of the week" and "Copy to all libraries" and save.
2. Go to administration -> system preferences and select "Use the
   calendar to push the due date to the next open matching weekday
   for weekly loan periods, or the next open day otherwise" for the
   system preference "useDaysMode" and save the system preferences.
3. Put the below code in a file name test.pl and execute it using
   the command "sudo koha-shell -c 'perl test.pl' kohadev"

   use Koha::Calendar;

   my $calendar = Koha::Calendar->new( branchcode => 'CPL' );
   $dt = DateTime->new(
       year       => 2020,
       month      => 06,
       day        => 21
   );

   print "This is a sunday: " .
   $dt->day_of_week . "\n";

   my $ndt = $calendar->next_open_days($dt, 0);

   print "This is a monday: " .
   $ndt->day_of_week . "\n";

4. Without the patch applied, this script
   will freeze after printing "This is a
   sunday ...".  Abort using ctrl-c.
5. Apply patch and run the script again.
   The test script will now complete.

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 25127f4228)

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

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
2020-07-30 23:57:38 +12:00
C4 Bug 25875: Move check for module_bit and code to the JOIN 2020-07-16 16:36:45 +12:00
Koha Bug 25850: Adapt day of week in Koha::Calendar::get_push_amt to 0..6 with 0 being Sunday. 2020-07-30 23:57:38 +12:00
OpenILS
…
acqui Bug 25611: Use selected vendor when creating a basket 2020-07-13 14:22:40 +12:00
admin Bug 25861: Removing non-existent 'important' field from SQL 2020-07-08 15:28:25 +12:00
api/v1 Bug 24909: Route spec 2020-06-15 10:32:28 +12:00
authorities Bug 25428: Correctly encode link if authority subfield is a URL 2020-06-09 05:06:03 +00:00
basket Bug 17842: Simplify the code 2020-06-18 13:48:02 +12:00
catalogue Bug 5103: Refactor the code to avoid repetition 2020-04-03 17:26:54 +00:00
cataloguing Bug 25553: Make date columns sortable on the edit items table 2020-07-13 10:07:41 +12:00
circ Bug 24612: Make hold-transfer-slip take reserve_id 2020-06-11 04:59:23 +00:00
clubs
…
course_reserves Revert "Bug 23727: Editing course reserve items is broken" 2020-05-19 23:46:46 +00:00
debian Bug 25509: Remove useless libjs-jquery dependency 2020-07-13 10:51:15 +12:00
docs Corrections to teams for 20.05 cycle 2019-11-29 12:10:34 +00:00
errors Bug 23329: Move error page to its own subroutine 2019-11-27 11:30:19 +00:00
etc Bug 25277: Don't specify a field in query if none passed 2020-05-19 22:57:25 +00:00
ill
…
installer Increment version for 19.11.08 release 2020-07-22 12:53:18 +12:00
koha-tmpl Bug 25443: (follow-up) surround strings with <span> 2020-07-30 23:48:02 +12:00
labels
…
members Bug 25526: Equality matching is case sensative 2020-06-18 13:51:58 +12:00
misc Update release notes for 19.11.08 release 2020-07-22 14:55:28 +12:00
offline_circ
…
opac Bug 11994: OpenSearch plugins needs to be delivered with Content-Type application/opensearchdescription+xml 2020-07-13 14:19:15 +12:00
patron_lists
…
patroncards
…
plugins
…
reports Bug 24940: Serials statistics wizard: order vendor list alphabetically 2020-05-01 17:39:21 +00:00
reserve Bug 24802: Updating holds can cause suspensions to apply to wrong hold 2020-04-01 22:42:26 +00:00
reviews
…
rotating_collections
…
serials Bug 25081: Fix wrong comment 2020-05-04 20:44:10 +00:00
services
…
skel
…
suggestion Bug 22868: Move suggestions_manage subperm out of acquisition perm 2020-02-10 23:08:59 +00:00
svc Bug 24964: [19.11.x] Do not filter patrons after they have been fetched 2020-04-29 15:57:56 +00:00
t Bug 25850: Regression Test 2020-07-30 23:57:29 +12:00
tags
…
tmp/modified_authorities
…
tools Bug 4985: Fix Plack scope errors 2020-07-16 15:58:12 +12:00
virtualshelves
…
xt
…
.editorconfig
…
.eslintrc.json Bug 23834: Add default ESLint configuration 2019-11-03 08:02:39 +00:00
.gitignore
…
.htaccess
…
.mailmap
…
.scss-lint.yml
…
INSTALL
…
Koha.pm Increment version for 19.11.08 release 2020-07-22 12:53:18 +12:00
LICENSE
…
MANIFEST.SKIP
…
Makefile.PL Bug 24445: Add z3950 to makefile (bug 13937 follow-up) 2020-01-18 15:05:48 +00:00
README
…
README.md
…
README.robots
…
about.pl Bug 25506: Fix for "Use of uninitialized value" in about.pl 2020-06-09 03:13:10 +00:00
changelanguage.pl
…
fix-perl-path.PL
…
gulpfile.js
…
help.pl
…
koha_perl_deps.pl
…
kohaversion.pl
…
mainpage.pl
…
package.json Bug 23025: security vulnerability detected in fstream < 1.0.12 defined in yarn.lock 2019-11-27 11:30:17 +00:00
rewrite-config.PL
…
yarn.lock Bug 23025: Update yarn.lock 2019-11-27 11:30:17 +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: This is a synced mirror of the official Koha repo.

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