[ List Archives Home ] [ Thread index for 2008 ] [ Date index for 2008 ] [ Author index for 2008 ]


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
...or come to our poster session on how to do just that!

Custom Search Pages in WebPAC Pro

Presenters: Oleg Kreymer, Systems Librarian, The Metropolitan Museum of
Art
Dan Lipcan, Assistant Manager for Systems and Special Projects, The
Metropolitan Museum of Art

Oleg Kreymer
Systems Librarian
T.J. Watson Library
The Metropolitan Museum of Art
1000 Fifth Avenue
New York, NY 10028
(212) 570-3841

------------------------------

Message: 4
Date: Tue, 22 Apr 2008 12:49:16 -0400
From: Bob Duncan <duncanr at lafayette dot edu>
Subject: Re: [IUG] OPAC search box for title search with advanced
limits?
To: IUG INNOPAC List <innopac at innopacusers dot org>
Message-ID: <auto-000018771705 at lafayette dot edu>
Content-Type: text/plain; charset="us-ascii"; format=flowed

At 06:12 AM 04/22/2008, Natalie wrote:
>I'm trying to set up a search box to do a title search with an
>advanced limit, either on location=electronic resource (elro ) or
>material type = electronic (m=m)
>. . .
>I have tried both method=post and method=get and have run out of
>ideas. Can anyone help me set up a title search with an advanced limit?


It's not a form method thing; it's a WebPAC application and
Javascript thing. Only keyword searches can be pre-search limited,
so you'll need to create a keyword search form that limits the search
terms to the title segment of the keyword index. But since the
formulation of the keyword search query string is driven by
Javascript that most sites can't (or probably shouldn't) edit, you
need to either add some Javascript to formulate the query string, or
edit the form code (making sure that the edited form still has the
Javascript it needs). IMO, the latter is easier.

Try this. Open your advanced search form in a browser; view the
source code and copy all of it. Paste it into a new document (one
that will live on your Innovative server), then replace the entire
search form in the new document with something along the lines of this:

<form action="#" enctype="multipart/form-data: " name="search"
id="search" onsubmit="return submitSearch(this, '/search/X', false);">
<div style="display:none;">
<select name="fieldLimit1">
<option value="t:" selected="selected">Title:</option>
</select>
</div>
<input maxlength="75" size="35" name="searchText1" />
<div style="display:none;">
<select name="b">
<option value="elro" selected="selected">Electronic Resource</option>
</select>
</div>
<input type="submit" value="Submit">
<input type="Reset" value="Clear" onClick="iiiDoReset_1();" />
</form>


Bob Duncan


~!~!~!~!~!~!~!~!~!~!~!~!~
Robert E. Duncan
Systems Librarian
Editor of IT Communications
Lafayette College
Easton, PA 18042
duncanr at lafayette dot edu
http://www.library.lafayette.edu/