+[% USE raw %]
[% USE Asset %]
[% USE AuthorisedValues %]
[% USE Branches %]
[% USE KohaDates %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Serials › Serial collection information for [% bibliotitle %]</title>
+<title>Koha › Serials › Serial collection information for [% bibliotitle | html %]</title>
[% INCLUDE 'doc-head-close.inc' %]
-[% Asset.css("css/datatables.css") %]
</head>
<body id="ser_serials-collection" 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> › Serial collection information for <i>[% bibliotitle %]</i></div>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> › Serial collection information for <i>[% bibliotitle | html %]</i></div>
-<div id="doc3" class="yui-t2">
-
- <div id="bd">
- <div id="yui-main">
- <div class="yui-b">
-
- <!-- Modal -->
- <div id="multi_receiving" class="modal" tabindex="-1" role="dialog" aria-labelledby="multi_receiving_label" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <form action="/cgi-bin/koha/serials/serials-collection.pl" method="post">
- <div class="modal-body">
- <fieldset class="rows">
- <legend>Multi receiving</legend>
- <ol>
- <li>
- <label for="nbissues" class="required">How many issues do you want to receive?</label>
- <input type="text" size="25" id="nbissues" name="nbissues" required="required" />
- <li>
- <li>
- <label for="date_received_today">Set the date received to today?</label>
- <input type="checkbox" id="date_received_today" name="date_received_today" />
- </li>
- </ol>
- <input type="hidden" name="op" value="gennext" />
- <input type="hidden" name="subscriptionid" value="[% subscriptionidlist %]" />
- </fieldset>
- </div>
-
- <div class="modal-footer">
- <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
- <input type="submit" class="btn btn-default approve" value="Multi receiving" />
- </div>
- </form>
- </div>
- </div>
- </div>
+<div class="main container-fluid">
+ <div class="row">
+ <div class="col-sm-10 col-sm-push-2">
+ <main>
+ [% INCLUDE 'modals/serials_multi_receiving.inc' %]
[% UNLESS ( popup ) %]
[% INCLUDE 'serials-toolbar.inc' %]
- <h1>Serial collection information for <i>[% bibliotitle %]</i>
- [% IF location %] ([% AuthorisedValues.GetByCode( 'LOC', location ) %]) [% END %]
- [% IF ( callnumber ) %]callnumber: [% callnumber %][% END %]</h1>
+ <h1>Serial collection information for <i>[% bibliotitle | html %]</i>
+ [% IF location %] ([% AuthorisedValues.GetByCode( 'LOC', location ) | html %]) [% END %]
+ [% IF ( callnumber ) %]callnumber: [% callnumber | html %][% END %]</h1>
[% END %]
[% IF ( subscriptions ) %]
</tr>
[% FOREACH subscription IN subscriptions %]
<tr>
- <td><a href="subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]"># [% subscription.subscriptionid %]</a> </td>
- <td>[% subscription.frequency.description %]</td>
- <td>[% subscription.numberpattern.label %]</td>
- <td>[% IF subscription.branchcode %][% Branches.GetName( subscription.branchcode ) %][% END %]</td>
- <td> [% subscription.callnumber %]</td>
- <td> [% subscription.notes %]
+ <td><a href="subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]"># [% subscription.subscriptionid | html %]</a> </td>
+ <td>[% subscription.frequency.description | html %]</td>
+ <td>[% subscription.numberpattern.label | html %]</td>
+ <td>[% IF subscription.branchcode %][% Branches.GetName( subscription.branchcode ) | html %][% END %]</td>
+ <td> [% subscription.callnumber | html %]</td>
+ <td> [% subscription.notes | html %]
[% UNLESS subscription.closed %]
[% IF ( subscription.subscriptionexpired ) %]
<br /><span class="problem"> Subscription expired</span>
[% UNLESS subscription.closed %]
[% IF ( routing && CAN_user_serials_routing ) %]
[% IF ( subscription.hasRouting ) %]
- <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]"><i class="fa fa-pencil"></i> Edit routing list</a>
+ <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid | html %]"><i class="fa fa-pencil"></i> Edit routing list</a>
[% ELSE %]
- <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]&op=new"><i class="fa fa-plus"></i> Create routing list</a>
+ <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid | html %]&op=new"><i class="fa fa-plus"></i> Create routing list</a>
[% END %]
[% END %]
- [% IF ( subscription.abouttoexpire ) %]<a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscription.subscriptionid %]" onclick="popup([% subscription.subscriptionid %]); return false;"><i class="fa fa-refresh"></i> Renew</a>
+ [% IF ( subscription.abouttoexpire ) %]<a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscription.subscriptionid | html %]" onclick="popup([% subscription.subscriptionid | html %]); return false;"><i class="fa fa-refresh"></i> Renew</a>
[% ELSE %]
- [% IF ( subscription.subscriptionexpired ) %]<a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscription.subscriptionid %]" onclick="popup([% subscription.subscriptionid %]); return false;"><i class="fa fa-refresh"></i> Renew</a>
+ [% IF ( subscription.subscriptionexpired ) %]<a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscription.subscriptionid | html %]" onclick="popup([% subscription.subscriptionid | html %]); return false;"><i class="fa fa-refresh"></i> Renew</a>
[% ELSE %]
[% END %]
[% END %]
[% IF ( subscr ) %]
[% IF ( subscriptioncount > 1 ) %]
-<tr ><td colspan="8"> <a href="serials-collection.pl?biblionumber=[% biblionumber %]">See any subscription attached to this biblio</a></td>
+<tr ><td colspan="8"> <a href="serials-collection.pl?biblionumber=[% biblionumber | uri %]">See any subscription attached to this biblio</a></td>
</tr>
[% END %]
[% END %]
[% IF year.year == 'manage' %]
<li><a href="#subscription-year-manage">Manage</a></li>
[% ELSE %]
- <li><a href="#subscription-year-[% year.year %]">[% year.year %]</a></li>
+ <li><a href="#subscription-year-[% year.year | uri %]">[% year.year | html %]</a></li>
[% END %]
[% END %]
[% END %]
</ul>
[% FOREACH year IN years %]
-<div id="subscription-year-[% year.year %]">
+<div id="subscription-year-[% year.year | html %]">
[% IF ( CAN_user_serials_receive_serials ) %]
<p>
<div class="btn-group"><input type="submit" value="Edit serials" class="btn btn-default btn-sm" /></div>
[% UNLESS subscription.closed %]
- <div class="btn-group"><input type="button" value="Generate next" onclick="javascription:generateNext([% subscriptionidlist %])" class="btn btn-default btn-sm" /></div>
+ <div class="btn-group"><input type="button" value="Generate next" onclick="javascription:generateNext([% subscriptionidlist | html %])" class="btn btn-default btn-sm" /></div>
[% IF ( subscriptions.size == 1 and !serialsadditems ) %]
- <div class="btn-group"><a href="#multi_receiving" role="button" class="btn btn-default btn-sm" data-toggle="modal"><i class="fa fa-plus"></i> Multi receiving</a></div>
+ <div class="btn-group"><input type="button" value="Multi receiving" href="#multi_receiving" class="btn btn-default btn-sm" data-toggle="modal"></div>
[% END %]
[% END %]
</p>
[% END %]
<span class="checkall">
- <a class="CheckAll" href="#" onclick="CheckAll('subscription-year-[% year.year %]'); return false;">Select all</a>
+ <a class="CheckAll" href="#" onclick="CheckAll('subscription-year-[% year.year | html %]'); return false;">Select all</a>
</span> |
<span class="clearall">
- <a class="CheckNone" href="#" onclick="CheckNone('subscription-year-[% year.year %]'); return false;">Clear all</a>
+ <a class="CheckNone" href="#" onclick="CheckNone('subscription-year-[% year.year | html %]'); return false;">Clear all</a>
</span>
<table class="subscription-year-table">
<thead>
disabled
[% ELSE %]
[% IF ( serial.subscriptionexpired ) %]
- <input type="checkbox" name="serialid" value="[% serial.serialid %]" disabled="disabled" />
+ <input type="checkbox" name="serialid" value="[% serial.serialid | html %]" disabled="disabled" />
[% ELSE %]
[% IF ( serial.checked ) %]
- <input type="checkbox" class="checkboxed" name="serialid" checked="checked" value="[% serial.serialid %]" />
+ <input type="checkbox" class="checkboxed" name="serialid" checked="checked" value="[% serial.serialid | html %]" />
[% ELSE %]
- <input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid %]" />
+ <input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid | html %]" />
[% END %]
[% END %]
[% END %]
</td>
[% END %]
[% IF ( subscriptions.size > 1 ) %]
- <td><a href="serials-collection.pl?subscriptionid=[% serial.subscriptionid %]">[% serial.subscriptionid %]</a></td>
+ <td><a href="serials-collection.pl?subscriptionid=[% serial.subscriptionid | uri %]">[% serial.subscriptionid | html %]</a></td>
[% END %]
<td>
- <span title="[% serial.publisheddate %]">
+ <span title="[% serial.publisheddate | html %]">
[% IF serial.publisheddate %]
[% serial.publisheddate | $KohaDates %]
[% ELSE %]
</td>
<td>
[% IF serial.publisheddatetext %]
- <span title="[% serial.publisheddatetext %]">
- [% serial.publisheddatetext %]
+ <span title="[% serial.publisheddatetext | html %]">
+ [% serial.publisheddatetext | html %]
</span>
[% END %]
</td>
<td>
- <span title="[% serial.planneddate %]">
+ <span title="[% serial.planneddate | html %]">
[% IF serial.planneddate %]
[% serial.planneddate | $KohaDates %]
[% ELSE %]
</td>
<td>
[% IF ( matches = serial.serialseq.match('(.*)Spring(.*)') ) %]
- [% matches.0 %]Spring[% matches.1 %]
+ [% matches.0 | html %]Spring[% matches.1 | html %]
[% ELSIF ( matches = serial.serialseq.match('(.*)Summer(.*)') ) %]
- [% matches.0 %]Summer[% matches.1 %]
+ [% matches.0 | html %]Summer[% matches.1 | html %]
[% ELSIF ( matches = serial.serialseq.match('(.*)Fall(.*)') ) %]
- [% matches.0 %]Fall[% matches.1 %]
+ [% matches.0 | html %]Fall[% matches.1 | html %]
[% ELSIF ( matches = serial.serialseq.match('(.*)Winter(.*)') ) %]
- [% matches.0 %]Winter[% matches.1 %]
+ [% matches.0 | html %]Winter[% matches.1 | html %]
[% ELSIF ( matches = prediction.number.match('(.*)Spr(.*)') ) %]
- [% matches.0 %]Spr[% matches.1 %]
+ [% matches.0 | html %]Spr[% matches.1 | html %]
[% ELSIF ( matches = prediction.number.match('(.*)Sum(.*)') ) %]
- [% matches.0 %]Sum[% matches.1 %]
+ [% matches.0 | html %]Sum[% matches.1 | html %]
[% ELSIF ( matches = prediction.number.match('(.*)Fal(.*)') ) %]
- [% matches.0 %]Fal[% matches.1 %]
+ [% matches.0 | html %]Fal[% matches.1 | html %]
[% ELSIF ( matches = prediction.number.match('(.*)Win(.*)') ) %]
- [% matches.0 %]Win[% matches.1 %]
+ [% matches.0 | html %]Win[% matches.1 | html %]
[% ELSE %]
- [% serial.serialseq %]
+ [% serial.serialseq | html %]
[% END %]
</td>
<td>
[% IF ( serial.status8 ) %]Stopped[% END %]
</td>
<td>
- [% serial.notes %]
+ [% serial.notes | html %]
</td>
<td>
- [% Branches.GetName( serial.branchcode ) %]
+ [% Branches.GetName( serial.branchcode ) | html %]
</td>
[% IF ( routing ) %]
<td class="actions">
- <a href="" onclick="print_slip([% serial.subscriptionid |html %], '[% serial.serialseq.replace("'", "\\'") |html %] ([% serial.publisheddate | $KohaDates %])'); return false" class="btn btn-default btn-xs"><i class="fa fa-print"></i> Print list</a>
+ <a href="" onclick="print_slip([% serial.subscriptionid | html %], '[% serial.serialseq.replace("'", "\\'") | html %] ([% serial.publisheddate | $KohaDates %])'); return false" class="btn btn-default btn-xs"><i class="fa fa-print"></i> Print list</a>
</td>
[% END %]
</tr>
</table>
</div>
[% END %]
- <input type="hidden" name="subscriptionid" value="[% subscriptionidlist %]" />
+ <input type="hidden" name="subscriptionid" value="[% subscriptionidlist | html %]" />
</div>
</form>
[% END %]
-</div>
-</div>
+ </main>
+ </div> <!-- /.col-sm-10.col-sm-push-2 -->
-<div class="yui-b">
-[% INCLUDE 'serials-menu.inc' %]
-</div>
-</div>
+ <div class="col-sm-2 col-sm-pull-10">
+ <aside>
+ [% INCLUDE 'serials-menu.inc' %]
+ </aside>
+ </div> <!-- /.col-sm-2.col-sm-pull-10 -->
+ </div> <!-- /.row -->
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'datatables.inc' %]
- <script type="text/javascript">
- var subscriptionid = "[% subscriptionid %]";
+ <script>
+ var subscriptionid = "[% subscriptionid | html %]";
var MSG_CLOSE_SUBSCRIPTION = _("Are you sure you want to close this subscription?");
var MSG_REOPEN_SUBSCRIPTION = _("Are you sure you want to reopen this subscription?");
var CONFIRM_DELETE_SUBSCRIPTION = _("Are you sure you want to delete this subscription?");
</script>
- [% Asset.js("js/serials-toolbar.js") %]
- [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
+ [% Asset.js("js/serials-toolbar.js") | $raw %]
+ [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
- <script type="text/javascript">
+ <script>
function print_slip(subscriptionid,issue){
var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue;
$('#multi_receiving').on('show', function () {
$(this).find(".modal-body").html($(".serials_multi_receiving")[0].outerHTML);
});
+
+ $("form[name='edition']").on('submit', function(e){
+ if ( $(this).find("input[name='serialid']:checked").size() == 0 ) {
+ e.preventDefault();
+ alert(_("You must select at least one serial to edit"));
+ return 0;
+ }
+ return 1;
+ });
});
</script>