Katrin Fischer
9b86077aae
There is some quite old and unused code in Koha related to printer configuration and network printing. These code hasn't been functional in a long time and should be removed. This patch: - Removes printcirculationslips system preference - Removes table printers - Removes branchprinter column from branches Check that: - Go to administration - Open any age there, but change the last bit to: printers.pl - Apply patch, run the database update - Verify the hidden page no longer exists - Verify that logging in and out still works correctly - Verify that checkout and returns work correctly - Switch to another branch using the "Set library" option Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
98 lines
3.2 KiB
Text
98 lines
3.2 KiB
Text
[% USE Branches %]
|
|
[% USE Koha %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Circulation › Set library</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<style>
|
|
.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>
|
|
|
|
<div class="main container-fluid">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<main>
|
|
<div class="row">
|
|
|
|
[% IF Koha.Preference('CircSidebar') %]
|
|
<div class="col-sm-10 col-sm-push-2">
|
|
[% ELSE %]
|
|
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
|
|
[% END %]
|
|
|
|
|
|
[% IF ( updated ) %]
|
|
|
|
<h2>Update succeeded</h2>
|
|
Updated:<ul>
|
|
[% FOREACH update IN updated %]
|
|
[% IF ( update.updated_branch ) %]
|
|
<li>Library: [% update.old_branch or "?" | html %] ⇒ [% update.LoginBranchcode or "?" | html %]</li>
|
|
[% ELSE %]
|
|
<li>ERROR - unknown</li>
|
|
[% END %]
|
|
[% END %]
|
|
</ul>
|
|
<form method="post" action="[% referer or "/cgi-bin/koha/circ/circulation.pl" %]">
|
|
<div class="noshow">
|
|
[% FOREACH recycle_loo IN recycle_loop %]
|
|
<input type="text" name="[% recycle_loo.param | html %]" 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 %]
|
|
</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 | html %]" value="[% recycle_loo.value | html %]" />
|
|
[% END %]
|
|
<input type="hidden" name="oldreferer" value="[% referer or "/cgi-bin/koha/circ/circulation.pl" %]" />
|
|
</div>
|
|
</form>
|
|
<!-- /updated -->
|
|
[% END %]
|
|
|
|
[% IF Koha.Preference('CircSidebar') %]
|
|
</div> <!-- /.col-sm-10.col-sm-push-2 -->
|
|
<div class="col-sm-2 col-sm-pull-10">
|
|
<aside>
|
|
[% INCLUDE 'circ-nav.inc' %]
|
|
</aside>
|
|
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
|
|
</div> <!-- /.row -->
|
|
[% END %]
|
|
|
|
</main>
|
|
</div> <!-- /.col-sm-12 -->
|
|
</div> <!-- /.row -->
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|