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:
parent
8a63e6eecc
commit
4573e5ff91
6 changed files with 271 additions and 260 deletions
|
@ -167,6 +167,7 @@
|
|||
|
||||
<div class="page-section">
|
||||
<h3>History</h3>
|
||||
|
||||
<table class="accountline-offsets-table" id="accountline-debits-table">
|
||||
<thead>
|
||||
<tr>
|
||||
|
|
|
@ -27,22 +27,23 @@
|
|||
<div class="row">
|
||||
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
|
||||
|
||||
<h1>Koha offline circulation</h1>
|
||||
<p>Your file was uploaded. Once all files are uploaded, please process them in pending offline circulation actions.</p>
|
||||
<h1>Koha offline circulation</h1>
|
||||
<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 %]
|
||||
[% IF ( message.message ) %]
|
||||
[% 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>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% FOREACH message IN messages %]
|
||||
[% IF ( message.message ) %]
|
||||
[% 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.</div>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
<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="process_koc.pl">Upload another KOC file</a></p>
|
||||
|
||||
<p><a href="list.pl">View pending offline circulation actions</a></p>
|
||||
</div> <!-- /.page-section -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
[% INCLUDE 'intranet-bottom.inc' %]
|
||||
|
|
|
@ -35,65 +35,67 @@
|
|||
|
||||
<h1>Offline circulation</h1>
|
||||
|
||||
[% IF ( pending_operations ) %]
|
||||
[% IF ( pending_operations ) %]
|
||||
|
||||
<form>
|
||||
<form>
|
||||
<p>
|
||||
<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>
|
||||
</p>
|
||||
|
||||
<table id="operations">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th>Date</th>
|
||||
<th>Action</th>
|
||||
<th>Barcode</th>
|
||||
<th>Card number</th>
|
||||
<th>Amount</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
[% FOREACH operation IN pending_operations %]
|
||||
<tr class="oc-[% operation.action | html %]">
|
||||
<td><input type="checkbox" name="operationid" id="operationid[% operation.operationid | html %]" value="[% operation.operationid | html %]" /></td>
|
||||
<td>
|
||||
<label for="operationid[% operation.operationid | html %]">[% operation.timestamp | html %]</label>
|
||||
</td>
|
||||
<td>
|
||||
[% SWITCH ( operation.action ) -%]
|
||||
[% CASE "issue" -%]
|
||||
<span>Check out</span>
|
||||
[% CASE "return" -%]
|
||||
<span>Check in</span>
|
||||
[% CASE "payment" -%]
|
||||
<span>Payment</span>
|
||||
[% CASE # default case -%]
|
||||
<span>[% operation.action | html %]</span>
|
||||
[% END -%]
|
||||
</td>
|
||||
<td>
|
||||
[% IF ( operation.biblionumber ) %]
|
||||
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber | uri %]" title="[% operation.bibliotitle | html %]">[% operation.barcode | html %]</a>
|
||||
[% ELSE %]
|
||||
<span class="error">[% operation.barcode | html %]</span>
|
||||
[% END %]
|
||||
</td>
|
||||
<td>
|
||||
[% IF ( operation.actionissue || operation.actionpayment) %]
|
||||
[% IF ( operation.borrowernumber ) %]
|
||||
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% operation.borrowernumber | uri %]" title="[% operation.borrower | html %]">[% operation.cardnumber | html %]</a>
|
||||
[% ELSE %]
|
||||
<span class="error">[% operation.cardnumber | html %]</span>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</td>
|
||||
<td>[% operation.amount | html %]</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="page-section">
|
||||
<table id="operations">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th>Date</th>
|
||||
<th>Action</th>
|
||||
<th>Barcode</th>
|
||||
<th>Card number</th>
|
||||
<th>Amount</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
[% FOREACH operation IN pending_operations %]
|
||||
<tr class="oc-[% operation.action | html %]">
|
||||
<td><input type="checkbox" name="operationid" id="operationid[% operation.operationid | html %]" value="[% operation.operationid | html %]" /></td>
|
||||
<td>
|
||||
<label for="operationid[% operation.operationid | html %]">[% operation.timestamp | html %]</label>
|
||||
</td>
|
||||
<td>
|
||||
[% SWITCH ( operation.action ) -%]
|
||||
[% CASE "issue" -%]
|
||||
<span>Check out</span>
|
||||
[% CASE "return" -%]
|
||||
<span>Check in</span>
|
||||
[% CASE "payment" -%]
|
||||
<span>Payment</span>
|
||||
[% CASE # default case -%]
|
||||
<span>[% operation.action | html %]</span>
|
||||
[% END -%]
|
||||
</td>
|
||||
<td>
|
||||
[% IF ( operation.biblionumber ) %]
|
||||
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber | uri %]" title="[% operation.bibliotitle | html %]">[% operation.barcode | html %]</a>
|
||||
[% ELSE %]
|
||||
<span class="error">[% operation.barcode | html %]</span>
|
||||
[% END %]
|
||||
</td>
|
||||
<td>
|
||||
[% IF ( operation.actionissue || operation.actionpayment) %]
|
||||
[% IF ( operation.borrowernumber ) %]
|
||||
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% operation.borrowernumber | uri %]" title="[% operation.borrower | html %]">[% operation.cardnumber | html %]</a>
|
||||
[% ELSE %]
|
||||
<span class="error">[% operation.cardnumber | html %]</span>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</td>
|
||||
<td>[% operation.amount | html %]</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
</div> <!-- /.page-section -->
|
||||
|
||||
<p id="actions">For the selected operations:
|
||||
<input type="button" id="process" value="Process" />
|
||||
|
|
|
@ -67,53 +67,55 @@
|
|||
<div id="manage-patroncards-layouts">
|
||||
[% IF ( table_loop ) %]
|
||||
<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>
|
||||
<table>
|
||||
[% FOREACH table_loo IN table_loop %]
|
||||
[% IF ( table_loo.header_fields ) %]
|
||||
<tr>
|
||||
[% FOREACH header_field IN table_loo.header_fields %]
|
||||
[% SWITCH header_field.field_label -%]
|
||||
[%- CASE 'Layout ID' -%]<th>Layout ID</th>
|
||||
[%- CASE 'Layout' -%]<th>Layout</th>
|
||||
[%- CASE 'Action' -%]<th>Action</th>
|
||||
[%- CASE 'Actions' -%]<th class="noExport">Actions</th>
|
||||
[%- CASE 'Select' -%][% IF ( print ) %]<th>Select</th>[% END %]
|
||||
[%- CASE 'Template ID' -%]<th>Template ID</th>
|
||||
[%- CASE 'Template Name' -%]<th>Template name</th>
|
||||
[%- CASE 'Description' -%]<th>Description</th>
|
||||
[%- CASE 'Profile ID' -%]<th>Profile ID</th>
|
||||
[%- CASE 'Printer Name' -%]<th>Printer name</th>
|
||||
[%- CASE 'Paper Bin' -%]<th>Paper bin</th>
|
||||
[%- CASE 'Batch ID' -%]<th>Batch ID</th>
|
||||
[%- CASE 'Patron Count' -%]<th>Patron count</th>
|
||||
[%- CASE -%]<th>[% header_field.field_label | html %]</th>
|
||||
[% END -%]
|
||||
[% END %]
|
||||
</tr>
|
||||
[% ELSE %]
|
||||
<tr>
|
||||
[% FOREACH text_field IN table_loo.text_fields %]
|
||||
[% IF ( text_field.select_field ) %]
|
||||
<td>
|
||||
<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>
|
||||
[% 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 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>
|
||||
</td>
|
||||
[% IF ( print ) %]<td><input type="checkbox" name="action" value="[% text_field.field_value | html %]" /></td>[% END %]
|
||||
[% ELSIF ( text_field.field_value ) %]
|
||||
<td>[% text_field.field_value | html %]</td>
|
||||
[% ELSE %]
|
||||
<td> </td>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</tr>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</table>
|
||||
<fieldset class="action">
|
||||
[% IF ( print ) %]<input type="button" id="print" value="Export selected batches" />[% END %]
|
||||
</fieldset>
|
||||
<div class="page-section">
|
||||
<h2>Currently available [% PROCESS translate_card_element element=card_element_title FILTER lower %]</h2>
|
||||
<table>
|
||||
[% FOREACH table_loo IN table_loop %]
|
||||
[% IF ( table_loo.header_fields ) %]
|
||||
<tr>
|
||||
[% FOREACH header_field IN table_loo.header_fields %]
|
||||
[% SWITCH header_field.field_label -%]
|
||||
[%- CASE 'Layout ID' -%]<th>Layout ID</th>
|
||||
[%- CASE 'Layout' -%]<th>Layout</th>
|
||||
[%- CASE 'Action' -%]<th>Action</th>
|
||||
[%- CASE 'Actions' -%]<th class="noExport">Actions</th>
|
||||
[%- CASE 'Select' -%][% IF ( print ) %]<th>Select</th>[% END %]
|
||||
[%- CASE 'Template ID' -%]<th>Template ID</th>
|
||||
[%- CASE 'Template Name' -%]<th>Template name</th>
|
||||
[%- CASE 'Description' -%]<th>Description</th>
|
||||
[%- CASE 'Profile ID' -%]<th>Profile ID</th>
|
||||
[%- CASE 'Printer Name' -%]<th>Printer name</th>
|
||||
[%- CASE 'Paper Bin' -%]<th>Paper bin</th>
|
||||
[%- CASE 'Batch ID' -%]<th>Batch ID</th>
|
||||
[%- CASE 'Patron Count' -%]<th>Patron count</th>
|
||||
[%- CASE -%]<th>[% header_field.field_label | html %]</th>
|
||||
[% END -%]
|
||||
[% END %]
|
||||
</tr>
|
||||
[% ELSE %]
|
||||
<tr>
|
||||
[% FOREACH text_field IN table_loo.text_fields %]
|
||||
[% IF ( text_field.select_field ) %]
|
||||
<td>
|
||||
<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>
|
||||
[% 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 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>
|
||||
</td>
|
||||
[% IF ( print ) %]<td><input type="checkbox" name="action" value="[% text_field.field_value | html %]" /></td>[% END %]
|
||||
[% ELSIF ( text_field.field_value ) %]
|
||||
<td>[% text_field.field_value | html %]</td>
|
||||
[% ELSE %]
|
||||
<td> </td>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</tr>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</table>
|
||||
<fieldset class="action">
|
||||
[% IF ( print ) %]<input type="button" id="print" value="Export selected batches" />[% END %]
|
||||
</fieldset>
|
||||
</div> <!-- /.page-section -->
|
||||
[% IF patron_lists %]
|
||||
<fieldset class="rows">
|
||||
<legend>Or use a patron list</legend>
|
||||
|
|
|
@ -110,49 +110,51 @@
|
|||
<p>Use the dictionary to define custom criteria for reporting.</p>
|
||||
|
||||
[% IF ( definitions ) %]
|
||||
<h2>Current terms</h2>
|
||||
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
|
||||
<input type="hidden" name="phase" value="View Dictionary" />
|
||||
[% IF ( areas ) %]
|
||||
Filter by area
|
||||
<select name="area">
|
||||
<option value="">All</option>
|
||||
[% FOREACH area IN areas %]
|
||||
[%- IF ( area.selected ) -%]
|
||||
<option value="[% area.id | html %]" selected="selected">[%- PROCESS area_name area=area.id -%]</option>
|
||||
[%- ELSE -%]
|
||||
<option value="[% area.id | html %]">[%- PROCESS area_name area=area.id -%]</option>
|
||||
[%- END -%]
|
||||
[% END %]
|
||||
</select>
|
||||
<input type="submit" name="submit" class="btn btn-primary" value="Go" />
|
||||
[% END %]
|
||||
</form>
|
||||
<br />
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Area</th>
|
||||
<th>Definition</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
[% FOREACH definition IN definitions %]
|
||||
<tr>
|
||||
<td>[% definition.name | html %]</td>
|
||||
<td>[% definition.description | html %]</td>
|
||||
<td>[% definition.areaname | html %]</td>
|
||||
<td>[% definition.saved_sql | html %]</td>
|
||||
<td class="actions"><form method="post" action="/cgi-bin/koha/reports/dictionary.pl">
|
||||
<input type="hidden" name="id" value="[% definition.id | html %]" />
|
||||
<input type="hidden" name="phase" value="Delete Definition" />
|
||||
<button type="submit" name="submit" class="btn btn-default btn-xs" id="delete"><i class="fa fa-trash"></i> Delete</button>
|
||||
</form></td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</table>
|
||||
[% 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>
|
||||
<div class="page-section">
|
||||
<h2>Current terms</h2>
|
||||
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
|
||||
<input type="hidden" name="phase" value="View Dictionary" />
|
||||
[% IF ( areas ) %]
|
||||
Filter by area
|
||||
<select name="area">
|
||||
<option value="">All</option>
|
||||
[% FOREACH area IN areas %]
|
||||
[%- IF ( area.selected ) -%]
|
||||
<option value="[% area.id | html %]" selected="selected">[%- PROCESS area_name area=area.id -%]</option>
|
||||
[%- ELSE -%]
|
||||
<option value="[% area.id | html %]">[%- PROCESS area_name area=area.id -%]</option>
|
||||
[%- END -%]
|
||||
[% END %]
|
||||
</select>
|
||||
<input type="submit" name="submit" class="btn btn-primary" value="Go" />
|
||||
[% END %]
|
||||
</form>
|
||||
<br />
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Area</th>
|
||||
<th>Definition</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
[% FOREACH definition IN definitions %]
|
||||
<tr>
|
||||
<td>[% definition.name | html %]</td>
|
||||
<td>[% definition.description | html %]</td>
|
||||
<td>[% definition.areaname | html %]</td>
|
||||
<td>[% definition.saved_sql | html %]</td>
|
||||
<td class="actions"><form method="post" action="/cgi-bin/koha/reports/dictionary.pl">
|
||||
<input type="hidden" name="id" value="[% definition.id | html %]" />
|
||||
<input type="hidden" name="phase" value="Delete Definition" />
|
||||
<button type="submit" name="submit" class="btn btn-default btn-xs" id="delete"><i class="fa fa-trash"></i> Delete</button>
|
||||
</form></td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</table>
|
||||
</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 %]
|
||||
|
||||
|
|
|
@ -281,114 +281,117 @@
|
|||
</div>
|
||||
[% END %]
|
||||
|
||||
<table id="searchresults" class="dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
[% IF ( itemsloop ) %]
|
||||
<th class="checkall"> </th>
|
||||
[% END %]
|
||||
[% 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&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=title&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&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=author&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&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=dateadded&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&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=itemcallnumber&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>
|
||||
<div class="page-section">
|
||||
<table id="searchresults" class="dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
[% IF ( itemsloop ) %]
|
||||
<th class="checkall"> </th>
|
||||
[% END %]
|
||||
<p class="hold">
|
||||
[% IF ( itemsloo.notforloan ) %]
|
||||
<span class="noholdstext">No holds allowed</span>
|
||||
[% ELSE %]
|
||||
[% IF ( itemsloo.ITEM_RESULTS.count ) %]
|
||||
<a id="reserve_[% itemsloo.biblionumber | html %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | html %]">Holds</a>
|
||||
[% IF ( holdfor ) %]
|
||||
<span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | uri %]&findborrower=[% holdfor_patron.cardnumber | uri %]">Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 %]</a></span>
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
<span class="noholdstext">No holds allowed</span>
|
||||
[% 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&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=title&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&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=author&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&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=dateadded&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&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=itemcallnumber&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 %]
|
||||
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
|
||||
| <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% itemsloo.biblionumber | uri %]">Edit record</a>
|
||||
[% END %]
|
||||
[% IF ( CAN_user_editcatalogue_edit_items ) %]
|
||||
| <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% itemsloo.biblionumber | uri %]">Edit items</a>
|
||||
[% END %]
|
||||
</p>
|
||||
</td>
|
||||
<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>
|
||||
<p class="hold">
|
||||
[% IF ( itemsloo.notforloan ) %]
|
||||
<span class="noholdstext">No holds allowed</span>
|
||||
[% ELSE %]
|
||||
[% IF ( itemsloo.ITEM_RESULTS.count ) %]
|
||||
<a id="reserve_[% itemsloo.biblionumber | html %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | html %]">Holds</a>
|
||||
[% IF ( holdfor ) %]
|
||||
<span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber | uri %]&findborrower=[% holdfor_patron.cardnumber | uri %]">Place hold for [% INCLUDE 'patron-title.inc' patron => holdfor_patron no_title => 1 %]</a></span>
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
<span class="noholdstext">No holds allowed</span>
|
||||
[% END %]
|
||||
[% IF ( item.itemcallnumber ) %]
|
||||
[<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% item.itemcallnumber | uri %]%22">[% item.itemcallnumber | html %]</a>]
|
||||
[% END %]
|
||||
</li>
|
||||
[% END # /FOREACH item %]
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
[% END #/FOREACH itemsloo %]
|
||||
</table> <!-- /#searchresults -->
|
||||
[% END %]
|
||||
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
|
||||
| <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% itemsloo.biblionumber | uri %]">Edit record</a>
|
||||
[% END %]
|
||||
[% IF ( CAN_user_editcatalogue_edit_items ) %]
|
||||
| <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% itemsloo.biblionumber | uri %]">Edit items</a>
|
||||
[% END %]
|
||||
</p>
|
||||
</td>
|
||||
<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&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>
|
||||
</form>
|
||||
[% END # /IF itemsloop %]
|
||||
|
|
Loading…
Reference in a new issue