From: miker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Wed, 21 Jul 2010 19:58:44 +0000 (+0000)
Subject: add parameter support to acn, acp and auri unapi axes
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=236d0f96815c8bf9cc588bcea10cefcd47f761d9;p=evergreen%2Fpines.git

add parameter support to acn, acp and auri unapi axes

git-svn-id: svn://svn.open-ils.org/ILS/trunk@17001 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm
index 20559f8934..c9ce84024b 100644
--- a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm
+++ b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm
@@ -586,6 +586,10 @@ sub unapi {
 	my @params = ($id);
 	push @params, $lib, $lib_depth, $flesh_feed, $paging if ($base_format eq 'holdings_xml');
 
+	# for acn, acp, etc, the "lib" pathinfo position isn't useful.
+	# however, we can have it carry extra options like no_record! (comma separated)
+	push @params, { map { ( $_ => 1 ) } split(',', $lib) } if ( grep { $type eq $_} qw/acn acp auri/);
+
 	my $req = $supercat->request($method,@params);
 	my $data = $req->gather();