Josef Moravec
804677265e
Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
131 lines
4.6 KiB
Text
131 lines
4.6 KiB
Text
[% USE Branches %]
|
|
[% USE KohaDates %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Serials › Check expiration</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% INCLUDE 'calendar.inc' %]
|
|
<script type="text/javascript" language="JavaScript">
|
|
// <![CDATA[
|
|
$(document).ready(function(){
|
|
$(".renew_subscription").on("click",function(e){
|
|
e.preventDefault();
|
|
var subscriptionid = $(this).data("subscriptionid");
|
|
popup( subscriptionid );
|
|
});
|
|
});
|
|
function popup(subscriptionid) {
|
|
newin=window.open("subscription-renew.pl?mode=popup&subscriptionid="+subscriptionid,'popup','width=590,height=440,toolbar=false,scrollbars=yes,resize=yes');
|
|
}
|
|
|
|
// ]]>
|
|
</script>
|
|
<!-- End of additions -->
|
|
</head>
|
|
<body id="ser_checkexpiration" class="ser">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'serials-search.inc' %]
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> › Check expiration </div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
<h1>Check expiration</h1>
|
|
|
|
<form name="f" action="/cgi-bin/koha/serials/checkexpiration.pl" method="post" class="validated">
|
|
<fieldset class="rows">
|
|
<legend>Filter results:</legend>
|
|
|
|
<ol>
|
|
<li><label for="title">Title:</label>
|
|
<input id="title" type="text" name="title" size="15" value="[% title | html %]" /></li>
|
|
|
|
<li><label for="issn">ISSN:</label>
|
|
<input id="issn" type="text" name="issn" size="15" value="[% issn | html %]" /></li>
|
|
[% IF can_change_library %]
|
|
<li><label for="branch">Library:</label>
|
|
<select id="branch" name="branch">
|
|
<option value="">All</option>
|
|
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
|
|
</select>
|
|
</li>
|
|
[% END %]
|
|
|
|
<li><label for="date" class="required">Expiring before:</label>
|
|
<input id="date" type="text" name="date" size="10" value="[% date | $KohaDates %]" class="required focus datepicker" required="required" />
|
|
<span class="required">Required</span>
|
|
<div class="hint">[% INCLUDE 'date-format.inc' %]</div></li>
|
|
</ol>
|
|
|
|
</fieldset>
|
|
<fieldset class="action"><input type="submit" value="Search" /></fieldset>
|
|
</form>
|
|
|
|
[% IF ( subscriptions_loop ) %]
|
|
<p>
|
|
<b>[% numsubscription %]</b> subscription(s)
|
|
[% IF ( title ) %]
|
|
with title matching <span class="title">[% title | html %]</class>
|
|
[% IF ( issn ) %]and [% END %]
|
|
[% END %]
|
|
[% IF ( issn ) %]
|
|
with ISSN matching <b>[% issn | html %]</b>
|
|
[% END %]
|
|
will expire before <b>[% date | $KohaDates %]</b>
|
|
</p>
|
|
<table>
|
|
<tr>
|
|
<th>ISSN</th>
|
|
<th>Title</th>
|
|
[% IF can_change_library %]<th>Library</th>[% END %]
|
|
<th>OPAC note</th>
|
|
<th>Nonpublic note</th>
|
|
<th>Expiration date</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
[% FOREACH subscriptions_loo IN subscriptions_loop %]
|
|
<tr>
|
|
<td>
|
|
[% subscriptions_loo.issn %]
|
|
</td>
|
|
<td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptions_loo.subscriptionid |url %]">[% IF ( subscriptions_loo.title ) %]
|
|
[% subscriptions_loo.title |html %]
|
|
[% ELSE %]
|
|
|
|
|
[% END %]
|
|
</a>
|
|
</td>
|
|
[% IF can_change_library %]<td>
|
|
[% Branches.GetName( subscriptions_loo.branchcode ) %]
|
|
</td>[% END %]
|
|
<td>
|
|
[% subscriptions_loo.notes %]
|
|
</td>
|
|
<td>
|
|
[% subscriptions_loo.internalnotes %]
|
|
</td>
|
|
<td>
|
|
[% subscriptions_loo.expirationdate | $KohaDates %]
|
|
</td>
|
|
<td class="actions">
|
|
<a href="/cgi-bin/koha/serials/subscription-add.pl?op=modify&subscriptionid=[% subscriptions_loo.subscriptionid %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
|
|
<a href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscriptions_loo.subscriptionid %]" data-subscriptionid="[% subscriptions_loo.subscriptionid %]" class="btn btn-default btn-xs renew_subscription"><i class="fa fa-refresh"></i> Renew</a>
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
</table>
|
|
[% ELSIF searched %]
|
|
<p>No results for your query</p>
|
|
[% END %]
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="yui-b">
|
|
[% INCLUDE 'serials-menu.inc' %]
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|