Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

search_title_node_processing()

Description

Convert node searches into a friendly syntax. Used by search_title_processing.php

Parameters

ColumnTypeDefaultDescription
$string string Search string

Return

string

Location

include/search_functions.php lines 3580 to 3592

Definition

 
function search_title_node_processing($string)
    {
    if(
substr(ltrim($string), 02)==NODE_TOKEN_PREFIX)
        {
        
# convert to shortname:value
        
$node_id=substr(ltrim($string), 2);
        
$node_data=array();
        
get_node($node_id$node_data);
        
$field_title=ps_value("select name value from resource_type_field where ref=?", array("i",$node_data['resource_type_field']), '''schema');
        return 
$field_title ":" $node_data['name'];
        }
    return 
$string;
    }

This article was last updated 4th December 2024 08:35 Europe/London time based on the source file dated 27th November 2024 09:40 Europe/London time.