From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- helpcontent2/help3xsl/xap_templ_query.xsl | 295 ++++++++++++++++++++++++++++++ 1 file changed, 295 insertions(+) create mode 100644 helpcontent2/help3xsl/xap_templ_query.xsl (limited to 'helpcontent2/help3xsl/xap_templ_query.xsl') diff --git a/helpcontent2/help3xsl/xap_templ_query.xsl b/helpcontent2/help3xsl/xap_templ_query.xsl new file mode 100644 index 000000000..51f2fea3c --- /dev/null +++ b/helpcontent2/help3xsl/xap_templ_query.xsl @@ -0,0 +1,295 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +$set{flag_spelling,$ne{$cgi{SPELL},0}} +$set{stemmer,$if{$cgi{STEMMER},$cgi{STEMMER},none}} +$set{flag_spelling_correction,true} +$set{thousand,$.}$set{decimal,.} +$setmap{prefix,,$split{ S B F},title,S,author,A,topic,B} +${ +$def{PREV, +$if{$ne{$topdoc,0},, +} +} + +$def{NEXT, +$if{$ne{$last,$msize},, +} +} + +$def{P,} +$def{PAGE,$if{$gt{$1,9},$if{$gt{$1,99},$P{$1,$div{$1,100}}}$P{$1,$mod{$div{$1,10},10}}}$P{$1,$mod{$1,10}}} + +$def{S,$1} +$def{SPAGE,$if{$gt{$1,9},$if{$gt{$1,99},$S{$1,$div{$1,100}}}$S{$1,$mod{$div{$1,10},10}}}$S{$1,$mod{$1,10}}} +} + +$def{PREV,$if{$ne{$topdoc,0},}} + +$def{PAGE,} + +$def{SPAGE,} + + $def{NEXT,$if{$ne{$last,$msize},}} + + +$if{$query,Omega Search: $html{$query},Omega Search} + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+ + + +
+ +
+
+
+
+ + + +
+]]>]]> + $map{$topterms,$html{$prettyterm{$_}} } +
+
+} +
+$if{$suggestion,]]>$html{$suggestion}

} + +$or{$html{$error}, +$if{$eq{$msize,0}, +$if{$query,]]>]]> + + +$if{$map{$queryterms,$set{U,$unstem{$_}}$set{F_$opt{U},$add{$opt{F_$opt{U}},$freq{$_}}}},$list{$unique{$map{$queryterms,$set{U,$unstem{$_}}$list{$html{$unique{$opt{U}}},,/,}: $nice{$opt{F_$opt{U}}}}},]]>]]> + +$hitlist{ +} +
+${$percentage%} +
+
+
+
+$if{$and{$field{modtime},$ne{$field{modtime},-1}}, + +
+} +$if{$field{language},]]>$html{$field{language}}
} +$if{$field{size},]]>$html{$filesize{$field{size}}}
} +
+ +
+
+
$html{$or{$field{caption},$field{title},$prettyurl{$field{url}},Untitled}}
+$snippet{$field{sample}}
+$html{$prettyurl{$field{url}}}
+ +]]>$list{$map{$terms,$html{$prettyterm{$_}}},$. , and }${for lynx:}

+ +
+ +${suppress next, prev, and page links if there's only one page} +$if{$ne{$lastpage,1}, +$set{a,$if{$opt{pagelink_height}, HEIGHT=$opt{pagelink_height}}$if{$opt{pagelink_width}, WIDTH=$opt{pagelink_width}}} + +${1-W ... X-(this)-Y ...} +$set{w,$min{3,$add{$thispage,-1}}} +$set{x,$max{$add{$opt{w},1},$add{$thispage,-3}}} +$set{y,$min{$lastpage,$add{$thispage,8}}} +$PREV +$map{$range{1,$opt{w}},$PAGE{$_}} +$if{$ne{$add{$opt{w},1},$opt{x}},...} +$map{$range{$opt{x},$add{$thispage,-1}},$PAGE{$_}} +$SPAGE{$thispage} +$map{$range{$add{$thispage,1},$opt{y}},$PAGE{$_}} +$if{$ne{$opt{y},$lastpage},...} +$NEXT +} +}} +

+$if{$ne{$topdoc,0},} +$if{$ne{$hitsperpage,10},} +$if{$cgi{COLLAPSE},} +$if{$queryterms,} + +$list{$relevants,} +$if{$cgi{THRESHOLD},} +${Preserve any B filters used - this needs modifying if you modify this template + to have B on radio buttons, SELECT, etc} +$map{$cgilist{B},} + +
+ + + +$log{query.log} + +]]> +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-- cgit v1.2.3