1edb8cbeee
Edit: Fast cataloging link should now show on all pages, removed offline circulation links Edit 2: Creates the syspref to activate or deactivate the sidebar Edit 3: Fixing merge conflicts, using Koha::BiblioFrameworks to find FA framework and adding sidebar to on-site checkouts This adds a sidebar to circ/branchoverdues.tt circ/circulation.tt (I also fixed up some of the indentation in this file to make it easier to see where the divs started and ended) circ/renew.tt circ/returns.tt circ/selectbranchprinter.tt circ/transferstoreceive.tt circ/view_holdsqueue.tt circ/waitingreserves.tt circ/branchtransfers.tt circ/on-site_checkouts.tt To test: 1) Confirm syspref CircSidebar is activated 2) Go to all of the above pages and confirm the sidebar menu shows up 3) Confirm fast cataloguing link and transfer link are there 4) Trigger any error messages you can possibly think of (i.e. on renew.pl: barcode does not exist). Confirm that this does not mess up the layout of the page 5) Go to a user account page, Check out tab. (Since this is a circ/circulation.pl page). Ensure the circ nav sidebar doesn't show up (confirm it looks as it usually does) 6) Deactivate circSidebar 7) Confirm pages all look normal Sponsored-by: Catalyst IT Signed-off-by: Jan Kissig <jkissig@th-wildau.de> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
99 lines
3.3 KiB
Text
99 lines
3.3 KiB
Text
[% USE Branches %]
|
|
[% USE Koha %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Circulation › Set library</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<style type="text/css">
|
|
.noshow {display: none;}
|
|
</style>
|
|
</head>
|
|
<body id="circ_selectbranchprinter" class="circ">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'circ-search.inc' %]
|
|
|
|
<div id="breadcrumbs">
|
|
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
|
|
› <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
|
|
› <a href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set library</a>
|
|
</div>
|
|
|
|
[% IF Koha.Preference('CircSidebar') %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
|
|
<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 "?" %] ⇒ [% update.LoginBranchcode or "?" %]</li>
|
|
[% ELSIF ( update.updated_printer ) %]
|
|
<!-- FIXME: <li>Printer: [% update.old_printer or "?" %] ⇒ [% 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 && !CAN_user_superlibrarian ) %]
|
|
<li>SingleBranchMode is ON.</li>
|
|
[% ELSE %]
|
|
<li><label for="branch">Choose library:</label>
|
|
<select name="branch" id="branch">
|
|
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
|
|
</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" />
|
|
<a class="cancel" id="cancel_set_library" href="[% referer or '/cgi-bin/koha/circ/circulation.pl' %]">Cancel</a>
|
|
</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>
|
|
[% IF Koha.Preference('CircSidebar') %]
|
|
<div class="yui-b noprint">
|
|
[% INCLUDE 'circ-nav.inc' %]
|
|
</div>
|
|
[% END %]
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|