Bug 25421: Update POD
[srvgit] / Koha / Libraries.pm
index 71f6b44..27e4a23 100644 (file)
@@ -4,18 +4,18 @@ package Koha::Libraries;
 #
 # 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 3 of the License, or (at your option) any later
-# version.
+# 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 3 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.
+# 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.
+# You should have received a copy of the GNU General Public License
+# along with Koha; if not, see <http://www.gnu.org/licenses>.
 
 use Modern::Perl;
 
@@ -28,6 +28,7 @@ use Koha::Database;
 use Koha::Item::Transfer::Limits;
 use Koha::Items;
 use Koha::Library;
+use Koha::Patrons;
 
 use base qw(Koha::Objects);
 
@@ -43,7 +44,7 @@ Koha::Libraries - Koha Library Object set class
 
 =head3 pickup_locations
 
-Returns available pickup locations for
+Returns available pickup locations (Koha::Library objects) for
     A. a specific item
     B. a biblio
     C. none of the above, simply all libraries with pickup_location => 1
@@ -85,7 +86,6 @@ sub pickup_locations {
         unless C4::Context->preference('UseBranchTransferLimits');
     my $limittype = C4::Context->preference('BranchTransferLimitsType');
 
-    my $items;
     if ($item) {
         unless (ref($item) eq 'Koha::Item') {
             $item = Koha::Items->find($item);