TrackClicks
PatronSelfRegistration
OPACShelfBrowser
- AddPatronLists
AutoEmailOpacUser
AutoEmailPrimaryAddress
autoMemberNum
my $message;
if ($findborrower) {
my $borrowers = Search($findborrower, 'cardnumber') || [];
- if (C4::Context->preference("AddPatronLists")) {
- if (C4::Context->preference("AddPatronLists")=~/code/){
- my $categories = GetBorrowercategoryList;
- $categories->[0]->{'first'} = 1;
- $template->param(categories=>$categories);
- }
- }
+ my $categories = GetBorrowercategoryList;
+ $categories->[0]->{first} = 1;
+ $template->param( categories => $categories );
+
if ( @$borrowers == 0 ) {
$query->param( 'findborrower', '' );
$message = "'$findborrower'";
('AcquisitionDetails', '1', '', 'Hide/Show acquisition details on the biblio detail page.', 'YesNo'),
('AcqViewBaskets','user','user|branch|all','Define which baskets a user is allowed to view: his own only, any within his branch or all','Choice'),
('AcqWarnOnDuplicateInvoice','0','','Warn librarians when they try to create a duplicate invoice','YesNo'),
-('AddPatronLists','categorycode','categorycode|category_type','Allow user to choose what list to pick up from when adding patrons','Choice'),
('advancedMARCeditor','0','','If ON, the MARC editor won\'t display field/subfield descriptions','YesNo'),
('AdvancedSearchLanguages','','','ISO 639-2 codes of languages you wish to see appear as an Advanced search option. Example: eng|fre|ita','Textarea'),
('AdvancedSearchTypes','itemtypes','itemtypes|ccode','Select which set of fields comprise the Type limit in the advanced search','Choice'),
SetVersion($DBversion);
}
+$DBversion = "3.19.00.XXX";
+if ( CheckVersion($DBversion) ) {
+ $dbh->do(q|
+ DELETE FROM systempreferences where variable = 'AddPatronLists'
+ |);
+ print "Upgrade to $DBversion done (Bug XXXXX - Remove the AddPatronLists system preferences)\n";
+ SetVersion ($DBversion);
+}
+
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.
<div class="btn-group">
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-plus"></i> New patron <span class="caret"></span></button>
<ul class="dropdown-menu">
- [% IF Koha.Preference('AddPatronLists') == 'categorycode' %]
- [% FOREACH categorie IN categories %]<li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=[% categorie.categorycode %]">[% categorie.description %]</a></li>[% END %]
- [% ELSE %]
- <li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=A">Adult patron</a></li>
- <li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=C">Child patron</a></li>
- <li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=P">Professional patron</a></li>
- <li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=I">Organization</a></li>
- <li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=S">Staff patron</a></li>
- <li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=X">Statistical patron</a></li>
- [% END %]
+ [% FOREACH categorie IN categories %]<li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=[% categorie.categorycode %]">[% categorie.description %]</a></li>[% END %]
</ul>
</div>
</div>
Patrons:
General:
-
- - List
- - pref: AddPatronLists
- choices:
- categorycode: specific categories
- category_type: general patron types
- - under the new patron menu.
- -
- pref: AutoEmailOpacUser
choices:
yes: Send
}
my @categories;
-my $no_categories;
my $no_add = 0;
if(scalar(@branchloop) < 1){
$no_add = 1;
}
@categories=C4::Category->all;
-if(scalar(@categories) < 1){
- $no_categories = 1;
-}
-
-if($no_categories && C4::Context->preference("AddPatronLists")=~/code/){
+if(scalar(@categories) < 1){
$no_add = 1;
$template->param(no_categories => 1);
-}
+}
else {
$template->param(categories=>\@categories);
}