Koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ/selectbranchprinter.tt
Owen Leonard 714c8b924e Fix for Bug 6640, Locations not showing in circ reports
An invalid template syntax for defining a variable's default
value is found in the circ report template and several
others:

[% DEFAULT LibraryNameTitle="Koha Online" %]

Based on the T:T docs this appears to be the correct way of defining
a default value:

[% LibraryNameTitle or "Koha Online" %]

Reference:

http://template-toolkit.org/docs/manual/Syntax.html#section_Implicit_Directives_GET_and_SET

Signed-off-by: Nicole Engard <nengard@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-08-18 20:57:32 +12:00

95 lines
3.1 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Circulation &rsaquo; Set Library</title>
[% INCLUDE 'doc-head-close.inc' %]
<style type="text/css">
.noshow {display: none;}
</style>
</head>
<body>
[% INCLUDE 'header.inc' %]
[% INCLUDE 'circ-search.inc' %]
<div id="breadcrumbs">
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
&rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
&rsaquo; <a href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set Library</a>
</div>
<div id="doc" class="yui-t7">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
[% IF ( updated ) %]
<h2>Update Succeeded</h2>
Updated:<ul>
[% FOREACH update IN updated %]
[% IF ( update.updated_branch ) %]
<li>Library: [% update.old_branch or "?" %] &rArr; [% update.LoginBranchcode or "?" %]</li>
[% ELSIF ( update.updated_printer ) %]
<!-- FIXME: <li>Printer: [% update.old_printer or "?" %] &rArr; [% update.new_printer or "?" %]</li> -->
[% ELSE %]
<li>ERROR - unknown</li>
[% END %]
[% END %]
</ul>
<form method="post" action="[% referer or "/cgi-bin/koha/circ/circulation.pl" |html %]">
<div class="noshow">
[% FOREACH recycle_loo IN recycle_loop %]
<input type="text" name="[% recycle_loo.param %]" value="[% recycle_loo.value |html %]" />
[% END %]
</div>
<button type="submit">Continue</button>
</form>
[% ELSE %]
<form method="post" action="selectbranchprinter.pl">
<fieldset class="rows">
<legend>Set Library</legend>
<ol>
[% IF ( singleBranchMode ) %]
<li>Single Branch mode is ON.</li>
[% ELSE %]
<li><label for="branch">Choose library:</label>
<select name="branch" id="branch">
[% FOREACH branchloo IN branchloop %]
[% IF ( branchloo.selected ) %]
<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
[% ELSE %]
<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
[% END %]
[% END %]
</select></li>
[% END %]
<!--
[% IF ( printerloop ) %]
<li><label for="printer">Choose a network printer:</label>
<select name="printer" id="printer">
[% FOREACH printerloo IN printerloop %]
[% IF ( printerloo.selected ) %]
<option value="[% printerloo.value %]" selected="selected">[% printerloo.name %]</option>
[% ELSE %]
<option value="[% printerloo.value %]">[% printerloo.name %]</option>
[% END %]
[% END %]
</select></li>
[% END %] -->
</ol>
</fieldset>
<fieldset class="action"><input type="submit" value="Submit" /></fieldset>
<div class="noshow">
[% FOREACH recycle_loo IN recycle_loop %]
<input type="text" name="[% recycle_loo.param %]" value="[% recycle_loo.value |html %]" />
[% END %]
<input type="hidden" name="oldreferer" value="[% referer or "/cgi-bin/koha/circ/circulation.pl" |html %]" />
</div>
</form>
<!-- /updated -->
[% END %]
</div>
</div>
</div>
[% INCLUDE 'intranet-bottom.inc' %]