[
https://issues.apache.org/jira/browse/JENA-169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16730580#comment-16730580
]
Bruno P. Kinoshita commented on JENA-169:
-----------------------------------------
I think having the search box could be useful to others, especially as our
documentation grows. But perhaps instead of Google, use another search provider
such as DDG (privacy, etc)?
They have [the same service|https://duckduckgo.com/search_box] as described
above, in the issue original description. Also would be good to use the HTTPS
website, if taking privacy into consideration.
So the following patch:
{code:java}
$ svn diff
Index: content/index.mdtext
===================================================================
--- content/index.mdtext (revision 1849901)
+++ content/index.mdtext (working copy)
@@ -11,6 +11,13 @@
</p>
+<div class="hidden-xs">
+<iframe
src="https://duckduckgo.com/search.html?site=https://jena.apache.org/&prefill=Search
Jena website"
style="overflow:hidden;margin:0;padding:0;width:408px;height:40px;"
frameborder="0"></iframe>
+</div>
+<div class="visible-xs">
+<iframe
src="https://duckduckgo.com/search.html?site=https://jena.apache.org/&prefill=Search
Jena website"
style="overflow:hidden;margin:0;padding:0;width:200px;height:40px;"
frameborder="0"></iframe>
+</div>
+
</div><!-- end hero unit -->
</div>{code}
Produces the following on normal screens:
!Screen Shot 2018-12-29 at 19.13.14-fullpage.png|width=550,height=326!
And the following on small screens (e.g. mobile/smart phones):
!image-2018-12-29-19-17-20-592.png!
Had to adjust as the default size of 480px would be a bit too large for small
mobile devices.
Here's the result of searching for CRUD (which I remembered existed in the
Permissions page):
!image-2018-12-29-19-19-55-983.png|width=485,height=537!
> Add a search box to the Jena website
> ------------------------------------
>
> Key: JENA-169
> URL: https://issues.apache.org/jira/browse/JENA-169
> Project: Apache Jena
> Issue Type: Improvement
> Components: Web site
> Reporter: Paolo Castagna
> Priority: Minor
> Attachments: Screen Shot 2018-12-29 at 19.13.14-fullpage.png,
> image-2018-12-29-19-17-20-592.png, image-2018-12-29-19-19-55-983.png
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> It would be good to have a search box on the Jena website.
> With Google users can use "site:" to restrict a query to a specific website,
> for example: "something site:incubator.apache.org/jena".
> However, this is limited to a single website, you cannot use site: more than
> once.
> We could make this easier for people having:
> <form action="http://www.google.com/search" method="get">
> <input value="incubator.apache.org/jena" name="sitesearch"
> type="hidden"/>
> <input size="20" name="q" id="query" type="text" value="..."
> onclick="if(this.value == '...') {this.value = ''}"/>
> <input name="Search" value="Search" type="submit"/>
> </form>
> Another option (IMHO more interesting) is to use Google Customised Search:
> http://www.google.com/cse/
> For example:
> http://www.google.co.uk/cse/home?cx=009507611290970701536:-nmuokitb-0
> You can then configure the websites you want to be used for a search, in this
> case (for example):
> http://incubator.apache.org/jena/*
> http://openjena.org/*
> http://markmail.org/*
> http://svn.apache.org/repos/asf/incubator/jena/Experimental/*
> http://svn.apache.org/repos/asf/incubator/jena/Scratch/*
> http://svn.apache.org/repos/asf/incubator/jena/Jena2/*
> https://issues.apache.org/jira/browse/JENA-*
> ...
> You can have this on your website:
> <div id="cse" style="width: 100%;">Loading</div>
> <script src="http://www.google.co.uk/jsapi" type="text/javascript"></script>
> <script type="text/javascript">
> google.load('search', '1', {language : 'en'});
> google.setOnLoadCallback(function() {
> var customSearchControl = new google.search.CustomSearchControl(
> '009507611290970701536:-nmuokitb-0');
>
> customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
> customSearchControl.draw('cse');
> }, true);
> </script>
> <link rel="stylesheet"
> href="http://www.google.com/cse/style/look/default.css" type="text/css" />
> Some useful (old!) quotes from Jakob Nielsen on "search":
> "Search is an important part of any big website. When users want to search,
> they typically scan the homepage looking for "the little box where I can
> type," so your search should be a box. [Make your search box at least 25
> characters wide,] so it can accommodate multiple words without obscuring
> parts of the user's query.
> (Update: Based on more recent findings, my recommendation is now to make the
> search box 27 characters wide. This and other new guidelines are covered in
> my tutorial on Fundamental Guidelines for Web Usability at the annual
> Usability Week conference.)"
> -- http://www.useit.com/alertbox/20020512.html (2002)
> "This is a small point, but there's no reason to label the search box if
> there's a "Search" button right next to it. Interaction design's less is more
> principle tells us that extra elements in a dialogue distract users from the
> salient points and reduce their ability to understand an interface."
> -- http://www.useit.com/alertbox/20031110.html (2003)
> Jakob Nielsen put the search box on to bottom right corner on his website. I
> find that a good choice, but I am not sure it fits in the current layout.
> If that is not possible, having the search box elsewhere IMHO is better than
> not having it.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)