Koha/koha-tmpl/intranet-tmpl/prog/en/includes/str/members-menu.inc
Jonathan Druart 7c05f4fbe4 Bug 21068: Remove NorwegianPatronDB related code
Bug 11401 introduced code to support Norwegian national library card.
This code is too specific to be part of Koha as it, it should be a
plugin instead.
Moreover nobody uses it, but a modified version (see comment 3).

Test plan:
Add/edit/delete patron and make sure there are no regressions introduced
by these patches

Signed-off-by: Benjamin Rokseth <benjamin.rokseth@deichman.no>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-08-30 13:40:29 +00:00

23 lines
808 B
PHP

[% USE scalar %]
[% USE Koha %]
[% USE Categories %]
<script type="text/javascript">
var advsearch = "[% advsearch | html %]";
var destination = "[% destination | html %]";
var CAN_user_borrowers_edit_borrowers = "[% CAN_user_borrowers_edit_borrowers | html %]";
var dateformat = "[% Koha.Preference('dateformat') | html %]";
var borrowernumber;
var number_of_adult_categories = 0;
[% IF patron %]
borrowernumber = "[% patron.borrowernumber | html %]";
[% IF patron.is_child %]
[% SET adult_categories = Categories.scalar.all(category_type => 'A') %]
[% SET number_of_adult_categories = adult_categories.count %]
number_of_adult_categories = [% number_of_adult_categories | html %]
[% END %]
[% END %]
</script>