[open-ils-commits] r16492 - trunk/Open-ILS/src/extras (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue May 25 09:51:27 EDT 2010
Author: erickson
Date: 2010-05-25 09:51:25 -0400 (Tue, 25 May 2010)
New Revision: 16492
Modified:
trunk/Open-ILS/src/extras/openurl_map.pl
Log:
added support for propagating searchOrg, searchSort, searchSortDir, searchLang, startIndex, and count in openurl mapper
Modified: trunk/Open-ILS/src/extras/openurl_map.pl
===================================================================
--- trunk/Open-ILS/src/extras/openurl_map.pl 2010-05-25 03:24:07 UTC (rev 16491)
+++ trunk/Open-ILS/src/extras/openurl_map.pl 2010-05-25 13:51:25 UTC (rev 16492)
@@ -11,6 +11,12 @@
kw => '',
au => '',
ti => '',
+ searchOrg => '',
+ searchSort => '',
+ searchSortDir => '',
+ searchLang => '',
+ startIndex => '',
+ count => '',
);
for (@parts) {
@@ -20,6 +26,18 @@
$params{ti} .= $1 . ' ';
} elsif (/^e?is.n=(.*)$/o) {
$params{kw} .= $1 . ' ';
+ } elsif (/^searchSort=(.*)$/o) {
+ $params{searchSort} = $1;
+ } elsif (/^searchSortDir=(.*)$/o) {
+ $params{searchSortDir} = $1;
+ } elsif (/^searchLang=(.*)$/o) {
+ $params{searchLang} = $1;
+ } elsif (/^startIndex=(.*)$/o) {
+ $params{startIndex} = $1;
+ } elsif (/^count=(.*)$/o) {
+ $params{count} = $1;
+ } elsif (/^searchOrg=(.*)$/o) {
+ $params{searchOrg} = $1;
} elsif (/^[^=]+=(.*)$/o) {
$params{kw} .= $1 . ' ';
}
More information about the open-ils-commits
mailing list