=== modified file 'ResolverResolver.pm'
--- ResolverResolver.pm	2009-10-24 03:07:04 +0000
+++ ResolverResolver.pm	2009-10-27 14:31:28 +0000
@@ -74,6 +74,9 @@
 # ... and this manages cached results for us ...
 use OpenSRF::Utils::Cache;
 
+# ... and this gives us access to the Fieldmapper
+use OpenILS::Utils::Fieldmapper;
+
 my $prefix = "open-ils.resolver_"; # Prefix for caching values
 my $cache;
 my $cache_timeout;
@@ -147,14 +150,12 @@
 
     my @sfx_result;
     foreach my $target (@targets) {
-        my $public_name = $target->findvalue('./target_public_name');
-        my $target_url = $target->findvalue('.//target_url');
-        my $target_coverage = $target->findvalue('.//coverage_statement');
-        my $target_embargo = $target->findvalue('.//embargo_statement');
-        push @sfx_result, {
-            public_name => $public_name, coverage => $target_coverage,
-            embargo => $target_embargo, url => $target_url
-        };
+	my $rhr = Fieldmapper::resolver::holdings_record->new;
+        $rhr->public_name($target->findvalue('./target_public_name'));
+        $rhr->target_url($target->findvalue('.//target_url'));
+        $rhr->target_coverage($target->findvalue('.//coverage_statement'));
+        $rhr->target_embargo($target->findvalue('.//embargo_statement'));
+        push @sfx_result, $rhr;
     }
 
     # Stuff this into the cache
