Commit 6c8665b68597191027de0277452cf44f014016e5

Authored by nbm
1 parent 37a0679c

Make the boolean search template somewhat easier to modify so it can

perform multiple roles.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3947 c91229c3-7414-0410-bfa2-8a42b809f60b
templates/ktcore/boolean_search.smarty
... ... @@ -46,10 +46,13 @@ legend { border: 1px dotted #999;}
46 46 </select>
47 47 </div>
48 48  
49   -<h2>Boolean Search</h2>
  49 +<h2>{$title|default:"Boolean Search"}</h2>
50 50  
51 51 <form method="POST">
52 52 <input type="hidden" name="action" value="performSearch" />
  53 +{if $sNameTitle}
  54 + {$sNameTitle}: <input type="text" name="name" value="" /> <br />
  55 +{/if}
53 56  
54 57 <p class="helpText">Return items which match &nbsp;<select
55 58 name="boolean_search[join]"><option value="AND">all</option><option value="OR">any</option></select> of the <strong>criteria groups</strong> specified.</p>
... ... @@ -84,7 +87,7 @@ name=&quot;boolean_search[join]&quot;&gt;&lt;option value=&quot;AND&quot;&gt;all&lt;/option&gt;&lt;option value=&quot;OR&quot;&gt;a
84 87 <input type="button" value="add another set of criteria" onclick="addBooleanGroup(this)"/>
85 88  
86 89  
87   - <input type="submit" name="submit" value="Search" />
  90 + <input type="submit" name="submit" value="{$searchButton|default:"Search"}" />
88 91 </form>
89 92  
90 93 <!--
... ...