<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.eprints.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.eprints.org/w/index.php?action=history&amp;feed=atom&amp;title=User_search.pl"/>
	<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=User_search.pl&amp;action=history"/>
	<updated>2026-05-05T22:03:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.8</generator>
	<entry>
		<id>https://wiki.eprints.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.eprints.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;
'''user_search.pl''' contains configuration for the search on user data objects, which can be found under the '''Search users''' in the ''Editorial tools'' tab of the ''Admin'' 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;lt;code&amp;gt;search_fields&amp;lt;/code&amp;gt;''' - The fields that the user search will query.&lt;br /&gt;
* '''&amp;lt;code&amp;gt;citation&amp;lt;/code&amp;gt;''' - The citation format for items in the results page of user search.&lt;br /&gt;
* '''&amp;lt;code&amp;gt;page_size&amp;lt;/code&amp;gt;''' - The number of results that should appear per page.&lt;br /&gt;
* '''&amp;lt;code&amp;gt;order_methods&amp;lt;/code&amp;gt;''' - Ordering options provided at the top of the user search results page.&lt;br /&gt;
* '''&amp;lt;code&amp;gt;default_order&amp;lt;/code&amp;gt;''' - The default order search results will appear for user search.&lt;br /&gt;
* '''&amp;lt;code&amp;gt;show_zero_results&amp;lt;/code&amp;gt;''' - 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>