]> git.decadent.org.uk Git - maypole.git/commitdiff
ordering goodness for search results
authorSebastian Riedel <sri@labs.kraih.com>
Thu, 21 Oct 2004 18:36:44 +0000 (18:36 +0000)
committerSebastian Riedel <sri@labs.kraih.com>
Thu, 21 Oct 2004 18:36:44 +0000 (18:36 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@253 48953598-375a-da11-a14b-00016c27c3ee

templates/factory/list

index b8f4fb8774925bfd5f24268a81ff4bf3a24bb1f2..ac3635fd27c690475b26fdeaf45c624534d4ef27 100644 (file)
                     IF pager;
                 SET additional = additional _ "&amp;o2=desc" 
                 IF col == request.query.order and request.query.o2 != "desc";
-                link(classmetadata.table, "list", additional,
+                SET action = "list";
+                FOR col = classmetadata.columns.list;
+                  IF request.query.$col;
+                    SET additional =
+                        additional  _ "&" _ col _ "=" _ request.query.$col;
+                    SET action = "search";
+                  END;
+                END;
+                link(classmetadata.table, action, additional,
                     classmetadata.colnames.$col);
                 IF col == request.query.order;
                     IF request.query.o2 != "desc";