Kyle M Hall
6000bfdf87
Looking at the TT plugin directory I notice we have some plugins that seem to do the same thing: KohaBranchName.pm Branches.pm This patch drops KohaBranchName in favor of Branches Test Plan: 1) Apply this patch 2) View a basket group, note the branch name is displayed 3) View a subscription's details, note the branch name is displayed 4) View suggestions, note the branch names are displayed 5) Return an item that needs transfered, note the branch name is displayed 6) Run 'prove t/db_dependent/Koha_template_plugin_Branches.t' Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Passes all tests and QA script. Also tested with a branch name with umlauts. Signed-off-by: Galen Charlton <gmc@esilibrary.com>
350 lines
14 KiB
Text
350 lines
14 KiB
Text
[% USE Branches %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Serials › Details for subscription #[% subscriptionid %]</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
// the english words used in display purposes
|
|
var text = new Array(_("Number"),_("Volume"),_("Issue"),_("Month"),_("Week"),_("Starting with:"),_("Rollover at:"),_("Choose Hemisphere:"),_("Northern"),_("Southern",
|
|
"Autumn"),_("Winter"),_("Spring"),_("Summer"),_("Fall"),_("Season"),_("Year"));
|
|
|
|
|
|
function confirm_deletion() {
|
|
var is_confirmed = confirm(_("Are you sure you want to delete this subscription?"));
|
|
if (is_confirmed) {
|
|
window.location="subscription-detail.pl?subscriptionid=[% subscriptionid %]&op=del";
|
|
}
|
|
}
|
|
function popup(subscriptionid) {
|
|
newin=window.open("subscription-renew.pl?mode=popup&subscriptionid="+subscriptionid,'popup','width=590,height=440,toolbar=false,scrollbars=yes');
|
|
}
|
|
$(document).ready(function() {
|
|
$("#subscription_description").tabs();
|
|
$("#renewsub").click(function(){
|
|
popup([% subscriptionid %]);
|
|
return false;
|
|
})
|
|
});
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body id="ser_subscription-detail" 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> › Details for subscription #[% subscriptionid %]</div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
[% INCLUDE 'serials-toolbar.inc' %]
|
|
|
|
<h1>Subscription for [% bibliotitle%] [% IF closed %](closed)[% END %]</h1>
|
|
[% IF ( abouttoexpire ) %]
|
|
[% UNLESS closed %]
|
|
<div class="dialog message">Subscription will expire [% enddate %]. <a href="#" id="renewsub">Renew this subscription</a>.</div>
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( NEEDSCONFIRMATION ) %]
|
|
<div id="circ_needsconfirmation" class="dialog alert">
|
|
<h3>Please Confirm Subscription deletion</h3>
|
|
|
|
<ul>
|
|
[% IF ( NOTEXPIRED ) %] <li>The subscription has not expired yet</li> [% END %]
|
|
[% IF ( LINKEDISSUES ) %] <li>The subscription has linked issues</li> [% END %]
|
|
[% IF ( LINKEDITEMS ) %] <li>The subscription has linked items<br /> Those items won't be deleted</li> [% END %]
|
|
</ul>
|
|
<form method="post" action="/cgi-bin/koha/serials/subscription-detail.pl">
|
|
<input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
|
|
<input type="hidden" name="issueconfirmed" value="1" />
|
|
<input type="hidden" name="op" value="del" />
|
|
<input type="submit" class="approve" value="Yes, delete (Y)" accesskey="y" />
|
|
</form>
|
|
<form method="get" action="/cgi-bin/koha/serials/subscription-detail.pl">
|
|
<input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
|
|
<input type="submit" class="deny" value="No, don't delete (N)" accesskey="n" />
|
|
</form>
|
|
|
|
</div>
|
|
[% END %] <!-- NEEDSCONFIRMATION -->
|
|
|
|
<div id="subscription_description" class="toptabs">
|
|
<ul class="ui-tabs-nav">
|
|
<li><a href="#subscription_info">Information</a></li>
|
|
<li><a href="#subscription_planning">Planning</a></li>
|
|
<li><a href="#subscription_issues">Issues</a></li>
|
|
<li><a href="#subscription_summary">Summary</a></li>
|
|
</ul>
|
|
|
|
<div id="subscription_info">
|
|
<div class="yui-g">
|
|
<div class="yui-u first">
|
|
<div class="rows">
|
|
<ol>
|
|
<li><span class="label">Subscription ID: </span>[% subscriptionid %]</li>
|
|
<li><span class="label">Librarian identity:</span> [% librarian %]</li>
|
|
<li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% aqbooksellerid %]">[% aqbooksellername %]</a></li>
|
|
<li><span class="label">Biblio:</span> <a href="/cgi-bin/koha/catalogue/[% default_bib_view %].pl?biblionumber=[% bibnum %]">[% bibliotitle %]</a> <i>([% bibnum %])</i></li>
|
|
[% IF ( branchcode ) %]<li><span class="label">Library:</span> [% Branches.GetName( branchcode ) %]</li>[% END %]
|
|
[% IF ( serialsadditems ) %]
|
|
<li><span class="label">Items:</span> Serial receipt creates an item record.</li>
|
|
[% ELSE %]
|
|
<li><span class="label">Items:</span> Serial receipt does not create an item record.</li>
|
|
[% END %]
|
|
<li>
|
|
<span class="label">Serial number:</span>
|
|
[% IF skip_serialseq %]
|
|
Serial number is skipped when an irregularity is found.
|
|
[% ELSE %]
|
|
Serial number is kept when an irregularity is found.
|
|
[% END %]
|
|
</li>
|
|
<li><span class="label">Grace period:</span> [% graceperiod %]</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
<div class="yui-u">
|
|
<div class="rows">
|
|
<ol>
|
|
[% IF ( location ) %]<li><span class="label">Location:</span> [% location %]</li>[% END %]
|
|
[% IF ( callnumber ) %]<li><span class="label">Call number:</span> [% callnumber %]</li>[% END %]
|
|
[% IF ( staffdisplaycount ) %]<li><span class="label">Number of issues to display to staff:</span>[% staffdisplaycount %]</li>[% END %]
|
|
[% IF ( opacdisplaycount ) %]<li><span class="label">Number of issues to display in OPAC:</span>[% opacdisplaycount %]</li>[% END %]
|
|
[% IF ( letter ) %]
|
|
<li>
|
|
<span class="label">Patron notification:</span> [% letter %]
|
|
(<a href="/cgi-bin/koha/serials/viewalerts.pl?subscriptionid=[% subscriptionid %]">subscribers</a>)
|
|
</li>
|
|
[% END %]
|
|
[% IF ( hasRouting ) %]<li><span class="label">Routing:</span> yes</li>[% END %]
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="subscription_planning">
|
|
<div class="yui-g">
|
|
<div class="rows">
|
|
<ol>
|
|
<li><span class="label">Beginning date:</span> [% startdate %]
|
|
</li>
|
|
<li><span class="label">Frequency:</span>
|
|
[% frequency.description %]
|
|
</li>
|
|
<li>
|
|
<span class="label">Manual history: </span>
|
|
[% IF ( manualhistory ) %]
|
|
Enabled <a href="/cgi-bin/koha/serials/subscription-history.pl?subscriptionid=[% subscriptionid %]">Edit history</a>
|
|
[% ELSE %]
|
|
Disabled
|
|
[% END %]
|
|
</li>
|
|
<li><span class="label">Number pattern:</span>
|
|
[% numberpattern.label %]
|
|
</li>
|
|
<li><table>
|
|
<tr>
|
|
<td>Starting with:</td>
|
|
[% IF (has_X) %]
|
|
<td align="center">[% lastvalue1 %]</td>
|
|
[% END %]
|
|
[% IF (has_Y) %]
|
|
<td align="center">[% lastvalue2 %]</td>
|
|
[% END %]
|
|
[% IF (has_Z) %]
|
|
<td align="center">[% lastvalue3 %]</td>
|
|
[% END %]
|
|
</tr>
|
|
<tr>
|
|
<td>Rollover:</td>
|
|
[% IF (has_X) %]
|
|
<td align="center">[% numberpattern.whenmorethan1 %]</td>
|
|
[% END %]
|
|
[% IF (has_Y) %]
|
|
<td align="center">[% numberpattern.whenmorethan2 %]</td>
|
|
[% END %]
|
|
[% IF (has_Z) %]
|
|
<td align="center">[% numberpattern.whenmorethan3 %]</td>
|
|
[% END %]
|
|
</tr>
|
|
</table></li>
|
|
[% IF ( irregular_issues ) %]
|
|
<li><span class="label">Irregularity:</span> [% irregular_issues %] issues
|
|
</li>
|
|
[% END %]
|
|
<li><span class="label">First arrival:</span> [% firstacquidate %]
|
|
</li>
|
|
[% IF ( numberlength ) %]<li><span class="label">Number of issues:</span> [% numberlength %]</li>[% END %]
|
|
[% IF ( weeklength ) %]<li><span class="label">Number of weeks:</span> [% weeklength %]</li>[% END %]
|
|
[% IF ( monthlength ) %]<li><span class="label">Number of months:</span> [% monthlength %]</li>[% END %]
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="subscription_numbering" style="display:none;">
|
|
<h3>Numbering calculation</h3>
|
|
<p><label>Numbering formula:</label> [% numberingmethod %]</p>
|
|
<table>
|
|
<tr>
|
|
<th> </th>
|
|
<th>X</th>
|
|
<th>Y</th>
|
|
<th>Z</th>
|
|
</tr>
|
|
<tr>
|
|
<td>Add</td>
|
|
<td>
|
|
[% add1 %]
|
|
</td>
|
|
<td>
|
|
[% add2 %]
|
|
</td>
|
|
<td>
|
|
[% add3 %]
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>once every</td>
|
|
<td>[% every1 %]</td>
|
|
<td>[% every2 %]</td>
|
|
<td>[% every3 %]</td>
|
|
</tr>
|
|
<tr>
|
|
<td>When more than</td>
|
|
<td>[% whenmorethan1 %] [% IF ( innerloop1 ) %]<br />
|
|
<i>(is [% innerloop1 %])</i>[% END %]</td>
|
|
<td>[% whenmorethan2 %] [% IF ( innerloop2 ) %]<br />
|
|
<i>(is [% innerloop2 %])</i>[% END %]</td>
|
|
<td>[% whenmorethan3 %] [% IF ( innerloop3 ) %]<br />
|
|
<i>(is [% innerloop3 %])</i>[% END %]</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Set back to</td>
|
|
<td>[% setto1 %]</td>
|
|
<td>[% setto2 %]</td>
|
|
<td>[% setto3 %]</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
Inner counter
|
|
</td>
|
|
<td>[% innerloop1 %]</td>
|
|
<td>[% innerloop2 %]</td>
|
|
<td>[% innerloop3 %]</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
Last value
|
|
</td>
|
|
<td>[% lastvalue1 %]</td>
|
|
<td>[% lastvalue2 %]</td>
|
|
<td>[% lastvalue3 %]</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div id="subscription_issues">
|
|
<table>
|
|
<tr>
|
|
<th>Issue number</th>
|
|
<th>Planned date</th>
|
|
<th>Published date</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
[% FOREACH serialslis IN serialslist %]
|
|
<tr>
|
|
<td>
|
|
[% serialslis.serialseq %]
|
|
</td>
|
|
<td>
|
|
[% serialslis.planneddate %]
|
|
</td>
|
|
<td>
|
|
[% serialslis.publisheddate %]
|
|
</td>
|
|
<td>
|
|
[% IF ( serialslis.status1 ) %]Expected[% END %]
|
|
[% IF ( serialslis.status2 ) %]Arrived[% END %]
|
|
[% IF ( serialslis.status3 ) %]Late[% END %]
|
|
[% IF ( serialslis.status4 ) %]Missing[% END %]
|
|
[% IF ( serialslis.status5 ) %]Not issued[% END %]
|
|
[% IF ( serialslis.status6 ) %]Delete[% END %]
|
|
[% IF ( serialslis.status7 ) %]
|
|
Claimed
|
|
[% IF ( serialslis.claimdate ) %]
|
|
[% serialslis.claimdate %]
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( serialslis.status8 ) %]Stopped[% END %]
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
</table>
|
|
</div>
|
|
<div id="subscription_summary">
|
|
<div class="yui-g">
|
|
<div class="rows">
|
|
<ol>
|
|
<li><span class="label">Start date:</span> [% startdate %] </li>
|
|
<li><span class="label">End date:</span> [% enddate %]</li>
|
|
<li><span class="label">History start date:</span> [% histstartdate %] </li>
|
|
<li><span class="label">History end date:</span> [% histenddate %]</li>
|
|
<li><span class="label">Received issues:</span>[% recievedlist %]</li>
|
|
<li><span class="label">Missing issues:</span>[% missinglist %]</li>
|
|
<li><span class="label">Nonpublic note:</span>[% internalnotes FILTER html_line_break %]</li>
|
|
<li><span class="label">Public note:</span>[% notes FILTER html_line_break %]</li>
|
|
<li><span class="label">History staff note:</span>[% librariannote FILTER html_line_break %]</li>
|
|
<li><span class="label">History OPAC note:</span>[% opacnote FILTER html_line_break %]</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
[% IF ( show_acquisition_details ) %]
|
|
<div id="acquisition_details">
|
|
<h2>Acquisition details</h2>
|
|
<table>
|
|
<thead>
|
|
<tr><th></th><th>Price exc. taxes</th><th>Price inc. taxes</th><th>Fund</th><th></th></tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>Ordered amount</td>
|
|
<td>[% valuegste_ordered %]</td>
|
|
<td>[% valuegsti_ordered %]</td>
|
|
<td>[% budget_name_ordered %]</td>
|
|
<td>
|
|
[% IF ( ordered_exists ) %]
|
|
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">See basket information</a>
|
|
[% END %]
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Spent amount</td>
|
|
<td>[% valuegste_spent %]</td>
|
|
<td>[% valuegsti_spent %]</td>
|
|
<td>[% budget_name_spent %]</td>
|
|
<td>
|
|
[% IF ( spent_exists ) %]
|
|
<a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">See invoice information</a>
|
|
[% END %]
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
[% END %]
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="yui-b">
|
|
[% INCLUDE 'serials-menu.inc' %]
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|