From 3f3fd026b521c78e275840cf07d469e5f3e11a72 Mon Sep 17 00:00:00 2001
From: Kyle M Hall <kyle@bywatersolutions.com>
Date: Mon, 14 Mar 2016 17:29:49 +0000
Subject: [PATCH] Bug 8483 - Move Koha::Biblioitem(s) to Koha::BiblioItem(s)

---
 Koha/{Biblioitem.pm => BiblioItem.pm}   | 4 ++--
 Koha/{Biblioitems.pm => BiblioItems.pm} | 8 ++++----
 misc/export_records.pl                  | 4 ++--
 tools/export.pl                         | 4 ++--
 4 files changed, 10 insertions(+), 10 deletions(-)
 rename Koha/{Biblioitem.pm => BiblioItem.pm} (92%)
 rename Koha/{Biblioitems.pm => BiblioItems.pm} (87%)

diff --git a/Koha/Biblioitem.pm b/Koha/BiblioItem.pm
similarity index 92%
rename from Koha/Biblioitem.pm
rename to Koha/BiblioItem.pm
index 8d353c8..7186d46 100644
--- a/Koha/Biblioitem.pm
+++ b/Koha/BiblioItem.pm
@@ -1,4 +1,4 @@
-package Koha::Biblioitem;
+package Koha::BiblioItem;
 
 # This file is part of Koha.
 #
@@ -25,7 +25,7 @@ use base qw(Koha::Object);
 
 =head1 NAME
 
-Koha::Biblioitem - Koha Biblioitem Object class
+Koha::BiblioItem - Koha BiblioItem Object class
 
 =head1 API
 
diff --git a/Koha/Biblioitems.pm b/Koha/BiblioItems.pm
similarity index 87%
rename from Koha/Biblioitems.pm
rename to Koha/BiblioItems.pm
index c4d6144..c7b963b 100644
--- a/Koha/Biblioitems.pm
+++ b/Koha/BiblioItems.pm
@@ -1,4 +1,4 @@
-package Koha::Biblioitems;
+package Koha::BiblioItems;
 
 # This file is part of Koha.
 #
@@ -21,13 +21,13 @@ use Carp;
 
 use Koha::Database;
 
-use Koha::Biblioitem;
+use Koha::BiblioItem;
 
 use base qw(Koha::Objects);
 
 =head1 NAME
 
-Koha::Biblioitem - Koha Biblioitem Object class
+Koha::BiblioItem - Koha BiblioItem Object class
 
 =head1 API
 
@@ -44,7 +44,7 @@ sub _type {
 }
 
 sub object_class {
-    return 'Koha::Biblioitem';
+    return 'Koha::BiblioItem';
 }
 
 1;
diff --git a/misc/export_records.pl b/misc/export_records.pl
index 2783542..4c05f04 100755
--- a/misc/export_records.pl
+++ b/misc/export_records.pl
@@ -27,7 +27,7 @@ use C4::Context;
 use C4::Csv;
 use C4::Record;
 
-use Koha::Biblioitems;
+use Koha::BiblioItems;
 use Koha::Database;
 use Koha::Exporter::Record;
 use Koha::DateUtils qw( dt_from_string output_pref );
@@ -149,7 +149,7 @@ if ( $record_type eq 'bibs' ) {
             ),
 
         };
-        my $biblioitems = Koha::Biblioitems->search( $conditions, { join => 'items' } );
+        my $biblioitems = Koha::BiblioItems->search( $conditions, { join => 'items' } );
         while ( my $biblioitem = $biblioitems->next ) {
             push @record_ids, $biblioitem->biblionumber;
         }
diff --git a/tools/export.pl b/tools/export.pl
index efcd544..efa75b5 100755
--- a/tools/export.pl
+++ b/tools/export.pl
@@ -27,7 +27,7 @@ use C4::Koha;               # GetItemTypes
 use C4::Output;
 
 use Koha::Authority::Types;
-use Koha::Biblioitems;
+use Koha::BiblioItems;
 use Koha::Database;
 use Koha::DateUtils qw( dt_from_string output_pref );
 use Koha::Exporter::Record;
@@ -148,7 +148,7 @@ if ( $op eq "export" ) {
                     ),
 
                 };
-                my $biblioitems = Koha::Biblioitems->search( $conditions, { join => 'items' } );
+                my $biblioitems = Koha::BiblioItems->search( $conditions, { join => 'items' } );
                 while ( my $biblioitem = $biblioitems->next ) {
                     push @record_ids, $biblioitem->biblionumber;
                 }
-- 
2.1.4