Bug 38436: Fix patron categories
Make it use bKohaColumnsUseNames as we are building the columns depending on sysprefs. Note that the hard-coded list of columns to export is wrong exportColumns: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], Must use .noExport instead. Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
f346a2e0de
commit
c1daf6b2c2
|
|
@ -326,12 +326,22 @@ modules:
|
|||
columnname: messaging
|
||||
-
|
||||
columnname: branches_limitations
|
||||
-
|
||||
columnname: check_previous_checkout
|
||||
-
|
||||
columnname: can_place_ill_in_opac
|
||||
-
|
||||
columnname: can_be_guarantee
|
||||
-
|
||||
columnname: default_privacy
|
||||
-
|
||||
columnname: exclude_from_local_holds_priority
|
||||
-
|
||||
columnname: checkout_charge_limit
|
||||
-
|
||||
columnname: guarantees_checkout_charge_limit
|
||||
-
|
||||
columnname: guarantors_checkout_charge_limit
|
||||
-
|
||||
columnname: actions
|
||||
cannot_be_toggled: 1
|
||||
|
|
|
|||
|
|
@ -616,34 +616,34 @@
|
|||
<table id="patron_categories">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Code</th>
|
||||
<th scope="col">Category name</th>
|
||||
<th scope="col">Type</th>
|
||||
<th scope="col">Enrollment period</th>
|
||||
<th scope="col">Password expiration</th>
|
||||
<th scope="col">Age required</th>
|
||||
<th scope="col">Upper age limit</th>
|
||||
<th scope="col">Enrollment fee</th>
|
||||
<th scope="col">Overdue</th>
|
||||
<th scope="col">Lost items</th>
|
||||
<th scope="col">Hold fee</th>
|
||||
<th scope="col" data-colname="code">Code</th>
|
||||
<th scope="col" data-colname="category_name">Category name</th>
|
||||
<th scope="col" data-colname="type">Type</th>
|
||||
<th scope="col" data-colname="enrollment_period">Enrollment period</th>
|
||||
<th scope="col" data-colname="password_expiration">Password expiration</th>
|
||||
<th scope="col" data-colname="age_required">Age required</th>
|
||||
<th scope="col" data-colname="upper_age_limit">Upper age limit</th>
|
||||
<th scope="col" data-colname="enrollment_fee">Enrollment fee</th>
|
||||
<th scope="col" data-colname="overdue">Overdue</th>
|
||||
<th scope="col" data-colname="lost_items">Lost items</th>
|
||||
<th scope="col" data-colname="hold_fee">Hold fee</th>
|
||||
[% IF ( EnhancedMessagingPreferences ) %]
|
||||
<th scope="col">Messaging</th>
|
||||
<th scope="col" data-colname="messaging">Messaging</th>
|
||||
[% END %]
|
||||
<th scope="col">Library limitations</th>
|
||||
<th scope="col" data-colname="branches_limitations">Library limitations</th>
|
||||
[% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
|
||||
<th scope="col">Check previous checkout?</th>
|
||||
<th scope="col" data-colname="check_previous_checkout">Check previous checkout?</th>
|
||||
[% END %]
|
||||
[% IF ( Koha.Preference('ILLModule') ) %]
|
||||
<th scope="col">Can place ILL in OPAC?</th>
|
||||
<th scope="col" data-colname="can_place_ill_in_opac">Can place ILL in OPAC?</th>
|
||||
[% END %]
|
||||
<th scope="col">Can be guarantee</th>
|
||||
<th scope="col">Default privacy</th>
|
||||
<th scope="col">Exclude from local holds priority</th>
|
||||
<th scope="col">Checkout charge limit</th>
|
||||
<th scope="col">Guarantees checkout charge limit</th>
|
||||
<th scope="col">Guarantors with guarantees checkout charge limit</th>
|
||||
<th scope="col">Actions</th>
|
||||
<th scope="col" data-colname="can_be_guarantee">Can be guarantee</th>
|
||||
<th scope="col" data-colname="default_privacy">Default privacy</th>
|
||||
<th scope="col" data-colname="exclude_from_local_holds_priority">Exclude from local holds priority</th>
|
||||
<th scope="col" data-colname="checkout_charge_limit">Checkout charge limit</th>
|
||||
<th scope="col" data-colname="guarantees_checkout_charge_limit">Guarantees checkout charge limit</th>
|
||||
<th scope="col" data-colname="guarantors_checkout_charge_limit">Guarantors with guarantees checkout charge limit</th>
|
||||
<th scope="col" data-colname="actions">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ $(document).ready(function () {
|
|||
],
|
||||
pagingType: "full",
|
||||
exportColumns: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
|
||||
bKohaColumnsUseNames: true,
|
||||
},
|
||||
table_settings
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue