Owen Leonard
047ca33a93
This patch modifies the staff client patron module templates so that JavaScript is included in the footer instead of the header. This patch touches a lot of files because the changes are all interdependent, affecting a couple of module-wide include files. To test, apply the patch and test the JavaScript-driven features of the modified templates: All button controls, DataTables functionality, tabs, etc. Patrons -> Patrons home, patron search results -> Manage pending modification requests -> Patron detail page -> Edit patron -> Set guarantor -> Fines -> Account, Pay fines, Create manual invoice, Create manual credit -> Print receipts for different kinds of charges -> Routing lists -> Circulation history -> Holds history -> Notices -> Statistics -> Files -> Purchase suggestions -> Discharges -> Housebound -> Set permissions -> Change password -> Print summary, slips, and overdues -> Update child to adult patron type Patron toolbar and patron search bar operations should work correctly on all pages. This patch also updates the template for searching the Norwegian national patron database, but it has NOT been tested. Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de> Signed-off-by: Zoe Bennett <zoebennett1308@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
83 lines
3.9 KiB
Text
83 lines
3.9 KiB
Text
[% USE Koha %]
|
|
[% USE KohaDates %]
|
|
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Check duplicate patron</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<style type="text/css">
|
|
#custom-doc { width:44.23em;*width:43.12em;min-width:491px; margin:auto; text-align:left; }
|
|
</style>
|
|
</head>
|
|
<body id="pat_moremember-brief" class="pat" style="padding:.5em;">
|
|
<div id="custom-doc" class="yui-t7">
|
|
<div id="bd">
|
|
<h3>[% UNLESS ( I ) %]
|
|
[% title %] [% firstname %] [% END %] [% surname %] ([% cardnumber %])</h3>
|
|
<div class="yui-g">
|
|
<div class="yui-u first">
|
|
<div id="patron-information" style="padding: .5em;">
|
|
|
|
[% UNLESS ( I ) %][% IF ( othernames ) %]“[% othernames %]”[% END %]
|
|
<div class = "address">
|
|
[% IF Koha.Preference( 'AddressFormat' ) %]
|
|
[% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
|
|
[% ELSE %]
|
|
[% INCLUDE 'member-display-address-style-us.inc' %]
|
|
[% END %]
|
|
</div>
|
|
<div class="rows">
|
|
<ol>
|
|
[% IF ( phone ) %]<li><span class="label">Primary phone: </span>[% phone %]</li>[% END %]
|
|
[% IF ( phonepro ) %]<li><span class="label">Secondary phone: </span>[% phonepro %]</li>[% END %]
|
|
[% IF ( mobile ) %]<li><span class="label">Other phone: </span>[% mobile %]</li>[% END %]
|
|
[% IF ( fax ) %]<li><span class="label">Fax: </span>[% fax %]</li>[% END %]
|
|
[% IF ( email ) %]<li class="email"><span class="label">Primary email:</span><a href="mailto:[% email %]">[% email %]</a></li>[% END %]
|
|
[% IF ( emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
|
|
[% UNLESS ( I ) %]
|
|
[% IF ( inititals ) %]<li><span class="label">Initials: </span>[% initials %]</li>[% END %]
|
|
[% IF ( dateofbirth ) %]<li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %]</li>[% END %]
|
|
[% IF ( sex ) %]<li><span class="label">Gender:</span>[% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]</li>[% END %][% END %]
|
|
[% END %]
|
|
[% IF ( isguarantee ) %]
|
|
[% IF ( guaranteeloop ) %]
|
|
<li><span class="label">Guarantees:</span><ul>[% FOREACH guaranteeloo IN guaranteeloop %]<li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guaranteeloo.borrowernumber %]">[% guaranteeloo.name %] </a></li>[% END %]</ul></li>
|
|
[% END %]
|
|
[% ELSE %]
|
|
[% IF ( guarantor.borrowernumber ) %]
|
|
<li><span class="label">Guarantor:</span><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.surname %], [% guarantor.firstname %]</a></li>
|
|
[% END %]
|
|
[% END %]
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="yui-u">
|
|
<div id="patron-library-details">
|
|
<h3>Library use</h3>
|
|
<div class="rows">
|
|
<ol>
|
|
<li><span class="label">Card number: </span>[% cardnumber %]</li>
|
|
<li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li>
|
|
<li><span class="label">Category: </span>[% categoryname %] ([% categorycode %])</li>
|
|
<li><span class="label">Registration date: </span>[% dateenrolled | $KohaDates %]</li>
|
|
<li><span class="label">Expiration date: </span>
|
|
[% IF ( was_renewed ) %]
|
|
<strong class="reregistrinfo">[% dateexpiry | $KohaDates %]</strong>
|
|
[% ELSE %]
|
|
[% dateexpiry | $KohaDates %]
|
|
[% END %]
|
|
</li>
|
|
<li><span class="label">Library: </span>[% branchname %]</li>
|
|
|
|
[% IF ( sort1 ) %]<li><span class="label">Sort field 1:</span>[% lib1 %]</li>[% END %]
|
|
[% IF ( sort2 ) %]<li><span class="label">Sort field 2:</span>[% lib2 %]</li>[% END %]
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
<fieldset class="action"><input type="button" class="close" value="Close window" /></fieldset>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
[% INCLUDE 'popup-bottom.inc' %]
|