Main Koha release repository https://koha-community.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

151 lines
5.0 KiB

  1. [% USE raw %]
  2. [% USE Asset %]
  3. [% USE Branches %]
  4. [% USE Desks %]
  5. [% USE Registers %]
  6. [% USE Koha %]
  7. [% SET footerjs = 1 %]
  8. [% INCLUDE 'doc-head-open.inc' %]
  9. [% IF Koha.Preference('UseCirculationDesks') %]
  10. <title>Koha &rsaquo; Circulation &rsaquo; Set library and desk</title>
  11. [% ELSE %]
  12. <title>Koha &rsaquo; Circulation &rsaquo; Set library</title>
  13. [% END %]
  14. [% INCLUDE 'doc-head-close.inc' %]
  15. <style>
  16. .noshow {display: none;}
  17. </style>
  18. </head>
  19. <body id="circ_set-library" class="circ">
  20. [% INCLUDE 'header.inc' %]
  21. [% INCLUDE 'circ-search.inc' %]
  22. <div id="breadcrumbs">
  23. <a href="/cgi-bin/koha/mainpage.pl">Home</a>
  24. &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
  25. &rsaquo; <a href="/cgi-bin/koha/circ/set-library.pl">Set library</a>
  26. </div>
  27. <div class="main container-fluid">
  28. <div class="row">
  29. <div class="col-sm-12">
  30. <main>
  31. <div class="row">
  32. [% IF Koha.Preference('CircSidebar') %]
  33. <div class="col-sm-10 col-sm-push-2">
  34. [% ELSE %]
  35. <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
  36. [% END %]
  37. [% IF ( updated ) %]
  38. <h2>Update succeeded</h2>
  39. Updated:<ul>
  40. [% FOREACH update IN updated %]
  41. [% IF ( update.updated_branch || update.updated_desk || update.updated_register ) %]
  42. [% IF ( updated.updated_branch ) %]
  43. <li>Library: [% update.old_branch or "?" | html %] &rArr; [% update.new_branch or "?" | html %]</li>
  44. [% END %]
  45. [% IF ( update.updated_desk ) %]
  46. <li>Desk: [% update.old_desk or "?" | html %] &rArr; [% LoginDeskname or "?" | html %]</li>
  47. [% END %]
  48. [% IF ( updated.updated_register ) %]
  49. <li>Register: [% updated.old_register or "?" | html %] &rArr; [% Registers.session_register_name or "?" | html %]</li>
  50. [% END %]
  51. [% ELSE %]
  52. <li>ERROR - unknown</li>
  53. [% END %]
  54. [% END %]
  55. </ul>
  56. <form method="post" action="[% referer or "/cgi-bin/koha/circ/circulation.pl" %]">
  57. <div class="noshow">
  58. [% FOREACH recycle_loo IN recycle_loop %]
  59. <input type="text" name="[% recycle_loo.param | html %]" value="[% recycle_loo.value | html %]" />
  60. [% END %]
  61. </div>
  62. <button type="submit">Continue</button>
  63. </form>
  64. [% ELSE %]
  65. <form method="post" action="set-library.pl">
  66. [% IF !( Koha.Preference('IndependentBranches') && !CAN_user_superlibrarian && !CAN_user_editcatalogue_edit_catalogue ) %]
  67. <fieldset class="rows">
  68. <legend>Set library</legend>
  69. <ol>
  70. <li><label for="branch">Choose library:</label>
  71. <select name="branch" id="branch">
  72. [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
  73. </select></li>
  74. </ol>
  75. </fieldset>
  76. [% ELSE %]
  77. <select name="branch" id="branch" style="visibility:hidden;">
  78. [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
  79. </select>
  80. [% END %]
  81. [% IF Koha.Preference('UseCirculationDesks') && Desks.all %]
  82. <fieldset class="rows">
  83. <legend>Set desk</legend>
  84. <ol>
  85. <li><label for="desk">Choose desk:</label>
  86. <select name="desk_id" id="desk_id">
  87. [% PROCESS options_for_desks desks => Desks.all(), selected => desk_id %]
  88. </select></li>
  89. </ol>
  90. </fieldset>
  91. [% END %]
  92. [% IF Koha.Preference('UseCashRegisters') %]
  93. <fieldset class="rows">
  94. <legend>Set cash register</legend>
  95. <ol>
  96. <li>
  97. <label for="register_id">Choose cash register:</label>
  98. <select name="register_id" id="register_id">
  99. <option id="noregister" selected="selected" value="">-- None --</option>
  100. [% PROCESS options_for_registers registers => Registers.all() %]
  101. </select>
  102. </li>
  103. </ol>
  104. </fieldset>
  105. [% END %]
  106. <fieldset class="action">
  107. <input type="submit" value="Submit" />
  108. <a class="cancel" id="cancel_set_library" href="[% referer or '/cgi-bin/koha/circ/circulation.pl' %]">Cancel</a>
  109. </fieldset>
  110. <div class="noshow">
  111. [% FOREACH recycle_loo IN recycle_loop %]
  112. <input type="text" name="[% recycle_loo.param | html %]" value="[% recycle_loo.value | html %]" />
  113. [% END %]
  114. <input type="hidden" name="oldreferer" value="[% referer or "/cgi-bin/koha/circ/circulation.pl" %]" />
  115. </div>
  116. </form>
  117. <!-- /updated -->
  118. [% END %]
  119. [% IF Koha.Preference('CircSidebar') %]
  120. </div> <!-- /.col-sm-10.col-sm-push-2 -->
  121. <div class="col-sm-2 col-sm-pull-10">
  122. <aside>
  123. [% INCLUDE 'circ-nav.inc' %]
  124. </aside>
  125. </div> <!-- /.col-sm-2.col-sm-pull-10 -->
  126. </div> <!-- /.row -->
  127. [% END %]
  128. </main>
  129. </div> <!-- /.col-sm-12 -->
  130. </div> <!-- /.row -->
  131. [% MACRO jsinclude BLOCK %]
  132. [% Asset.js("js/desk_selection.js") | $raw %]
  133. [% Asset.js("js/register_selection.js") | $raw %]
  134. [% END %]
  135. [% INCLUDE 'intranet-bottom.inc' %]