From 34cc6d301c8e078a06736c48fc13591aaf3f0955 Mon Sep 17 00:00:00 2001 From: Eva Cerninakova Date: Tue, 20 Sep 2016 10:36:30 -0700 Subject: [PATCH] Docs: improving documentation for catalog searching widgets Signed-off-by: Jane Sandberg --- docs/opac/search_form.txt | 71 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 69 insertions(+), 2 deletions(-) diff --git a/docs/opac/search_form.txt b/docs/opac/search_form.txt index b16e5370cb..f1561da465 100644 --- a/docs/opac/search_form.txt +++ b/docs/opac/search_form.txt @@ -6,10 +6,12 @@ simple search form to any HTML page. The following code demonstrates how to create a quick search box suitable for the header of your web site: -.Sample search form +Simple search form +------------------ + [source,html] ------------------------------------------------------------------------------ -
+ @@ -26,3 +28,68 @@ site: <3> Replace ''4'' with the ID number of the organizational unit at which you wish to anchor your search. This is the value of the ''locg'' parameter in your normal search. + +Advanced search form +-------------------- + +[source,html] +-------------------------------------------------------------------------------- + + + +    + + + + + +
+-------------------------------------------------------------------------------- + +Encoding +-------- + +For non English characters it is vital to set the attribute `accept-charset="UTF-8"` in the form tag (as in the examples above). If the parameter is not set, records with non English characters will not be retrieved. + +Setting the document type +------------------------- + +You can set the document types to be searched using the attribute `option value=` in the form. For the value use MARC 21 code defining the type of record (i.e. https://www.loc.gov/marc/bibliographic/bdleader.html[Leader, position 06]). + +For example, for musical recordings you could use `` + +Setting the library +------------------- + +Instead of searching the entire consortium, you can set the Library to be searched in using the attribute `option value=` in the form. For the value use Evergreen database.organization unit ID. + + -- 2.43.2