View | Details | Raw Unified | Return to bug 21327
Collapse All | Expand All

(-)a/Core/Exceptions.pm (+21 lines)
Line 0 Link Here
1
package Core::Exceptions;
2
3
use Modern::Perl;
4
5
use Exception::Class (
6
  "Core::Exception::Circulation",
7
  "Core::Exception::Circulation::CheckinError" => {
8
    description => "Error checking in",
9
    isa => "Core::Exception::Circulation",
10
  },
11
  "Core::Exception::Circulation::CheckoutError" => {
12
    description => "Error checking out",
13
    isa => "Core::Exception::Circulation",
14
  },
15
  "Core::Exception::Circulation::RenewError" => {
16
    description => "Error renewing item",
17
    isa => "Core::Exception::Circulation",
18
  }
19
);
20
21
1;
(-)a/Core/Main.pm (+12 lines)
Line 0 Link Here
1
package Core::Main;
2
3
use strict;
4
use warnings;
5
6
sub new {
7
8
  my $class = shift;
9
  return bless {}, $class;
10
}
11
12
1;
(-)a/Core/Prefs.pm (+30 lines)
Line 0 Link Here
1
package Core::Prefs;
2
3
use strict;
4
use warnings;
5
6
use Carp;
7
use Koha::Config::SysPrefs;
8
9
=head
10
  args: systempreference overrides
11
=cut
12
sub new {
13
  my ($class, $args) = @_;
14
15
  my $self = {};
16
  my $prefs;
17
  my $tmp = Koha::Config::SysPrefs->search->unblessed;
18
  foreach (@$tmp) {
19
    $prefs->{$_->{variable}} = $_->{value};
20
  }
21
  $args ||= {};
22
  $self->{prefs} = {
23
    %$prefs,
24
    %$args,
25
  };
26
27
  bless $self, $class;
28
}
29
30
1;
(-)a/Makefile.PL (+1 lines)
Lines 303-308 my $target_map = { Link Here
303
  './check_sysprefs.pl'         => 'NONE',
303
  './check_sysprefs.pl'         => 'NONE',
304
  './circ'                      => 'INTRANET_CGI_DIR',
304
  './circ'                      => 'INTRANET_CGI_DIR',
305
  './clubs'                     => 'INTRANET_CGI_DIR',
305
  './clubs'                     => 'INTRANET_CGI_DIR',
306
  './Core'                      => 'PERL_MODULE_DIR',
306
  './course_reserves'           => 'INTRANET_CGI_DIR',
307
  './course_reserves'           => 'INTRANET_CGI_DIR',
307
  './docs/history.txt'          => { target => 'DOC_DIR', trimdir => -1 },
308
  './docs/history.txt'          => { target => 'DOC_DIR', trimdir => -1 },
308
  './offline_circ'              => 'INTRANET_CGI_DIR',
309
  './offline_circ'              => 'INTRANET_CGI_DIR',
(-)a/debian/templates/koha-conf-site.xml.in (-1 / +4 lines)
Lines 382-387 __END_SRU_PUBLICSERVER__ Link Here
382
      instance to be something other then the local timezone of the
382
      instance to be something other then the local timezone of the
383
      server. e.g. Antarctica/South_Pole -->
383
      server. e.g. Antarctica/South_Pole -->
384
 <timezone>__TIMEZONE__</timezone>
384
 <timezone>__TIMEZONE__</timezone>
385
385
 <core_modules>
386
   <circulation>Core::Community::Circulation</circulation>
387
   <sip>Core::Community::Circulation::SIP</sip>
388
 </core_modules>
386
</config>
389
</config>
387
</yazgfs>
390
</yazgfs>
(-)a/etc/koha-conf.xml (-2 / +4 lines)
Lines 198-203 __PAZPAR2_TOGGLE_XML_POST__ Link Here
198
      instance to be something other then the local timezone of the
198
      instance to be something other then the local timezone of the
199
      server. e.g. Antarctica/South_Pole -->
199
      server. e.g. Antarctica/South_Pole -->
200
 <timezone></timezone>
200
 <timezone></timezone>
201
201
 <core_modules>
202
   <circulation>Core::Community::Circulation</circulation>
203
   <sip>Core::Community::Circulation::SIP</sip>
204
 </core_modules>
202
</config>
205
</config>
203
</yazgfs>
206
</yazgfs>
204
- 

Return to bug 21327