From 0dd6cdd7742e998af320a1935b64cf2b25832c0f Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 16 Jul 2010 10:44:38 -0400 Subject: [PATCH 01/11] Correcting URL typo in link back to labels home page Signed-off-by: Galen Charlton --- .../intranet-tmpl/prog/en/modules/labels/label-edit-batch.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tmpl index d1326196f4..df1f5569e1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tmpl @@ -9,7 +9,7 @@ From a1011ad76a0177f00a3f33964e1f8d1906980de8 Mon Sep 17 00:00:00 2001 From: Robin Sheat Date: Mon, 19 Jul 2010 17:41:05 +1200 Subject: [PATCH 02/11] Bug 5034 - update the maintainer details, correctly Signed-off-by: Galen Charlton --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 5f107bae5f..a43d12811b 100644 --- a/debian/control +++ b/debian/control @@ -1,5 +1,5 @@ Source: koha -Maintainer: Lars Wirzenius +Maintainer: Robin Sheat Section: web Priority: optional Standards-Version: 3.8.4 From ebdbfc7fad8318728b6a7a2b5d644aa41df52270 Mon Sep 17 00:00:00 2001 From: Andrew Chilton Date: Mon, 19 Jul 2010 16:24:06 +1200 Subject: [PATCH 03/11] bug 5007: fixing the syspref for IntranetBiblioDefaultView Signed-off-by: Chris Cormack Signed-off-by: Galen Charlton --- installer/data/mysql/updatedatabase.pl | 7 +++++++ .../prog/en/modules/admin/preferences/cataloguing.pref | 2 +- kohaversion.pl | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 68e7cbcf4f..6560aed41a 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -3687,6 +3687,13 @@ if (C4::Context->preference('Version') < TransformToNum($DBversion)){ SetVersion ($DBversion); } +$DBversion = '3.01.00.144'; +if (C4::Context->preference('Version') < TransformToNum($DBversion)){ + $dbh->do(qq{UPDATE systempreferences SET value='normal' where value='default' and variable='IntranetBiblioDefaultView'}); + print "Update the 'default' to 'normal' for the IntranetBiblioDefaultView syspref (bug 5007)"; + SetVersion ($DBversion); +} + =item DropAllForeignKeys($table) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref index b54f65b022..4e06abcb39 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref @@ -98,7 +98,7 @@ Cataloging: - By default, display biblio records in - pref: IntranetBiblioDefaultView choices: - default: normal form. + normal: normal form. marc: MARC form. labeled_marc: Labelled MARC form isbd: ISBD form (see below). diff --git a/kohaversion.pl b/kohaversion.pl index 37605ebffc..26ee160b76 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -11,7 +11,7 @@ use strict; sub kohaversion { - our $VERSION = '3.01.00.143'; + our $VERSION = '3.01.00.144'; # version needs to be set this way # so that it can be picked up by Makefile.PL From f976eaa916714fba18bffc6b912220d70eeabadf Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 16 Jul 2010 11:43:09 -0400 Subject: [PATCH 04/11] Follow-up fix for Bug 5013, "New patron" menu button broken Menu was working on members-home.pl but not on members.pl Signed-off-by: Galen Charlton --- members/member.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/member.pl b/members/member.pl index 3b1b98e977..dde29eb558 100755 --- a/members/member.pl +++ b/members/member.pl @@ -157,7 +157,7 @@ $template->param( ); $template->param( branchloop=>$branches, - categoryloop=>\@categories, + categories=>\@categories, ); From 55b5d8a48e44c293d2488bbb1777067c25344aae Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Tue, 20 Jul 2010 16:57:15 +0100 Subject: [PATCH 05/11] Bug 5023 Remove unused Serials Modules Modules possibly added in error Neither is called elsewhere in the system Signed-off-by: Galen Charlton --- C4/Serials/Frequency.pm | 142 ------------------------------------ C4/Serials/NumberPattern.pm | 129 -------------------------------- 2 files changed, 271 deletions(-) delete mode 100644 C4/Serials/Frequency.pm delete mode 100644 C4/Serials/NumberPattern.pm diff --git a/C4/Serials/Frequency.pm b/C4/Serials/Frequency.pm deleted file mode 100644 index e4bc3413ad..0000000000 --- a/C4/Serials/Frequency.pm +++ /dev/null @@ -1,142 +0,0 @@ -package C4::Frequency; - -# Copyright 2000-2002 Biblibre SARL -# -# This file is part of Koha. -# -# Koha is free software; you can redistribute it and/or modify it under the -# terms of the GNU General Public License as published by the Free Software -# Foundation; either version 2 of the License, or (at your option) any later -# version. -# -# Koha is distributed in the hope that it will be useful, but WITHOUT ANY -# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR -# A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with Koha; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -use strict; -#use warnings; FIXME - Bug 2505 -use C4::Context; -use C4::SQLHelper qw<:all>; -use C4::Debug; - -use vars qw($VERSION @ISA @EXPORT); - -BEGIN { - # set the version for version checking - $VERSION = 3.01; - require Exporter; - @ISA = qw(Exporter); - @EXPORT = qw( - - &GetFrequencies - &GetFrequency - &new - &all - &AddFrequency - &ModFrequency - &DelFrequency - - ); -} - -# ------------------------------------------------------------------- -my %count_issues_a_year=( - day=>365, - week=>52, - month=>12, - quarter=>4, - year=>1 -); - -sub new { - my ($class, $opts) = @_; - bless $opts => $class; -} - - -sub AddFrequency { - my ($class,$frequency) = @_; - return InsertInTable("subscription_frequency",$frequency); -} - -sub GetExpectedissuesayear { - my ($class,$unit,$issuesperunit,$unitperissues) = @_; - return Int($count_issues_a_year{$unit}/$issuesperunit)*$unitperissues; -} - -# ------------------------------------------------------------------- -sub ModFrequency { - my ($class,$frequency) = @_; - return UpdateInTable("subscription_frequency",$frequency); -} - -# ------------------------------------------------------------------- -sub DelFrequency { - my ($class,$frequency) = @_; - return DeleteInTable("subscription_frequency",$frequency); -} - -sub all { - my ($class) = @_; - my $dbh = C4::Context->dbh; - return map { $class->new($_) } @{$dbh->selectall_arrayref( - # The subscription_frequency table is small enough for - # `SELECT *` to be harmless. - "SELECT * FROM subscription_frequency ORDER BY description", - { Slice => {} }, - )}; -} - -=head3 GetFrequency - -=over 4 - -&GetFrequency($freq_id); - -gets frequency where $freq_id is the identifier - -=back - -=cut - -# ------------------------------------------------------------------- -sub GetFrequency { - my ($freq_id) = @_; - return undef unless $freq_id; - my $results= SearchInTable("subscription_frequency",{frequency_id=>$freq_id}, undef, undef,undef, undef, "wide"); - return undef unless ($results); - return $$results[0]; -} - -=head3 GetFrequencies - -=over 4 - -&GetFrequencies($filter, $order_by); - -gets frequencies restricted on filters - -=back - -=cut - -# ------------------------------------------------------------------- -sub GetFrequencies { - my ($filters,$orderby) = @_; - return SearchInTable("subscription_frequency",$filters, $orderby, undef,undef, undef, "wide"); -} - -END { } # module clean-up code here (global destructor) - -1; -__END__ - -=head1 AUTHOR - -Koha Development Team - -=cut diff --git a/C4/Serials/NumberPattern.pm b/C4/Serials/NumberPattern.pm deleted file mode 100644 index 0d46545704..0000000000 --- a/C4/Serials/NumberPattern.pm +++ /dev/null @@ -1,129 +0,0 @@ -package C4::Numberpattern; - -# Copyright 2000-2002 Biblibre SARL -# -# This file is part of Koha. -# -# Koha is free software; you can redistribute it and/or modify it under the -# terms of the GNU General Public License as published by the Free Software -# Foundation; either version 2 of the License, or (at your option) any later -# version. -# -# Koha is distributed in the hope that it will be useful, but WITHOUT ANY -# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR -# A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with Koha; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -use strict; -#use warnings; FIXME - Bug 2505 -use C4::Context; -use C4::SQLHelper qw<:all>; -use C4::Debug; - -use vars qw($VERSION @ISA @EXPORT); - -BEGIN { - # set the version for version checking - $VERSION = 3.01; - require Exporter; - @ISA = qw(Exporter); - @EXPORT = qw( - - &GetNumberpatterns - &GetNumberpattern - &new - &all - &AddNumberpattern - &ModNumberpattern - &DelNumberpattern - - ); -} - -# ------------------------------------------------------------------- -sub new { - my ($class, $opts) = @_; - bless $opts => $class; -} - - -sub AddNumberpattern { - my ($class,$numberpattern) = @_; - return InsertInTable("subscription_numberpattern",$numberpattern); -} - -# ------------------------------------------------------------------- -sub ModNumberpattern { - my ($class,$numberpattern) = @_; - return UpdateInTable("subscription_numberpattern",$numberpattern); -} - -# ------------------------------------------------------------------- -sub DelNumberpattern { - my ($class,$numberpattern) = @_; - return DeleteInTable("subscription_numberpattern",$numberpattern); -} - -sub all { - my ($class) = @_; - my $dbh = C4::Context->dbh; - return map { $class->new($_) } @{$dbh->selectall_arrayref( - # The subscription_numberpattern table is small enough for - # `SELECT *` to be harmless. - "SELECT * FROM subscription_numberpattern ORDER BY description", - { Slice => {} }, - )}; -} - -=head3 GetNumberpattern - -=over 4 - -&GetNumberpattern($freq_id); - -gets numberpattern where $freq_id is the identifier - -=back - -=cut - -# ------------------------------------------------------------------- -sub GetNumberpattern { - my ($numpattern_id) = @_; - return undef unless $num_patternid; - my $results= SearchInTable("subscription_numberpattern",{numberpattern_id=>$freq_id}, undef, undef,undef, undef, "wide"); - return undef unless ($results); - return $$results[0]; -} - -=head3 GetFrequencies - -=over 4 - -&GetFrequencies($filter, $order_by); - -gets frequencies restricted on filters - -=back - -=cut - -# ------------------------------------------------------------------- -sub GetNumberPatterns { - my ($filters,$orderby) = @_; - return SearchInTable("subscription_numberpattern",$filters, $orderby, undef,undef, undef, "wide"); -} - -END { } # module clean-up code here (global destructor) - -1; -__END__ - -=head1 AUTHOR - -Koha Development Team - -=cut From fe8e5fdf39f9e8ac90714a892618e3cc045e496b Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Wed, 21 Jul 2010 07:35:38 +1200 Subject: [PATCH 06/11] Fix typo in z3950 search in acquisitions Signed-off-by: Chris Cormack Signed-off-by: Galen Charlton --- acqui/z3950_search.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/z3950_search.pl b/acqui/z3950_search.pl index 1238e16ae2..444c893dc4 100755 --- a/acqui/z3950_search.pl +++ b/acqui/z3950_search.pl @@ -97,7 +97,7 @@ foreach my $thisframeworkcode ( keys %$frameworks ) { if ( $row{'value'} eq $frameworkcode){ $row{'active'} = 'true'; } - push @frameworkcodeloop, $row; + push @frameworkcodeloop, \%row; } $template->param( frameworkcode => $frameworkcode, From cf3c2fadeb676e0547ba61b9ee06ee59a0ae325e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 20 Jul 2010 14:37:07 -0400 Subject: [PATCH 07/11] Fix for Bug 4996 - Untranslatable strings in budget/fund toolbar Signed-off-by: Galen Charlton --- .../prog/en/includes/budgets-admin-toolbar.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-toolbar.inc index c3ec018bac..e6ccde3862 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-toolbar.inc @@ -21,7 +21,7 @@ var budgets_menu = [ { text: _("New budget"), url: "/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form" }, - { text: _("New fund for ''"), url: "/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=" + { text: _("New fund for") + " ''", url: "/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=" , disabled:true , disabled:true } @@ -32,8 +32,8 @@ var periods_menu = [ - { text: _("Edit budget ''"), url: "/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form&budget_period_id=" }, - { text: _("Duplicate budget ''") } + { text: _("Edit budget") + " ''", url: "/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form&budget_period_id=" }, + { text: _("Duplicate budget") + " ''" } ] From a72c8d07a5323958fb87eb0609b8070359d7944b Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Tue, 13 Jul 2010 10:56:12 +0200 Subject: [PATCH 08/11] (bug 4989) add index on guarantorid Signed-off-by: Galen Charlton --- installer/data/mysql/kohastructure.sql | 1 + installer/data/mysql/updatedatabase.pl | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql index e42cecd475..e42652c486 100644 --- a/installer/data/mysql/kohastructure.sql +++ b/installer/data/mysql/kohastructure.sql @@ -262,6 +262,7 @@ CREATE TABLE `borrowers` ( KEY `categorycode` (`categorycode`), KEY `branchcode` (`branchcode`), KEY `userid` (`userid`), + KEY `guarantorid` (`guarantorid`), CONSTRAINT `borrowers_ibfk_1` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`), CONSTRAINT `borrowers_ibfk_2` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 6560aed41a..065ad821b0 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -3694,7 +3694,12 @@ if (C4::Context->preference('Version') < TransformToNum($DBversion)){ SetVersion ($DBversion); } - +$DBversion = "3.02.00.025"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("ALTER TABLE borrowers ADD KEY `guarantorid` (guarantorid);"); + print "Upgrade to $DBversion done (Add index on guarantorid)\n"; + SetVersion ($DBversion); +} =item DropAllForeignKeys($table) Drop all foreign keys of the table $table From 572670d377bfe11357316c4f9d69a9c5f00e5649 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 22 Jul 2010 19:27:44 -0400 Subject: [PATCH 09/11] bug 4989: set DB rev to 145 Signed-off-by: Galen Charlton --- installer/data/mysql/updatedatabase.pl | 3 ++- kohaversion.pl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 065ad821b0..a0b5c4adaa 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -3694,12 +3694,13 @@ if (C4::Context->preference('Version') < TransformToNum($DBversion)){ SetVersion ($DBversion); } -$DBversion = "3.02.00.025"; +$DBversion = "3.01.00.145"; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $dbh->do("ALTER TABLE borrowers ADD KEY `guarantorid` (guarantorid);"); print "Upgrade to $DBversion done (Add index on guarantorid)\n"; SetVersion ($DBversion); } + =item DropAllForeignKeys($table) Drop all foreign keys of the table $table diff --git a/kohaversion.pl b/kohaversion.pl index 26ee160b76..63b6d31276 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -11,7 +11,7 @@ use strict; sub kohaversion { - our $VERSION = '3.01.00.144'; + our $VERSION = '3.01.00.145'; # version needs to be set this way # so that it can be picked up by Makefile.PL From ec3913e1aabe28bc5dd43c3af401a7e2bf80f677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Mon, 26 Jul 2010 16:18:37 +0200 Subject: [PATCH 10/11] Bug 3756 Don't display as local AutoSelfCheckID syspref and others Improve how sysprefs are extracted from .tmpl file in order not to miss some of them. --- admin/systempreferences.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index 24d83d9cd6..824b0582e5 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -837,7 +837,7 @@ sub get_prefs_from_files { my $name = $element->{pref}; next unless $name; push @names, $name; - last; + next; } } } From a1616127bdcfd7d765d7f73cce54cae5609e3a7f Mon Sep 17 00:00:00 2001 From: Robin Sheat Date: Wed, 21 Jul 2010 14:58:37 +1200 Subject: [PATCH 11/11] Bug 5046 - fix the zebra authorities configuration Signed-off-by: Chris Cormack Signed-off-by: Galen Charlton --- debian/templates/zebra-authorities-site.cfg.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/templates/zebra-authorities-site.cfg.in b/debian/templates/zebra-authorities-site.cfg.in index 301e5e6f9b..01cd347dc3 100644 --- a/debian/templates/zebra-authorities-site.cfg.in +++ b/debian/templates/zebra-authorities-site.cfg.in @@ -46,8 +46,8 @@ lockDir: /var/lock/koha/__KOHASITE__/authorities perm.anonymous:ar perm.kohauser:rw passwd: /etc/koha/sites/__KOHASITE__/zebra.passwd -register: /var/lib/koha/__KOHASITE__/biblios/register:4G -shadow: /var/lib/koha/__KOHASITE__/biblios/shadow:1G +register: /var/lib/koha/__KOHASITE__/authorities/register:4G +shadow: /var/lib/koha/__KOHASITE__/authorities/shadow:1G # Temp File area for result sets setTmpDir: /var/lib/koha/__KOHASITE__/authorities/tmp