From: miker Date: Mon, 5 Apr 2010 00:18:07 +0000 (+0000) Subject: better regexp with new paging functionallity X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0f0d2419bf4169b93dd274bb44cd7e56bb783dd3;p=evergreen%2Fpines.git better regexp with new paging functionallity git-svn-id: svn://svn.open-ils.org/ILS/trunk@16127 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 fe98cd038d..59e71a9ea6 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm @@ -331,7 +331,7 @@ sub unapi { if (!$format) { my $body = "Content-type: application/xml; charset=utf-8\n\n"; - if ($uri =~ m{^tag:[^:]+:([^\/]+)/([^/]+?)(?:\[([^\]]+)\])?(?:/(.+))?}o) { + if ($uri =~ m{^tag:[^:]+:([^\/]+)/(\d+)(?:\[([0-9,]+)\])?(?:/(.+))?}o) { $id = $2; $paging = $3; $lib = uc($4); @@ -419,7 +419,7 @@ sub unapi { return Apache2::Const::OK; } - if ($uri =~ m{^tag:[^:]+:([^\/]+)/([^/]+?)(?:\[([^\]]+)\])?(?:/(.+))?}o) { + if ($uri =~ m{^tag:[^:]+:([^\/]+)/(\d+)(?:\[([0-9,]+)\])?(?:/(.+))?}o) { $id = $2; $paging = $3; $lib = uc($4);