From 55a32df850de03ff4d2e000494281d125ca003c0 Mon Sep 17 00:00:00 2001 From: john Date: Mon, 13 Jan 2003 20:30:22 +0000 Subject: [PATCH] search results are much prettier --- etc/bundles/open_en.properties | 32 +++++- etc/open/search_results.template | 211 +++++++++++++++++++++++---------------- 2 files changed, 154 insertions(+), 89 deletions(-) diff --git a/etc/bundles/open_en.properties b/etc/bundles/open_en.properties index ff795967..7fa6bac4 100755 --- a/etc/bundles/open_en.properties +++ b/etc/bundles/open_en.properties @@ -1,6 +1,7 @@ ########## open posting ########## # language: english +langcode=en optional=optional required=required @@ -80,4 +81,33 @@ postingdupe.htmltitle=open posting - duplicate posting postingdupe.title=Stay calm. Things will happen soon. postingdupe.explanation=You probably clicked on the reload button or submitted your posting a second time. The fact that you can read this text means that your posting has been recieved and will soon be included in the article page.
postingdupe.no_panic=Don't panic -postingdupe.back=Back \ No newline at end of file +postingdupe.back=Back + +search.info=Results of your search: +search.title=SEARCH +search.htmltitle=MirSearch (powered by lucene) +search.mainsearchfield=Search for the following in title,content, or description: +search.searchbutton=Search! +search.refine=Refine your search: +search.all_or_any=all words or any of the words? +search.all=all words +search.any=any of the words +search.by_author=search for articles written by: +search.by_topic=search in the following topic only: +search.all_topics=All topics +search.with_images=only return content with images? +search.with_audio=only return content with audio? +search.with_video=only return content with video? +search.yes=yes +search.no=no +search.sort_how=Sort results how? +search.by_score=By score +search.old_first=Newest first +search.new_first=Oldest first +search.back=Back +search.forward=Forward +search.numhits=Number of hits +search.result.title=Title: +search.result.author=Author: +search.result.date=Date: +search.result.description=Description: diff --git a/etc/open/search_results.template b/etc/open/search_results.template index 61dc9578..f6579e83 100755 --- a/etc/open/search_results.template +++ b/etc/open/search_results.template @@ -17,104 +17,139 @@
-

Search for the following in title,content, or description:

-

- -

all words or any of the words?

- -all words -any of the words - -all words -any of the words - - -

Search for articles written by:

-

- -

Search in the following topic only:

- - -

only return content with images?

- -Yes -No - -Yes -No - - -

only return content with audio?

- -Yes -No - -Yes -No - - -

only return content with video?

- -Yes -No - -Yes -No - -

how would you like the results sorted?

-checked="true">By score -checked="true">Newest first -checked="true">Oldest first - - +
+ ${lang("search.mainsearchfield")}
+ +
+
+${lang("search.refine")}
+ + + + + + + + + + + + + +
${lang("search.all_or_any")} + + ${lang("search.all")} + ${lang("search.any")} + + ${lang("search.all")} + ${lang("search.any")} + +
${lang("search.by_author")} + +
${lang("search.by_topic")} + +
+ + + + + + + + + + + + + +
${lang("search.with_images")} + + ${lang("search.yes")} + ${lang("search.no")} + + ${lang("search.yes")} + ${lang("search.no")} + +
${lang("search.with_audio")} + + ${lang("search.yes")} + ${lang("search.no")} + + ${lang("search.yes")} + ${lang("search.no")} + +
${lang("search.with_video")} + + ${lang("search.yes")} + ${lang("search.no")} + + ${lang("search.yes")} + ${lang("search.no")} + +
+${lang("search.sort_how")} +checked="true">${lang("search.by_score")} +checked="true">${lang("search.new_first")} +checked="true">${lang("search.old_first")} +
- -Previous Lucene Query was: ${data.queryString}
+ + +
- + - + -
-${lang("search.info")} +${lang("search.info")}
-Number of hits = ${data.numberOfHits} +${lang("search.numhits")} = ${data.numberOfHits}
- -Title: ${h.title} - - - - - - -
-Author: ${h.creator}
-Date: ${h.webdb_create_formatted}
-Description: ${h.description}
- - -
+
+ + + + + + +
+ ${lang("search.result.title")} ${h.title} + + + + + + +
+ ${lang("search.result.author")} ${h.creator}
+ ${lang("search.result.date")} ${h.webdb_create_formatted}
+ ${lang("search.result.description")} ${h.description}
+
+ + + +
+
@@ -122,7 +157,7 @@ Description: ${h.description}
- >> ${lang("postingdone.back")} + >> ${lang("postingdone.back")} -- 2.11.0