Bug 32634: Add 'page-section' to various pages

This patch adds a "page-section" container div around the main section
of various pages which lack it.

This patch contains indentation changes, so please ignore whitespace
when looking at the diff.

Apply the patch and view the following pages to confirm that the main
content is contained in a white box:

- Locate a patron who has one or more account transactions.
  - Go to the Accounting tab -> Transactions. Click "Details" on one of
      the lines.
    - The "Details of debit" and "History" sections should be wrapped in
      .page-section.
- Go to Tools -> Patron card creator -> Manage -> Batches
  - If there is not a list of batches you will need to create at least
    one to see the page-section container.
- Go to Reports -> View dictionary.
  - If necessary, add a definition.
  - The "Current terms" table should be wrapped in .page-section.
- Go to Lists and view the contents of a list with one or more titles on
  it. The table of titles should be wrapped in .page-section.
- Go to Circulation -> Upload offline circulation file (.koc)
  - Upload a .koc file and click the "Add to offline circulation queue."
  - On the confirmation page the "Your file was uploaded" message should
    be wrapped in .page-section.
  - Click "View pending offline circulation actions"
    - The list of pending actions should be wrapped in .page-section

Signed-off-by: Magnus Enger <magnus@libriotech.no>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2023-01-13 20:15:13 +00:00 committed by Tomas Cohen Arazi
parent 8a63e6eecc
commit 4573e5ff91
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
6 changed files with 271 additions and 260 deletions

View file

@ -167,6 +167,7 @@
<div class="page-section"> <div class="page-section">
<h3>History</h3> <h3>History</h3>
<table class="accountline-offsets-table" id="accountline-debits-table"> <table class="accountline-offsets-table" id="accountline-debits-table">
<thead> <thead>
<tr> <tr>

View file

@ -27,22 +27,23 @@
<div class="row"> <div class="row">
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
<h1>Koha offline circulation</h1> <h1>Koha offline circulation</h1>
<p>Your file was uploaded. Once all files are uploaded, please process them in pending offline circulation actions.</p> <div class="page-section">
<p>Your file was uploaded. Once all files are uploaded, please process them in pending offline circulation actions.</p>
[% FOREACH message IN messages %] [% FOREACH message IN messages %]
[% IF ( message.message ) %] [% IF ( message.message ) %]
[% IF ( message.ERROR_file_version ) %] [% IF ( message.ERROR_file_version ) %]
<div class="dialog alert"><p>Warning: This file is version [% message.upload_version | html %], but I only know how to import version [% message.current_version | html %]. I'll try my best.</p> <div class="dialog alert"><p>Warning: This file is version [% message.upload_version | html %], but I only know how to import version [% message.current_version | html %]. I'll try my best.</div>
[% END %] [% END %]
[% END %] [% END %]
[% END %] [% END %]
<p><a href="process_koc.pl">Upload another KOC file</a></p> <p><a href="process_koc.pl">Upload another KOC file</a></p>
<p><a href="list.pl">View pending offline circulation actions</a></p>
<p><a href="list.pl">View pending offline circulation actions</a></p>
</div> <!-- /.page-section -->
</div>
</div> </div>
</div>
[% INCLUDE 'intranet-bottom.inc' %] [% INCLUDE 'intranet-bottom.inc' %]

View file

@ -35,65 +35,67 @@
<h1>Offline circulation</h1> <h1>Offline circulation</h1>
[% IF ( pending_operations ) %] [% IF ( pending_operations ) %]
<form> <form>
<p> <p>
<a id="CheckAll" href="#"><i class="fa fa-check"></i> Check all</a> <a id="CheckAll" href="#"><i class="fa fa-check"></i> Check all</a>
<a id="CheckNone" href="#"><i class="fa fa-remove"></i> Uncheck all</a> <a id="CheckNone" href="#"><i class="fa fa-remove"></i> Uncheck all</a>
</p> </p>
<table id="operations"> <div class="page-section">
<thead> <table id="operations">
<tr> <thead>
<th>&nbsp;</th> <tr>
<th>Date</th> <th>&nbsp;</th>
<th>Action</th> <th>Date</th>
<th>Barcode</th> <th>Action</th>
<th>Card number</th> <th>Barcode</th>
<th>Amount</th> <th>Card number</th>
</tr> <th>Amount</th>
</thead> </tr>
<tbody> </thead>
[% FOREACH operation IN pending_operations %] <tbody>
<tr class="oc-[% operation.action | html %]"> [% FOREACH operation IN pending_operations %]
<td><input type="checkbox" name="operationid" id="operationid[% operation.operationid | html %]" value="[% operation.operationid | html %]" /></td> <tr class="oc-[% operation.action | html %]">
<td> <td><input type="checkbox" name="operationid" id="operationid[% operation.operationid | html %]" value="[% operation.operationid | html %]" /></td>
<label for="operationid[% operation.operationid | html %]">[% operation.timestamp | html %]</label> <td>
</td> <label for="operationid[% operation.operationid | html %]">[% operation.timestamp | html %]</label>
<td> </td>
[% SWITCH ( operation.action ) -%] <td>
[% CASE "issue" -%] [% SWITCH ( operation.action ) -%]
<span>Check out</span> [% CASE "issue" -%]
[% CASE "return" -%] <span>Check out</span>
<span>Check in</span> [% CASE "return" -%]
[% CASE "payment" -%] <span>Check in</span>
<span>Payment</span> [% CASE "payment" -%]
[% CASE # default case -%] <span>Payment</span>
<span>[% operation.action | html %]</span> [% CASE # default case -%]
[% END -%] <span>[% operation.action | html %]</span>
</td> [% END -%]
<td> </td>
[% IF ( operation.biblionumber ) %] <td>
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber | uri %]" title="[% operation.bibliotitle | html %]">[% operation.barcode | html %]</a> [% IF ( operation.biblionumber ) %]
[% ELSE %] <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber | uri %]" title="[% operation.bibliotitle | html %]">[% operation.barcode | html %]</a>
<span class="error">[% operation.barcode | html %]</span> [% ELSE %]
[% END %] <span class="error">[% operation.barcode | html %]</span>
</td> [% END %]
<td> </td>
[% IF ( operation.actionissue || operation.actionpayment) %] <td>
[% IF ( operation.borrowernumber ) %] [% IF ( operation.actionissue || operation.actionpayment) %]
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% operation.borrowernumber | uri %]" title="[% operation.borrower | html %]">[% operation.cardnumber | html %]</a> [% IF ( operation.borrowernumber ) %]
[% ELSE %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% operation.borrowernumber | uri %]" title="[% operation.borrower | html %]">[% operation.cardnumber | html %]</a>
<span class="error">[% operation.cardnumber | html %]</span> [% ELSE %]
[% END %] <span class="error">[% operation.cardnumber | html %]</span>
[% END %] [% END %]
</td> [% END %]
<td>[% operation.amount | html %]</td> </td>
</tr> <td>[% operation.amount | html %]</td>
[% END %] </tr>
</tbody> [% END %]
</table> </tbody>
</table>
</div> <!-- /.page-section -->
<p id="actions">For the selected operations: <p id="actions">For the selected operations:
<input type="button" id="process" value="Process" /> <input type="button" id="process" value="Process" />

View file

@ -67,53 +67,55 @@
<div id="manage-patroncards-layouts"> <div id="manage-patroncards-layouts">
[% IF ( table_loop ) %] [% IF ( table_loop ) %]
<form name="layouts" action="/cgi-bin/koha/manage.pl?card_element=[% card_element | html %]"> <form name="layouts" action="/cgi-bin/koha/manage.pl?card_element=[% card_element | html %]">
<h2>Currently available [% PROCESS translate_card_element element=card_element_title FILTER lower %]</h2> <div class="page-section">
<table> <h2>Currently available [% PROCESS translate_card_element element=card_element_title FILTER lower %]</h2>
[% FOREACH table_loo IN table_loop %] <table>
[% IF ( table_loo.header_fields ) %] [% FOREACH table_loo IN table_loop %]
<tr> [% IF ( table_loo.header_fields ) %]
[% FOREACH header_field IN table_loo.header_fields %] <tr>
[% SWITCH header_field.field_label -%] [% FOREACH header_field IN table_loo.header_fields %]
[%- CASE 'Layout ID' -%]<th>Layout ID</th> [% SWITCH header_field.field_label -%]
[%- CASE 'Layout' -%]<th>Layout</th> [%- CASE 'Layout ID' -%]<th>Layout ID</th>
[%- CASE 'Action' -%]<th>Action</th> [%- CASE 'Layout' -%]<th>Layout</th>
[%- CASE 'Actions' -%]<th class="noExport">Actions</th> [%- CASE 'Action' -%]<th>Action</th>
[%- CASE 'Select' -%][% IF ( print ) %]<th>Select</th>[% END %] [%- CASE 'Actions' -%]<th class="noExport">Actions</th>
[%- CASE 'Template ID' -%]<th>Template ID</th> [%- CASE 'Select' -%][% IF ( print ) %]<th>Select</th>[% END %]
[%- CASE 'Template Name' -%]<th>Template name</th> [%- CASE 'Template ID' -%]<th>Template ID</th>
[%- CASE 'Description' -%]<th>Description</th> [%- CASE 'Template Name' -%]<th>Template name</th>
[%- CASE 'Profile ID' -%]<th>Profile ID</th> [%- CASE 'Description' -%]<th>Description</th>
[%- CASE 'Printer Name' -%]<th>Printer name</th> [%- CASE 'Profile ID' -%]<th>Profile ID</th>
[%- CASE 'Paper Bin' -%]<th>Paper bin</th> [%- CASE 'Printer Name' -%]<th>Printer name</th>
[%- CASE 'Batch ID' -%]<th>Batch ID</th> [%- CASE 'Paper Bin' -%]<th>Paper bin</th>
[%- CASE 'Patron Count' -%]<th>Patron count</th> [%- CASE 'Batch ID' -%]<th>Batch ID</th>
[%- CASE -%]<th>[% header_field.field_label | html %]</th> [%- CASE 'Patron Count' -%]<th>Patron count</th>
[% END -%] [%- CASE -%]<th>[% header_field.field_label | html %]</th>
[% END %] [% END -%]
</tr> [% END %]
[% ELSE %] </tr>
<tr> [% ELSE %]
[% FOREACH text_field IN table_loo.text_fields %] <tr>
[% IF ( text_field.select_field ) %] [% FOREACH text_field IN table_loo.text_fields %]
<td> [% IF ( text_field.select_field ) %]
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/patroncards/edit-[% card_element | html %].pl?op=edit&element_id=[% text_field.field_value | html %]"><i class="fa fa-edit"></i> Edit</a> <td>
[% IF ( print ) %]<a class="btn btn-default btn-xs export" data-batch-id="[% text_field.field_value |url %]" href="/cgi-bin/koha/patroncards/print.pl?batch_id=[% text_field.field_value |url %]"><i class="fa fa-share-square-o"></i> Export</a>[% END %] <a class="btn btn-default btn-xs" href="/cgi-bin/koha/patroncards/edit-[% card_element | html %].pl?op=edit&element_id=[% text_field.field_value | html %]"><i class="fa fa-edit"></i> Edit</a>
<a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=[% card_element | html %]&element_id=[% text_field.field_value | html %]"><i class="fa fa-trash"></i> Delete</a> [% IF ( print ) %]<a class="btn btn-default btn-xs export" data-batch-id="[% text_field.field_value |url %]" href="/cgi-bin/koha/patroncards/print.pl?batch_id=[% text_field.field_value |url %]"><i class="fa fa-share-square-o"></i> Export</a>[% END %]
</td> <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=[% card_element | html %]&element_id=[% text_field.field_value | html %]"><i class="fa fa-trash"></i> Delete</a>
[% IF ( print ) %]<td><input type="checkbox" name="action" value="[% text_field.field_value | html %]" /></td>[% END %] </td>
[% ELSIF ( text_field.field_value ) %] [% IF ( print ) %]<td><input type="checkbox" name="action" value="[% text_field.field_value | html %]" /></td>[% END %]
<td>[% text_field.field_value | html %]</td> [% ELSIF ( text_field.field_value ) %]
[% ELSE %] <td>[% text_field.field_value | html %]</td>
<td>&nbsp;</td> [% ELSE %]
[% END %] <td>&nbsp;</td>
[% END %] [% END %]
</tr> [% END %]
[% END %] </tr>
[% END %] [% END %]
</table> [% END %]
<fieldset class="action"> </table>
[% IF ( print ) %]<input type="button" id="print" value="Export selected batches" />[% END %] <fieldset class="action">
</fieldset> [% IF ( print ) %]<input type="button" id="print" value="Export selected batches" />[% END %]
</fieldset>
</div> <!-- /.page-section -->
[% IF patron_lists %] [% IF patron_lists %]
<fieldset class="rows"> <fieldset class="rows">
<legend>Or use a patron list</legend> <legend>Or use a patron list</legend>

View file

@ -110,49 +110,51 @@
<p>Use the dictionary to define custom criteria for reporting.</p> <p>Use the dictionary to define custom criteria for reporting.</p>
[% IF ( definitions ) %] [% IF ( definitions ) %]
<h2>Current terms</h2> <div class="page-section">
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post"> <h2>Current terms</h2>
<input type="hidden" name="phase" value="View Dictionary" /> <form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
[% IF ( areas ) %] <input type="hidden" name="phase" value="View Dictionary" />
Filter by area [% IF ( areas ) %]
<select name="area"> Filter by area
<option value="">All</option> <select name="area">
[% FOREACH area IN areas %] <option value="">All</option>
[%- IF ( area.selected ) -%] [% FOREACH area IN areas %]
<option value="[% area.id | html %]" selected="selected">[%- PROCESS area_name area=area.id -%]</option> [%- IF ( area.selected ) -%]
[%- ELSE -%] <option value="[% area.id | html %]" selected="selected">[%- PROCESS area_name area=area.id -%]</option>
<option value="[% area.id | html %]">[%- PROCESS area_name area=area.id -%]</option> [%- ELSE -%]
[%- END -%] <option value="[% area.id | html %]">[%- PROCESS area_name area=area.id -%]</option>
[% END %] [%- END -%]
</select> [% END %]
<input type="submit" name="submit" class="btn btn-primary" value="Go" /> </select>
[% END %] <input type="submit" name="submit" class="btn btn-primary" value="Go" />
</form> [% END %]
<br /> </form>
<table> <br />
<tr> <table>
<th>Name</th> <tr>
<th>Description</th> <th>Name</th>
<th>Area</th> <th>Description</th>
<th>Definition</th> <th>Area</th>
<th>Action</th> <th>Definition</th>
</tr> <th>Action</th>
[% FOREACH definition IN definitions %] </tr>
<tr> [% FOREACH definition IN definitions %]
<td>[% definition.name | html %]</td> <tr>
<td>[% definition.description | html %]</td> <td>[% definition.name | html %]</td>
<td>[% definition.areaname | html %]</td> <td>[% definition.description | html %]</td>
<td>[% definition.saved_sql | html %]</td> <td>[% definition.areaname | html %]</td>
<td class="actions"><form method="post" action="/cgi-bin/koha/reports/dictionary.pl"> <td>[% definition.saved_sql | html %]</td>
<input type="hidden" name="id" value="[% definition.id | html %]" /> <td class="actions"><form method="post" action="/cgi-bin/koha/reports/dictionary.pl">
<input type="hidden" name="phase" value="Delete Definition" /> <input type="hidden" name="id" value="[% definition.id | html %]" />
<button type="submit" name="submit" class="btn btn-default btn-xs" id="delete"><i class="fa fa-trash"></i> Delete</button> <input type="hidden" name="phase" value="Delete Definition" />
</form></td> <button type="submit" name="submit" class="btn btn-default btn-xs" id="delete"><i class="fa fa-trash"></i> Delete</button>
</tr> </form></td>
[% END %] </tr>
</table> [% END %]
[% ELSE %] </table>
<div class="dialog message">There are no saved definitions. <a id="newdictionary" href="/cgi-bin/koha/reports/dictionary.pl?phase=Add%20New%20Definition">Add a definition to the dictionary.</a></div> </div> <!-- /.page-section -->
[% ELSE %]
<div class="dialog message">There are no saved definitions. <a id="newdictionary" href="/cgi-bin/koha/reports/dictionary.pl?phase=Add%20New%20Definition">Add a definition to the dictionary.</a></div>
[% END %] [% END %]
[% END %] [% END %]

View file

@ -281,114 +281,117 @@
</div> </div>
[% END %] [% END %]
<table id="searchresults" class="dataTable"> <div class="page-section">
<thead> <table id="searchresults" class="dataTable">
<tr> <thead>
[% IF ( itemsloop ) %] <tr>
<th class="checkall">&nbsp;</th> [% IF ( itemsloop ) %]
[% END %] <th class="checkall">&nbsp;</th>
[% UNLESS ( item_level_itypes ) %]
<th>Item type</th>
[% END %]
[% IF sortfield == 'title' %]
<th class="sorting_[% direction | html %]">
[% ELSE %]
<th class="sorting">
[% END %]
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=title&amp;direction=[% IF sortfield != 'title' %]asc[% ELSE %][% new_direction | uri %][% END %]">Title</a>
</th>
[% IF sortfield == 'author' %]
<th class="sorting_[% direction | html %]">
[% ELSE %]
<th class="sorting">
[% END %]
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=author&amp;direction=[% IF sortfield != 'author' %]asc[% ELSE %][% new_direction | uri %][% END %]">Author</a>
</th>
[% IF sortfield == 'dateadded' %]
<th class="sorting_[% direction | html %]">
[% ELSE %]
<th class="sorting">
[% END %]
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=dateadded&amp;direction=[% IF sortfield != 'dateadded' %]asc[% ELSE %][% new_direction | uri %][% END %]">Date added</a>
</th>
[% IF sortfield == 'itemcallnumber' %]
<th class="sorting_[% direction | html %]">
[% ELSE %]
<th class="sorting">
[% END %]
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=itemcallnumber&amp;direction=[% IF sortfield != 'itemcallnumber' %]asc[% ELSE %][% new_direction | uri %][% END %]">Call number</a>
</th>
</tr>
</thead>
[% FOREACH itemsloo IN itemsloop %]
<tr>
[% IF itemsloop %]
<td>
<input type="checkbox" class="selection" value="[% itemsloo.biblionumber | html %]" name="biblionumber" />
</td>
[% END %]
[% UNLESS ( item_level_itypes ) %]
<td>
[% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]
<img src="[% itemsloo.imageurl | html %]" alt="[% itemsloo.description | html %]" title="[% itemsloo.description | html %]" />
[% END %]
<span class="itypetext">[% itemsloo.description | html %]</span>
</td>
[% END %]
<td>
[% IF ( itemsloo.XSLTBloc ) %]
[% itemsloo.XSLTBloc | $raw %]
[% ELSE %]
[% INCLUDE 'biblio-title.inc' biblio=itemsloo link = 1 %]
</a>
[% END %] [% END %]
<p class="hold"> [% UNLESS ( item_level_itypes ) %]
[% IF ( itemsloo.notforloan ) %] <th>Item type</th>
<span class="noholdstext">No holds allowed</span> [% END %]
[% ELSE %] [% IF sortfield == 'title' %]
[% IF ( itemsloo.ITEM_RESULTS.count ) %] <th class="sorting_[% direction | html %]">
<a id="reserve_[% itemsloo.biblionumber | html %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | html %]">Holds</a> [% ELSE %]
[% IF ( holdfor ) %] <th class="sorting">
<span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | uri %]&amp;findborrower=[% holdfor_patron.cardnumber | uri %]">Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 %]</a></span> [% END %]
[% END %] <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=title&amp;direction=[% IF sortfield != 'title' %]asc[% ELSE %][% new_direction | uri %][% END %]">Title</a>
[% ELSE %] </th>
<span class="noholdstext">No holds allowed</span> [% IF sortfield == 'author' %]
<th class="sorting_[% direction | html %]">
[% ELSE %]
<th class="sorting">
[% END %]
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=author&amp;direction=[% IF sortfield != 'author' %]asc[% ELSE %][% new_direction | uri %][% END %]">Author</a>
</th>
[% IF sortfield == 'dateadded' %]
<th class="sorting_[% direction | html %]">
[% ELSE %]
<th class="sorting">
[% END %]
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=dateadded&amp;direction=[% IF sortfield != 'dateadded' %]asc[% ELSE %][% new_direction | uri %][% END %]">Date added</a>
</th>
[% IF sortfield == 'itemcallnumber' %]
<th class="sorting_[% direction | html %]">
[% ELSE %]
<th class="sorting">
[% END %]
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=itemcallnumber&amp;direction=[% IF sortfield != 'itemcallnumber' %]asc[% ELSE %][% new_direction | uri %][% END %]">Call number</a>
</th>
</tr>
</thead>
[% FOREACH itemsloo IN itemsloop %]
<tr>
[% IF itemsloop %]
<td>
<input type="checkbox" class="selection" value="[% itemsloo.biblionumber | html %]" name="biblionumber" />
</td>
[% END %]
[% UNLESS ( item_level_itypes ) %]
<td>
[% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]
<img src="[% itemsloo.imageurl | html %]" alt="[% itemsloo.description | html %]" title="[% itemsloo.description | html %]" />
[% END %] [% END %]
<span class="itypetext">[% itemsloo.description | html %]</span>
</td>
[% END %]
<td>
[% IF ( itemsloo.XSLTBloc ) %]
[% itemsloo.XSLTBloc | $raw %]
[% ELSE %]
[% INCLUDE 'biblio-title.inc' biblio=itemsloo link = 1 %]
</a>
[% END %] [% END %]
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %] <p class="hold">
| <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% itemsloo.biblionumber | uri %]">Edit record</a> [% IF ( itemsloo.notforloan ) %]
[% END %] <span class="noholdstext">No holds allowed</span>
[% IF ( CAN_user_editcatalogue_edit_items ) %] [% ELSE %]
| <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% itemsloo.biblionumber | uri %]">Edit items</a> [% IF ( itemsloo.ITEM_RESULTS.count ) %]
[% END %] <a id="reserve_[% itemsloo.biblionumber | html %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | html %]">Holds</a>
</p> [% IF ( holdfor ) %]
</td> <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | uri %]&amp;findborrower=[% holdfor_patron.cardnumber | uri %]">Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 %]</a></span>
<td> [% END %]
[% itemsloo.author | html %] [% ELSE %]
</td> <span class="noholdstext">No holds allowed</span>
<td>
[% itemsloo.dateadded | $KohaDates%]
</td>
<td>
<ul>
[% FOREACH item IN itemsloo.ITEM_RESULTS %]
<li>
[% Branches.GetName(item.holdingbranch) | html %]
[% IF ( item.location ) %]
<span class="shelvingloc">
[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %]
</span>
[% END %] [% END %]
[% IF ( item.itemcallnumber ) %] [% END %]
[<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% item.itemcallnumber | uri %]%22">[% item.itemcallnumber | html %]</a>] [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
[% END %] | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% itemsloo.biblionumber | uri %]">Edit record</a>
</li> [% END %]
[% END # /FOREACH item %] [% IF ( CAN_user_editcatalogue_edit_items ) %]
</ul> | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% itemsloo.biblionumber | uri %]">Edit items</a>
</td> [% END %]
</tr> </p>
[% END #/FOREACH itemsloo %] </td>
</table> <!-- /#searchresults --> <td>
[% itemsloo.author | html %]
</td>
<td>
[% itemsloo.dateadded | $KohaDates%]
</td>
<td>
<ul>
[% FOREACH item IN itemsloo.ITEM_RESULTS %]
<li>
[% Branches.GetName(item.holdingbranch) | html %]
[% IF ( item.location ) %]
<span class="shelvingloc">
[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %]
</span>
[% END %]
[% IF ( item.itemcallnumber ) %]
[<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% item.itemcallnumber | uri %]%22">[% item.itemcallnumber | html %]</a>]
[% END %]
</li>
[% END # /FOREACH item %]
</ul>
</td>
</tr>
[% END #/FOREACH itemsloo %]
</table> <!-- /#searchresults -->
</div> <!-- /.page-section -->
<div class="pages">[% pagination_bar | $raw %]</div> <div class="pages">[% pagination_bar | $raw %]</div>
</form> </form>
[% END # /IF itemsloop %] [% END # /IF itemsloop %]