Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

get_advanced_search_collection_fields()

Parameters

ColumnTypeDefaultDescription
$archive false
$hiddenfields ""

Location

include/search_functions.php lines 105 to 124

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"global"=>0"resource_types"=>'Collections');
    
$fields[] = array("ref" => "collection_keywords""name" => "collectionkeywords""display_condition" => """tooltip_text" => """title"=>"Keywords""type" => 0"global"=>0"resource_types"=>'Collections');
    
$fields[] = array("ref" => "collection_owner""name" => "collectionowner""display_condition" => """tooltip_text" => """title"=>"Owner""type" => 0"global"=>0"resource_types"=>'Collections');
    
# 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 19th March 2024 08:05 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.