Return-Path: Delivered-To: apmail-incubator-jspwiki-dev-archive@locus.apache.org Received: (qmail 7952 invoked from network); 29 Oct 2007 11:27:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Oct 2007 11:27:33 -0000 Received: (qmail 92679 invoked by uid 500); 29 Oct 2007 11:27:20 -0000 Delivered-To: apmail-incubator-jspwiki-dev-archive@incubator.apache.org Received: (qmail 92638 invoked by uid 500); 29 Oct 2007 11:27:20 -0000 Mailing-List: contact jspwiki-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-dev@incubator.apache.org Delivered-To: mailing list jspwiki-dev@incubator.apache.org Received: (qmail 92629 invoked by uid 99); 29 Oct 2007 11:27:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2007 04:27:20 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of murray07@altheim.com designates 69.90.72.72 as permitted sender) Received: from [69.90.72.72] (HELO athens.clusterspan.net) (69.90.72.72) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2007 11:27:31 +0000 Received: (qmail 27600 invoked from network); 29 Oct 2007 07:27:00 -0400 Received: from ip-58-28-147-221.ubs-dsl.xnet.co.nz (HELO ?192.168.1.66?) (58.28.147.221) by athens.clusterspan.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 29 Oct 2007 07:26:59 -0400 Message-ID: <4725C380.6090601@altheim.com> Date: Tue, 30 Oct 2007 00:26:56 +1300 From: Murray Altheim User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: jspwiki-dev@incubator.apache.org Subject: question on FindContent.jsp Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I've made some modifications to FindContent.jsp to include another JSP called FindOptions.jsp, which adds more options to the drop-down menu, in particular: _Lucene field_ _menu command_ DC.title: Title DC.creator: Creator DC.contributor: Contributor DC.subject: Keywords DC.description: Description DCTERMS.abstract: Abstract Things seem to work just fine, except that if there is content in the input text field the behaviour is not quite right. For example, if I enter "Snyder" in the search box and then select "Author" from the menu, the contents change to author:Snyder and if I select another of the existing menu items (that are part of the default FindContent.jsp) the "author:" is correctly removed and the new menu selection prepended, e.g., "author:Syncer" becomes "name:Snyder". But if I start with one of the new items and then select another of the new menu items the text field isn't correctly cleared and I end up with, e.g., "DC.subject:DC.creator:Snyder". I'm guessing this *may* have something to do with the '.' character in the field name (?), dunno. How does one clear that field? I can't seem to find the code that does that? Thanks, Murray ---- PS, this functionality basically permits (via an extension of the form plugin) entry of bibliographic records which can then be searched on using Dublin Core fields (as above). It's been trickier than I'd thought but it's tentatively working... a wiki as a digital library catalog. ........................................................................... Murray Altheim === = = http://www.altheim.com/murray/ = = === SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk = = = = Boundless wind and moon - the eye within eyes, Inexhaustible heaven and earth - the light beyond light, The willow dark, the flower bright - ten thousand houses, Knock at any door - there's one who will respond. -- The Blue Cliff Record