From 513d2d6141be4482b8884f4b213e68d7dbf6424f Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Mon, 22 Dec 2014 12:17:16 -0500
Subject: [PATCH] Reduced redundancy; added important missing fields.

---
 .../VuFind/src/VuFind/ILS/Driver/Sample.php   | 32 ++++++++-----------
 1 file changed, 14 insertions(+), 18 deletions(-)

diff --git a/module/VuFind/src/VuFind/ILS/Driver/Sample.php b/module/VuFind/src/VuFind/ILS/Driver/Sample.php
index 38ae470a773..77d6852b33d 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/Sample.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/Sample.php
@@ -67,14 +67,19 @@ class Sample extends AbstractBase
      */
     public function getStatus($id)
     {
-        $holding[] = array('availability' => 1,
-                           'status' => 'Available',
-                           'location' => '3rd Floor Main Library',
-                           'reserve' => 'No',
-                           'callnumber' => 'A1234.567',
-                           'duedate' => '',
-                           'number' => 1);
-        return $holding;
+        return array(
+            array(
+                'id' => $id,
+                'availability' => 1,
+                'status' => 'Available',
+                'location' => '3rd Floor Main Library',
+                'reserve' => 'N',
+                'callnumber' => 'A1234.567',
+                'duedate' => '',
+                'number' => 1,
+                'barcode' => '1234567890',
+            )
+        );
     }
 
     /**
@@ -91,16 +96,7 @@ class Sample extends AbstractBase
     {
         $items = array();
         foreach ($ids as $id) {
-            $holding = array();
-            $holding[] = array('availability' => 1,
-                               'id' => $id,
-                               'status' => 'Available',
-                               'location' => '3rd Floor Main Library',
-                               'reserve' => 'No',
-                               'callnumber' => 'A1234.567',
-                               'duedate' => '',
-                               'number' => 1);
-            $items[] = $holding;
+            $items[] = $this->getStatus($id);
         }
         return $items;
     }
-- 
GitLab