Koha::Controller::Catalogue - Koha Controller
my ( $template, $loggedinuser, $cookie, $flags ) = Koha::Controller::Catalogue->init( $args );
Initializes the catalogue controller by generating the template, authenticating the user, and populating the template with standard search-related variables.
Takes a hashref $args containing the CGI query, template_name, type, and flagsrequired.
Returns a list containing the $template object, the $loggedinuser ID, the session $cookie, and the user's $flags.
This prepares the common 'search to' functionality params e.g.: - 'Search to hold' - 'Search to order' - etc