init III
This commit is contained in:
70
Perl OTRS/Kernel/Output/HTML/HeaderMeta/AgentFAQSearch.pm
Normal file
70
Perl OTRS/Kernel/Output/HTML/HeaderMeta/AgentFAQSearch.pm
Normal file
@@ -0,0 +1,70 @@
|
||||
# --
|
||||
# Copyright (C) 2001-2019 OTRS AG, https://otrs.com/
|
||||
# --
|
||||
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
|
||||
# the enclosed file COPYING for license information (GPL). If you
|
||||
# did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.
|
||||
# --
|
||||
|
||||
package Kernel::Output::HTML::HeaderMeta::AgentFAQSearch;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
our @ObjectDependencies = (
|
||||
'Kernel::Config',
|
||||
'Kernel::Output::HTML::Layout',
|
||||
);
|
||||
|
||||
sub new {
|
||||
my ( $Type, %Param ) = @_;
|
||||
|
||||
# allocate new hash for object
|
||||
my $Self = {};
|
||||
bless( $Self, $Type );
|
||||
|
||||
return $Self;
|
||||
}
|
||||
|
||||
sub Run {
|
||||
my ( $Self, %Param ) = @_;
|
||||
|
||||
my $LayoutObject = $Kernel::OM->Get('Kernel::Output::HTML::Layout');
|
||||
|
||||
my $Session = '';
|
||||
if ( !$LayoutObject->{SessionIDCookie} ) {
|
||||
$Session = ';' . $LayoutObject->{SessionName} . '=' . $LayoutObject->{SessionID};
|
||||
}
|
||||
|
||||
my $ConfigObject = $Kernel::OM->Get('Kernel::Config');
|
||||
|
||||
# build open search description for FAQ number
|
||||
my $Title = $ConfigObject->Get('ProductName') . ' (' . $ConfigObject->Get('FAQ::FAQHook') . ')';
|
||||
$LayoutObject->Block(
|
||||
Name => 'MetaLink',
|
||||
Data => {
|
||||
Rel => 'search',
|
||||
Type => 'application/opensearchdescription+xml',
|
||||
Title => $Title,
|
||||
Href => $LayoutObject->{Baselink} . 'Action=' . $Param{Config}->{Action}
|
||||
. ';Subaction=OpenSearchDescriptionFAQNumber' . $Session,
|
||||
},
|
||||
);
|
||||
|
||||
# build open search description for FAQ full-text
|
||||
$Title = $LayoutObject->{LanguageObject}->Translate( '%s (FAQFulltext)', $ConfigObject->Get('ProductName') );
|
||||
$LayoutObject->Block(
|
||||
Name => 'MetaLink',
|
||||
Data => {
|
||||
Rel => 'search',
|
||||
Type => 'application/opensearchdescription+xml',
|
||||
Title => $Title,
|
||||
Href => $LayoutObject->{Baselink} . 'Action=' . $Param{Config}->{Action}
|
||||
. ';Subaction=OpenSearchDescriptionFulltext' . $Session,
|
||||
},
|
||||
);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
1;
|
||||
73
Perl OTRS/Kernel/Output/HTML/HeaderMeta/AgentTicketSearch.pm
Normal file
73
Perl OTRS/Kernel/Output/HTML/HeaderMeta/AgentTicketSearch.pm
Normal file
@@ -0,0 +1,73 @@
|
||||
# --
|
||||
# Copyright (C) 2001-2019 OTRS AG, https://otrs.com/
|
||||
# --
|
||||
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
|
||||
# the enclosed file COPYING for license information (GPL). If you
|
||||
# did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.
|
||||
# --
|
||||
|
||||
package Kernel::Output::HTML::HeaderMeta::AgentTicketSearch;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
our @ObjectDependencies = (
|
||||
'Kernel::Output::HTML::Layout',
|
||||
'Kernel::Config',
|
||||
);
|
||||
|
||||
sub new {
|
||||
my ( $Type, %Param ) = @_;
|
||||
|
||||
# allocate new hash for object
|
||||
my $Self = {};
|
||||
bless( $Self, $Type );
|
||||
|
||||
return $Self;
|
||||
}
|
||||
|
||||
sub Run {
|
||||
my ( $Self, %Param ) = @_;
|
||||
|
||||
# get layout object
|
||||
my $LayoutObject = $Kernel::OM->Get('Kernel::Output::HTML::Layout');
|
||||
|
||||
my $Session = '';
|
||||
if ( !$LayoutObject->{SessionIDCookie} ) {
|
||||
$Session = ';' . $LayoutObject->{SessionName} . '='
|
||||
. $LayoutObject->{SessionID};
|
||||
}
|
||||
|
||||
# get config object
|
||||
my $ConfigObject = $Kernel::OM->Get('Kernel::Config');
|
||||
|
||||
my $Title = $ConfigObject->Get('ProductName');
|
||||
$Title .= ' (' . $ConfigObject->Get('Ticket::Hook') . ')';
|
||||
$LayoutObject->Block(
|
||||
Name => 'MetaLink',
|
||||
Data => {
|
||||
Rel => 'search',
|
||||
Type => 'application/opensearchdescription+xml',
|
||||
Title => $Title,
|
||||
Href => $LayoutObject->{Baselink} . 'Action=' . $Param{Config}->{Action}
|
||||
. ';Subaction=OpenSearchDescriptionTicketNumber' . $Session,
|
||||
},
|
||||
);
|
||||
|
||||
my $Fulltext = $LayoutObject->{LanguageObject}->Translate('Fulltext');
|
||||
$Title = $ConfigObject->Get('ProductName');
|
||||
$Title .= ' (' . $Fulltext . ')';
|
||||
$LayoutObject->Block(
|
||||
Name => 'MetaLink',
|
||||
Data => {
|
||||
Rel => 'search',
|
||||
Type => 'application/opensearchdescription+xml',
|
||||
Title => $Title,
|
||||
Href => $LayoutObject->{Baselink} . 'Action=' . $Param{Config}->{Action}
|
||||
. ';Subaction=OpenSearchDescriptionFulltext' . $Session,
|
||||
},
|
||||
);
|
||||
return 1;
|
||||
}
|
||||
|
||||
1;
|
||||
81
Perl OTRS/Kernel/Output/HTML/HeaderMeta/CustomerFAQSearch.pm
Normal file
81
Perl OTRS/Kernel/Output/HTML/HeaderMeta/CustomerFAQSearch.pm
Normal file
@@ -0,0 +1,81 @@
|
||||
# --
|
||||
# Copyright (C) 2001-2019 OTRS AG, https://otrs.com/
|
||||
# --
|
||||
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
|
||||
# the enclosed file COPYING for license information (GPL). If you
|
||||
# did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.
|
||||
# --
|
||||
|
||||
package Kernel::Output::HTML::HeaderMeta::CustomerFAQSearch;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
our @ObjectDependencies = (
|
||||
'Kernel::Config',
|
||||
'Kernel::Output::HTML::Layout',
|
||||
);
|
||||
|
||||
sub new {
|
||||
my ( $Type, %Param ) = @_;
|
||||
|
||||
# allocate new hash for object
|
||||
my $Self = {};
|
||||
bless( $Self, $Type );
|
||||
|
||||
return $Self;
|
||||
}
|
||||
|
||||
sub Run {
|
||||
my ( $Self, %Param ) = @_;
|
||||
|
||||
my $LayoutObject = $Kernel::OM->Get('Kernel::Output::HTML::Layout');
|
||||
|
||||
my $Session = '';
|
||||
if ( !$LayoutObject->{SessionIDCookie} ) {
|
||||
$Session = ';' . $LayoutObject->{SessionName} . '=' . $LayoutObject->{SessionID};
|
||||
}
|
||||
|
||||
my $ConfigObject = $Kernel::OM->Get('Kernel::Config');
|
||||
|
||||
# build open search description for FAQ number
|
||||
my $Title = $LayoutObject->{LanguageObject}->Translate(
|
||||
'%s - Customer (%s)',
|
||||
$ConfigObject->Get('ProductName'),
|
||||
$ConfigObject->Get('FAQ::FAQHook'),
|
||||
);
|
||||
$LayoutObject->Block(
|
||||
Name => 'MetaLink',
|
||||
Data => {
|
||||
Rel => 'search',
|
||||
Type => 'application/opensearchdescription+xml',
|
||||
Title => $Title,
|
||||
Href => $LayoutObject->{Baselink}
|
||||
. 'Action='
|
||||
. $Param{Config}->{Action}
|
||||
. ';Subaction=OpenSearchDescriptionFAQNumber' . $Session,
|
||||
},
|
||||
);
|
||||
|
||||
# build open search description for FAQ full-text
|
||||
$Title = $LayoutObject->{LanguageObject}->Translate(
|
||||
'%s - Customer (FAQFulltext)',
|
||||
$ConfigObject->Get('ProductName'),
|
||||
);
|
||||
$LayoutObject->Block(
|
||||
Name => 'MetaLink',
|
||||
Data => {
|
||||
Rel => 'search',
|
||||
Type => 'application/opensearchdescription+xml',
|
||||
Title => $Title,
|
||||
Href => $LayoutObject->{Baselink}
|
||||
. 'Action='
|
||||
. $Param{Config}->{Action}
|
||||
. ';Subaction=OpenSearchDescriptionFulltext' . $Session,
|
||||
},
|
||||
);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
1;
|
||||
@@ -0,0 +1,55 @@
|
||||
# --
|
||||
# Copyright (C) 2001-2019 OTRS AG, https://otrs.com/
|
||||
# --
|
||||
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
|
||||
# the enclosed file COPYING for license information (GPL). If you
|
||||
# did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.
|
||||
# --
|
||||
|
||||
package Kernel::Output::HTML::HeaderMeta::CustomerTicketSearch;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
our @ObjectDependencies = (
|
||||
'Kernel::Config',
|
||||
'Kernel::Output::HTML::Layout',
|
||||
);
|
||||
|
||||
sub new {
|
||||
my ( $Type, %Param ) = @_;
|
||||
|
||||
my $Self = {};
|
||||
bless( $Self, $Type );
|
||||
|
||||
return $Self;
|
||||
}
|
||||
|
||||
sub Run {
|
||||
my ( $Self, %Param ) = @_;
|
||||
|
||||
my $LayoutObject = $Kernel::OM->Get('Kernel::Output::HTML::Layout');
|
||||
|
||||
my $Session = '';
|
||||
if ( !$LayoutObject->{SessionIDCookie} ) {
|
||||
$Session = ';' . $LayoutObject->{SessionName} . '='
|
||||
. $LayoutObject->{SessionID};
|
||||
}
|
||||
my $Title = $Kernel::OM->Get('Kernel::Config')->Get('ProductName');
|
||||
$Title .= ' - ' . $LayoutObject->{LanguageObject}->Translate('Customer');
|
||||
$Title .= ' (' . $Kernel::OM->Get('Kernel::Config')->Get('Ticket::Hook') . ')';
|
||||
$LayoutObject->Block(
|
||||
Name => 'MetaLink',
|
||||
Data => {
|
||||
Rel => 'search',
|
||||
Type => 'application/opensearchdescription+xml',
|
||||
Title => $Title,
|
||||
Href => $LayoutObject->{Baselink} . 'Action=' . $Param{Config}->{Action}
|
||||
. ';Subaction=OpenSearchDescription' . $Session,
|
||||
},
|
||||
);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
1;
|
||||
82
Perl OTRS/Kernel/Output/HTML/HeaderMeta/PublicFAQSearch.pm
Normal file
82
Perl OTRS/Kernel/Output/HTML/HeaderMeta/PublicFAQSearch.pm
Normal file
@@ -0,0 +1,82 @@
|
||||
# --
|
||||
# Copyright (C) 2001-2019 OTRS AG, https://otrs.com/
|
||||
# --
|
||||
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
|
||||
# the enclosed file COPYING for license information (GPL). If you
|
||||
# did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.
|
||||
# --
|
||||
|
||||
package Kernel::Output::HTML::HeaderMeta::PublicFAQSearch;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
our @ObjectDependencies = (
|
||||
'Kernel::Config',
|
||||
'Kernel::Output::HTML::Layout',
|
||||
);
|
||||
|
||||
sub new {
|
||||
my ( $Type, %Param ) = @_;
|
||||
|
||||
# allocate new hash for object
|
||||
my $Self = {};
|
||||
bless( $Self, $Type );
|
||||
|
||||
return $Self;
|
||||
}
|
||||
|
||||
sub Run {
|
||||
my ( $Self, %Param ) = @_;
|
||||
|
||||
my $LayoutObject = $Kernel::OM->Get('Kernel::Output::HTML::Layout');
|
||||
|
||||
my $Session = '';
|
||||
if ( !$LayoutObject->{SessionIDCookie} ) {
|
||||
$Session = ';' . $LayoutObject->{SessionName} . '='
|
||||
. $LayoutObject->{SessionID};
|
||||
}
|
||||
|
||||
my $ConfigObject = $Kernel::OM->Get('Kernel::Config');
|
||||
|
||||
# build open search description for FAQ number
|
||||
my $Title = $LayoutObject->{LanguageObject}->Translate(
|
||||
'%s - Public (%s)',
|
||||
$ConfigObject->Get('ProductName'),
|
||||
$ConfigObject->Get('FAQ::FAQHook'),
|
||||
);
|
||||
$LayoutObject->Block(
|
||||
Name => 'MetaLink',
|
||||
Data => {
|
||||
Rel => 'search',
|
||||
Type => 'application/opensearchdescription+xml',
|
||||
Title => $Title,
|
||||
Href => $LayoutObject->{Baselink}
|
||||
. 'Action='
|
||||
. $Param{Config}->{Action}
|
||||
. ';Subaction=OpenSearchDescriptionFAQNumber' . $Session,
|
||||
},
|
||||
);
|
||||
|
||||
# build open search description for FAQ full-text
|
||||
$Title = $LayoutObject->{LanguageObject}->Translate(
|
||||
'%s - Public (FAQFulltext)',
|
||||
$ConfigObject->Get('ProductName'),
|
||||
);
|
||||
$LayoutObject->Block(
|
||||
Name => 'MetaLink',
|
||||
Data => {
|
||||
Rel => 'search',
|
||||
Type => 'application/opensearchdescription+xml',
|
||||
Title => $Title,
|
||||
Href => $LayoutObject->{Baselink}
|
||||
. 'Action='
|
||||
. $Param{Config}->{Action}
|
||||
. ';Subaction=OpenSearchDescriptionFulltext' . $Session,
|
||||
},
|
||||
);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
1;
|
||||
39
Perl OTRS/Kernel/Output/HTML/HeaderMeta/Refresh.pm
Normal file
39
Perl OTRS/Kernel/Output/HTML/HeaderMeta/Refresh.pm
Normal file
@@ -0,0 +1,39 @@
|
||||
# --
|
||||
# Copyright (C) 2001-2019 OTRS AG, https://otrs.com/
|
||||
# --
|
||||
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
|
||||
# the enclosed file COPYING for license information (GPL). If you
|
||||
# did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.
|
||||
# --
|
||||
|
||||
package Kernel::Output::HTML::HeaderMeta::Refresh;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
our @ObjectDependencies = (
|
||||
'Kernel::Output::HTML::Layout',
|
||||
);
|
||||
|
||||
sub new {
|
||||
my ( $Type, %Param ) = @_;
|
||||
|
||||
# allocate new hash for object
|
||||
my $Self = {};
|
||||
bless( $Self, $Type );
|
||||
|
||||
return $Self;
|
||||
}
|
||||
|
||||
sub Run {
|
||||
my ( $Self, %Param ) = @_;
|
||||
|
||||
$Kernel::OM->Get('Kernel::Output::HTML::Layout')->AddJSData(
|
||||
Key => 'Refresh',
|
||||
Value => $Param{Refresh},
|
||||
);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
1;
|
||||
Reference in New Issue
Block a user