Skip to content

Commit

Permalink
Rainbow Books - Rename module to EdifactRainbowBooks
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemhall committed Oct 9, 2024
1 parent b43cb95 commit 0ebaba6
Show file tree
Hide file tree
Showing 43 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced;
package Koha::Plugin::Com::ByWaterSolutions::EdifactRainbowBooks;

## It's good practive to use Modern::Perl
use Modern::Perl;
Expand Down Expand Up @@ -28,9 +28,9 @@ our $VERSION = "{VERSION}";

## Here is our metadata, some keys are required, some are optional
our $metadata = {
name => 'Edifact - Enhanced',
name => 'Edifact - Rainbow Books',
author => 'Kyle M Hall',
description => 'Edifact Enhanced plugin',
description => 'Edifact plugin for Rainbow Books',
date_authored => '2015-12-21',
date_updated => '1900-01-01',
minimum_version => '22.05.06',
Expand Down Expand Up @@ -60,30 +60,30 @@ sub new {
sub edifact {
my ( $self, $args ) = @_;

require Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact;
require Koha::Plugin::Com::ByWaterSolutions::EdifactRainbowBooks::Edifact;

my $edifact = Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact->new($args);
my $edifact = Koha::Plugin::Com::ByWaterSolutions::EdifactRainbowBooks::Edifact->new($args);
return $edifact;
}

sub edifact_order {
my ( $self, $args ) = @_;

require Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Order;
require Koha::Plugin::Com::ByWaterSolutions::EdifactRainbowBooks::Edifact::Order;

$args->{params}->{plugin} = $self;
my $edifact_order = Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Order->new( $args->{params} );
my $edifact_order = Koha::Plugin::Com::ByWaterSolutions::EdifactRainbowBooks::Edifact::Order->new( $args->{params} );
return $edifact_order;
}

sub edifact_transport {
my ( $self, $args ) = @_;

require Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Transport;
require Koha::Plugin::Com::ByWaterSolutions::EdifactRainbowBooks::Edifact::Transport;

$args->{params}->{plugin} = $self;

my $edifact_transport = Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Transport->new( $args->{vendor_edi_account_id}, $self );
my $edifact_transport = Koha::Plugin::Com::ByWaterSolutions::EdifactRainbowBooks::Edifact::Transport->new( $args->{vendor_edi_account_id}, $self );

return $edifact_transport;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact;
package Koha::Plugin::Com::ByWaterSolutions::EdifactRainbowBooks::Edifact;

# Copyright 2014 PTFS-Europe Ltd
#
Expand All @@ -22,8 +22,8 @@ use warnings;
use File::Slurp;
use Carp;
use Encode qw( from_to );
use Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Segment;
use Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Message;
use Koha::Plugin::Com::ByWaterSolutions::EdifactRainbowBooks::Edifact::Segment;
use Koha::Plugin::Com::ByWaterSolutions::EdifactRainbowBooks::Edifact::Message;

my $separator = {
component => q{\:},
Expand Down Expand Up @@ -174,7 +174,7 @@ sub message_array {
elsif ( $seg->tag eq 'UNT' ) {
$in_msg = 0;
if ( @{$msg} ) {
push @{$msg_arr}, Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Message->new($msg);
push @{$msg_arr}, Koha::Plugin::Com::ByWaterSolutions::EdifactRainbowBooks::Edifact::Message->new($msg);
$msg = [];
}
}
Expand Down Expand Up @@ -226,7 +226,7 @@ sub segmentize {
}x;
my @segmented;
while ( $raw =~ /($re)/g ) {
push @segmented, Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Segment->new( { seg_string => $1 } );
push @segmented, Koha::Plugin::Com::ByWaterSolutions::EdifactRainbowBooks::Edifact::Segment->new( { seg_string => $1 } );
}
return \@segmented;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Message;
package Koha::Plugin::Com::ByWaterSolutions::EdifactRainbowBooks::Edifact::Message;

# Copyright 2014 PTFS-Europe Ltd
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Order;
package Koha::Plugin::Com::ByWaterSolutions::EdifactRainbowBooks::Edifact::Order;

use Modern::Perl;
use utf8;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Segment;
package Koha::Plugin::Com::ByWaterSolutions::EdifactRainbowBooks::Edifact::Segment;

# Copyright 2014 PTFS-Europe Ltd
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Koha::Plugin::Com::ByWaterSolutions::EdifactEnhanced::Edifact::Transport;
package Koha::Plugin::Com::ByWaterSolutions::EdifactRainbowBooks::Edifact::Transport;

# Copyright 2014 PTFS-Europe Ltd
#
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "koha-plugin-edifact-enhanced",
"description": "Koha Edifact Enhanced Plugin",
"name": "koha-plugin-edifact-enhanced-rainbowbooks",
"description": "Koha Edifact Enhanced Plugin - Rainbow Books",
"devDependencies": {
"gulp": "^3.9.1",
"gulp-cli": "^1.2.2",
Expand Down

0 comments on commit 0ebaba6

Please sign in to comment.