Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

get_advanced_search_collection_fields()

Parameters

ColumnTypeDefaultDescription
$archive false
$hiddenfields ""

Location

include/search_functions.php lines 99 to 118

Definition

 
function get_advanced_search_collection_fields($archive=false$hiddenfields="")
    {
    
# Returns a list of fields suitable for advanced searching. 
    
$return=array();

    
$hiddenfields=explode(",",$hiddenfields);

    
$fields[]=Array ("ref" => "collection_title""name" => "collectiontitle""display_condition" => """tooltip_text" => """title"=>"Title""type" => 0);
    
$fields[]=Array ("ref" => "collection_keywords""name" => "collectionkeywords""display_condition" => """tooltip_text" => """title"=>"Keywords""type" => 0);
    
$fields[]=Array ("ref" => "collection_owner""name" => "collectionowner""display_condition" => """tooltip_text" => """title"=>"Owner""type" => 0);
    
# Apply field permissions and check for fields hidden in advanced search
    
for ($n=0;$n<count($fields);$n++)
        {

        if (!
in_array($fields[$n]["ref"], $hiddenfields))
        {
$return[]=$fields[$n];}
        }

    return 
$return;
    }

This article was last updated 11th July 2020 02:05 Europe/London time based on the source file dated 7th July 2020 15:22 Europe/London time.