summaryrefslogtreecommitdiff
path: root/httemplate/search/elements
diff options
context:
space:
mode:
authorivan <ivan>2006-10-08 08:17:06 +0000
committerivan <ivan>2006-10-08 08:17:06 +0000
commit22c70177969f30e2e419b32cb5d475c143f10b12 (patch)
tree575464d297893db89f4452e85d3d5b3a92c89974 /httemplate/search/elements
parent1530e25643850b0cd6e59332c79c8760243b5d5e (diff)
add menu items for credit card batching, debug last-minute changes to payby.pm, add ACL for re-processing batches, separate CARD and CHEK batches, fixed defaults for batch formats
Diffstat (limited to 'httemplate/search/elements')
-rw-r--r--httemplate/search/elements/search.html23
1 files changed, 18 insertions, 5 deletions
diff --git a/httemplate/search/elements/search.html b/httemplate/search/elements/search.html
index cbf0887a6..14e1dd095 100644
--- a/httemplate/search/elements/search.html
+++ b/httemplate/search/elements/search.html
@@ -4,8 +4,13 @@
% # (everything not commented required is optional)
% #
% # # basic options, required
-% # 'title' => 'Page title',
-% # 'name' => 'items', #name for the records returned
+% # 'title' => 'Page title',
+% #
+% # 'name_singular' => 'item', #singular name for the records returned
+% # #OR# # (preferred, will be pluralized automatically)
+% # 'name' => 'items', #plural name for the records returned
+% # # (deprecated, will be singularlized
+% # # simplisticly)
% #
% # # some HTML callbacks...
% # 'menubar' => '', #menubar arrayref
@@ -282,10 +287,18 @@
% my( $url, $method ) = @$redirect;
% redirect( $url. $rows->[0]->$method() );
% } else {
+% if ( $opt{'name_singular'} ) {
+% $opt{'name'} = PL($opt{'name_singular'});
+% }
% ( my $xlsname = $opt{'name'} ) =~ s/\W//g;
-% #$opt{'name'} =~ s/s$// if $total == 1;
-% $opt{'name'} =~ s/((s)e)?s$/$2/ if $total == 1; #should use Lingua::bs
-% # to "depluralize"
+% if ( $total == 1 ) {
+% if ( $opt{'name_singular'} ) {
+% $opt{'name'} = $opt{'name_singular'}
+% } else {
+% #$opt{'name'} =~ s/s$// if $total == 1;
+% $opt{'name'} =~ s/((s)e)?s$/$2/ if $total == 1;
+% }
+% }
%
% my @menubar = ();
% if ( $opt{'menubar'} ) {