View | Details | Raw Unified | Return to bug 23602
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-7 / +7 lines)
Lines 283-289 Item types administration Link Here
283
                        [% END %]
283
                        [% END %]
284
                    </select>
284
                    </select>
285
                </li>
285
                </li>
286
                <li><label for="branches">Libraries limitation: </label>
286
                <li><label for="branches">Library limitation: </label>
287
                    <select id="branches" name="branches" multiple size="10">
287
                    <select id="branches" name="branches" multiple size="10">
288
                        <option value="">All libraries</option>
288
                        <option value="">All libraries</option>
289
                        [% FOREACH branch IN branches_loop %]
289
                        [% FOREACH branch IN branches_loop %]
Lines 359-365 Item types administration Link Here
359
            <th>Default replacement cost</th>
359
            <th>Default replacement cost</th>
360
            <th>Processing fee (when lost)</th>
360
            <th>Processing fee (when lost)</th>
361
            <th>Checkin message</th>
361
            <th>Checkin message</th>
362
            <th>Branches limitations</th>
362
            <th>Library limitations</th>
363
            <th>Actions</th>
363
            <th>Actions</th>
364
          </thead>
364
          </thead>
365
          [% FOREACH itemtype IN itemtypes %]
365
          [% FOREACH itemtype IN itemtypes %]
Lines 416-428 Item types administration Link Here
416
                [% IF itemtype.branches.size > 0 %]
416
                [% IF itemtype.branches.size > 0 %]
417
                    [% branches_str = "" %]
417
                    [% branches_str = "" %]
418
                    [% FOREACH branch IN itemtype.branches %]
418
                    [% FOREACH branch IN itemtype.branches %]
419
                        [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %]
419
                        [% branches_str = branches_str _ " " _ branch.branchname _ " (" _ branch.branchcode _ ")" %]
420
                    [% END %]
420
                    [% END %]
421
                    <span href="#" title="[% branches_str | html %]">
421
                    <span class="library_limitation" title="[% branches_str | html %]">
422
                        [% IF itemtype.branches.size > 1 %]
422
                        [% IF itemtype.branches.size > 1 %]
423
                            [% itemtype.branches.size | html %] branches limitations
423
                            [% itemtype.branches.size | html %] library limitations
424
                        [% ELSE %]
424
                        [% ELSE %]
425
                            [% itemtype.branches.size | html %] branch limitation
425
                            [% itemtype.branches.size | html %] library limitation
426
                        [% END %]
426
                        [% END %]
427
                [% ELSE %]
427
                [% ELSE %]
428
                    No limitation
428
                    No limitation
Lines 475-480 Item types administration Link Here
475
            $("#itemtype").on("blur",function(){
475
            $("#itemtype").on("blur",function(){
476
                toUC(this);
476
                toUC(this);
477
            });
477
            });
478
            $(".library_limitation").tooltip();
478
         });
479
         });
479
    </script>
480
    </script>
480
[% END %]
481
[% END %]
481
- 

Return to bug 23602