Josef Moravec
ebd7c422b4
Modified pages: circ/circulation.pl circ/circulation_batch_checkouts.pl members/boraccount.pl members/files.pl members/holdshistory.pl members/housebound.pl members/moremember.pl members/notices.pl members/purchase-suggestions.pl members/readingrec.pl members/routing-lists.pl members/statistics.pl Test plan: 0) Do not apply the patch 1) Have a patron with title/salution filled in 2) Confirm bug, go for example to circ/circulation page and see there is html in <title> tag (you can see it in your browser page/window title) 3) Apply the patch 4) Go through circulation/patron pages (see modified page above) and confirm there is no html in <title> tag, but on the page itself the salutation should be in <span class="patron-title"> Signed-off-by: David Bourgalt <david.bourgault@inlibro.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
111 lines
5 KiB
Text
111 lines
5 KiB
Text
[% USE Koha %]
|
|
[% USE AuthorisedValues %]
|
|
[% USE Branches %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Patrons › Purchase suggestions for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
|
|
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/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 id="pat_purchase_suggestions" class="pat">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'patron-search.inc' %]
|
|
|
|
<div id="breadcrumbs">
|
|
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
|
|
› <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
|
|
› 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-default btn-sm" id="newsuggestion" href="/cgi-bin/koha/suggestion/suggestion.pl?op=add&suggestedby=[% borrowernumber %]&redirect=purchase_suggestions&borrowernumber=[% borrowernumber %]"><i class="fa fa-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 %]&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 %]
|
|
|
|
[% 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' %]
|