From 9a911c69ebdc5ffb0ec6fe803e914da067ceb5f1 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Thu, 14 Mar 2013 11:41:34 -0400
Subject: [PATCH] Use patronHomeUbId instead of dbKey to generate Renewal Key.
 Thanks to Sandino Narciso Vargas Perez for the bug report and fix.

---
 module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php b/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php
index 459ecd390eb..b2f53c68ead 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php
@@ -391,7 +391,7 @@ class VoyagerRestful extends Voyager implements \VuFindHttp\HttpServiceAwareInte
         );
 
         // Create Rest API Renewal Key
-        $restItemID = $this->ws_dbKey. "|" . $itemId;
+        $restItemID = $this->ws_patronHomeUbId . "|" . $itemId;
 
         // Add to Hierarchy
         $hierarchy[$restItemID] = false;
-- 
GitLab