Bug 32030: ERM - Home view
Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
d808c54daa
commit
8c33eac0a8
|
|
@ -0,0 +1,38 @@
|
|||
#! /usr/bin/perl
|
||||
|
||||
# Copyright 2022 Koha Development Team
|
||||
#
|
||||
# This file is part of Koha.
|
||||
#
|
||||
# Koha is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# Koha is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Koha; if not, see <http://www.gnu.org/licenses>.
|
||||
|
||||
use Modern::Perl;
|
||||
use CGI qw ( -utf8 );
|
||||
use C4::Context;
|
||||
use C4::Auth qw( get_template_and_user );
|
||||
use C4::Output qw( output_html_with_http_headers );
|
||||
|
||||
use Koha::Cities;
|
||||
|
||||
my $input = CGI->new;
|
||||
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{ template_name => "erm/erm-home.tt",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
flagsrequired => { erm => '*' },
|
||||
}
|
||||
);
|
||||
|
||||
output_html_with_http_headers $input, $cookie, $template->output;
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
[% USE Koha %]
|
||||
<div class="gradient">
|
||||
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName | html %]</a></h1>
|
||||
<div id="header_search">
|
||||
<div id="erm_search" class="residentsearch">
|
||||
<form action="/cgi-bin/koha/erm/agreements.pl">
|
||||
<label class="tip" for="searchfield">Agreement search:</label>
|
||||
<input type="hidden" name="op" value="search" />
|
||||
<input class="head-searchbox" type="text" size="40" name="searchfield" id="searchfield" value="">
|
||||
<input type="submit" class="submit" value="Search" />
|
||||
</form>
|
||||
</div>
|
||||
<ul>
|
||||
<li>
|
||||
<a class="keep_text" href="#agreement_search">Search agreements</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
[% USE raw %]
|
||||
[% USE Koha %]
|
||||
[% USE Branches %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Electronic resources management › Koha</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
</head>
|
||||
<body id="erm_erm-home" class="circ">
|
||||
[% INCLUDE 'header.inc' %]
|
||||
[% INCLUDE 'erm-search.inc' %]
|
||||
|
||||
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
|
||||
<ol>
|
||||
<li>
|
||||
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" aria-current="page">
|
||||
Electronic resources management
|
||||
</a>
|
||||
</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="main container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-5 col-md-4">
|
||||
<h3>Electronic resources management</h3>
|
||||
|
||||
<ul class="buttons-list">
|
||||
<li>
|
||||
<a class="erm-button" href="/cgi-bin/koha/erm/agreements.pl"><i class="fa fa-upload"></i> Agreements</a>
|
||||
</li>
|
||||
<li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
[% INCLUDE 'intranet-bottom.inc' %]
|
||||
|
|
@ -111,6 +111,13 @@
|
|||
<a class="icon_general icon_ill" href="/cgi-bin/koha/ill/ill-requests.pl"><i class="fa fa-fw fa-retweet"></i>ILL requests</a>
|
||||
</li>
|
||||
[% END %]
|
||||
|
||||
[% IF Koha.Preference('ERMModule') && CAN_user_erm %]
|
||||
<li>
|
||||
<a class="icon_general icon_erm" href="/cgi-bin/koha/erm/erm-home.pl"><i class="fa fa-fw fa-newspaper-o"></i>Electronic resources management</a>
|
||||
</li>
|
||||
[% END %]
|
||||
|
||||
</ul>
|
||||
</div> <!-- /.col-sm-6 -->
|
||||
<div class="col-sm-6">
|
||||
|
|
|
|||
Loading…
Reference in New Issue