<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.ext-9.eprints-hosting.org/w/index.php?action=history&amp;feed=atom&amp;title=User_search.pl</id>
	<title>User search.pl - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ext-9.eprints-hosting.org/w/index.php?action=history&amp;feed=atom&amp;title=User_search.pl"/>
	<link rel="alternate" type="text/html" href="https://wiki.ext-9.eprints-hosting.org/w/index.php?title=User_search.pl&amp;action=history"/>
	<updated>2026-05-10T23:21:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://wiki.ext-9.eprints-hosting.org/w/index.php?title=User_search.pl&amp;diff=14435&amp;oldid=prev</id>
		<title>Drn@ecs.soton.ac.uk: Added page about config file</title>
		<link rel="alternate" type="text/html" href="https://wiki.ext-9.eprints-hosting.org/w/index.php?title=User_search.pl&amp;diff=14435&amp;oldid=prev"/>
		<updated>2022-01-31T09:03:49Z</updated>

		<summary type="html">&lt;p&gt;Added page about config file&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{dirs}}&lt;br /&gt;
{{cfgd}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;user_search.pl&amp;#039;&amp;#039;&amp;#039; contains configuration for the search on user data objects, which can be found under the &amp;#039;&amp;#039;&amp;#039;Search users&amp;#039;&amp;#039;&amp;#039; in the &amp;#039;&amp;#039;Editorial tools&amp;#039;&amp;#039; tab of the &amp;#039;&amp;#039;Admin&amp;#039;&amp;#039; menu.  This configuration is stored under &amp;lt;code&amp;gt;$c-&amp;gt;{search}-&amp;gt;{user}&amp;lt;/code&amp;gt; hash reference.  This contains the following parts:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;search_fields&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; - The fields that the user search will query.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;citation&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; - The citation format for items in the results page of user search.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;page_size&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; - The number of results that should appear per page.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;order_methods&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; - Ordering options provided at the top of the user search results page.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;default_order&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; - The default order search results will appear for user search.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;show_zero_results&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; - Should the user search go to the results page if there are no results of stay on the search form page with a warning about no results.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
 $c-&amp;gt;{search}-&amp;gt;{user} ={&lt;br /&gt;
   search_fields =&amp;gt; [&lt;br /&gt;
     { meta_fields =&amp;gt; [ &amp;quot;name&amp;quot;, ] },&lt;br /&gt;
     { meta_fields =&amp;gt; [ &amp;quot;username&amp;quot;, ] },&lt;br /&gt;
     { meta_fields =&amp;gt; [ &amp;quot;userid&amp;quot;, ] },&lt;br /&gt;
     { meta_fields =&amp;gt; [ &amp;quot;dept&amp;quot;,&amp;quot;org&amp;quot; ] },&lt;br /&gt;
     { meta_fields =&amp;gt; [ &amp;quot;address&amp;quot;,&amp;quot;country&amp;quot;, ] },&lt;br /&gt;
     { meta_fields =&amp;gt; [ &amp;quot;usertype&amp;quot;, ] },&lt;br /&gt;
     { meta_fields =&amp;gt; [ &amp;quot;email&amp;quot; ] },&lt;br /&gt;
   ],&lt;br /&gt;
   citation =&amp;gt; &amp;quot;result&amp;quot;,&lt;br /&gt;
   page_size =&amp;gt; 20,&lt;br /&gt;
   order_methods =&amp;gt; {&lt;br /&gt;
     &amp;quot;byname&amp;quot;     =&amp;gt;  &amp;quot;name/joined&amp;quot;,&lt;br /&gt;
     &amp;quot;byjoin&amp;quot;     =&amp;gt;  &amp;quot;joined/name&amp;quot;,&lt;br /&gt;
     &amp;quot;byrevjoin&amp;quot;      =&amp;gt;  &amp;quot;-joined/name&amp;quot;,&lt;br /&gt;
     &amp;quot;bytype&amp;quot;     =&amp;gt;  &amp;quot;usertype/name&amp;quot;,&lt;br /&gt;
   },&lt;br /&gt;
   default_order =&amp;gt; &amp;quot;byname&amp;quot;,&lt;br /&gt;
   show_zero_results =&amp;gt; 1,&lt;br /&gt;
 };&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[API:EPrints/Search]]&lt;/div&gt;</summary>
		<author><name>Drn@ecs.soton.ac.uk</name></author>
	</entry>
</feed>