Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members/purchase-suggestions.tt
Owen Leonard 2453b991b8 Bug 11802 - corrects for the patron purchase suggestions page
This patch corrects some errors with the staff client's patron purchase
suggestions page (members/purchase-suggestions.pl).

To test, apply the patch and make sure the patronimages system
preference is enabled.

- View the purchase suggestions page for a patron whose record has a
  patron image attached. The image should appear in the left-hand
  sidebar.

- View the page for a patron who has submitted no purchase suggestions.
  The message should be styled correctly.

- The toolbar on the page should look correct and work correctly.

Signed-off-by: Jesse Maseto <jesse@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-03-10 15:11:53 +00:00

108 lines
4.8 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Patrons &rsaquo; Purchase suggestions for [% INCLUDE 'patron-title.inc' %]</title>
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
[% INCLUDE 'doc-head-close.inc' %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
$(document).ready(function() {
$("#suggestions").dataTable($.extend(true, {}, dataTablesDefaults, {
'bPaginate': false,
'bFilter': false,
'bInfo': false,
'sDom': 't'
} ));
});
</script>
</head>
<body>
[% INCLUDE 'header.inc' %]
[% INCLUDE 'patron-search.inc' %]
<div id="breadcrumbs">
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
&rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
&rsaquo; Purchase suggestions for [% INCLUDE 'patron-title.inc' %]
</div>
<div id="doc3" class="yui-t1">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<div class="yui-g">
<h2>Purchase suggestions</h2>
<div id="toolbar" class="btn-toolbar">
<a class="btn btn-small" id="newsuggestion" href="/cgi-bin/koha/suggestion/suggestion.pl?op=add&amp;suggestedby=[% borrowernumber %]&amp;redirect=purchase_suggestions&amp;borrowernumber=[% borrowernumber %]"><i class="icon-plus"></i> New purchase suggestion</a>
</div>
[% IF suggestions %]
<table id="suggestions">
<thead>
<tr>
<th>Summary</th>
<th>Note</th>
<th>Managed by</th>
<th>Status</th>
</tr>
</thead>
<tbody>
[% FOREACH s IN suggestions %]
<tr>
<td>
<p>
<strong>
[% IF ( CAN_user_catalogue ) %]
<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% s.suggestionid %]&amp;op=show">[% s.title |html %]</a>
[% ELSE %]
[% s.title |html %]
[% END %]
</strong>
</p>
<p>
[% IF ( s.author ) %][% s.author %],[% END %]
[% IF ( s.copyrightdate ) %] - [% s.copyrightdate %],[% END %]
[% IF ( s.publishercode ) %] - [% s.publishercode %][% END %]
[% IF ( s.place ) %]([% s.place %])[% END %]
[% IF ( s.collectiontitle ) %] , [% s.collectiontitle %][% END %]
[% IF ( s.itemtype ) %] - [% s.itemtype %][% END %]
</p>
</td>
<td>[% s.note %]
<td>
[% IF ( s.surnamemanagedby ) %]
[% s.surnamemanagedby %]
[% IF ( s.firstnamemanagedby ) %],[% END %]
[% s.firstnamemanagedby %]
[% ELSE %]
&nbsp;
[% END %]
</td>
<td>
[% IF ( s.ASKED ) %]Requested[% END %]
[% IF ( s.CHECKED ) %]Checked by the library[% END %]
[% IF ( s.ACCEPTED ) %]Accepted by the library[% END %]
[% IF ( s.ORDERED ) %]Ordered by the library[% END %]
[% IF ( s.REJECTED ) %]Suggestion declined [% END %]
[% IF ( s.AVAILABLE ) %]Available in the library[% END %]
[% IF ( s.reason ) %]([% s.reason %])[% END %]
</td>
</tr>
[% END %]
</tbody>
</table>
[% ELSE %]
<div class="dialog message">
<p>This patron has not submitted any purchase suggestions</p>
</div>
[% END %]
</div>
</div>
</div>
<div class="yui-b">
[% INCLUDE 'circ-menu.inc' %]
</div>
</div>
[% INCLUDE 'intranet-bottom.inc' %]