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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (+8 lines)
Lines 1477-1482 i { Link Here
1477
    }
1477
    }
1478
}
1478
}
1479
1479
1480
.item_status {
1481
    padding: .2rem 0;
1482
1483
    &:first-child {
1484
        padding-top: 0;
1485
    }
1486
}
1487
1480
.circ-setting {
1488
.circ-setting {
1481
    font-size: 95%;
1489
    font-size: 95%;
1482
    padding: .3em 0;
1490
    padding: .3em 0;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-21 / +20 lines)
Lines 471-479 Link Here
471
471
472
                        [% IF item.object.checkout %]
472
                        [% IF item.object.checkout %]
473
                          [% IF item.object.checkout.onsite_checkout %]
473
                          [% IF item.object.checkout.onsite_checkout %]
474
                            <span>Currently in local use
474
                            <div class="item_status localuse">Currently in local use
475
                          [% ELSE %]
475
                          [% ELSE %]
476
                            <span class="datedue">Checked out
476
                            <div class="item_status datedue">Checked out
477
                          [% END %]
477
                          [% END %]
478
                                [% IF item.can_be_edited %]
478
                                [% IF item.can_be_edited %]
479
                                  [% IF item.object.checkout.onsite_checkout %]
479
                                  [% IF item.object.checkout.onsite_checkout %]
Lines 484-544 Link Here
484
                                  [% INCLUDE 'patron-title.inc' patron=item.object.checkout.patron hide_patron_infos_if_needed=1 %]
484
                                  [% INCLUDE 'patron-title.inc' patron=item.object.checkout.patron hide_patron_infos_if_needed=1 %]
485
                                [% END %]
485
                                [% END %]
486
                                : due [% date_due | $KohaDates as_due_date => 1 %]
486
                                : due [% date_due | $KohaDates as_due_date => 1 %]
487
                            </span>
487
                            </div>
488
                        [% ELSIF ( transfer = item.object.get_transfer ) %]
488
                        [% ELSIF ( transfer = item.object.get_transfer ) %]
489
                            [% IF (transfer.datesent) %]
489
                            [% IF (transfer.datesent) %]
490
                                <span class="intransit">In transit from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% transfer.datesent | $KohaDates %]</span>
490
                                <div class="item_status intransit">In transit from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% transfer.datesent | $KohaDates %]</div>
491
                            [% ELSE %]
491
                            [% ELSE %]
492
                                <span class="transitrequested">Transit pending from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% transfer.daterequested | $KohaDates %]</span>
492
                                <div class="item_status transitrequested">Transit pending from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% transfer.daterequested | $KohaDates %]</div>
493
                            [% END %]
493
                            [% END %]
494
                        [% END %]
494
                        [% END %]
495
495
496
                        [% IF ( item.itemlost ) %]
496
                        [% IF ( item.itemlost ) %]
497
                            [% SET itemlost_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) %]
497
                            [% SET itemlost_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) %]
498
                            [% IF itemlostloop %]
498
                            [% IF itemlostloop %]
499
                                <span class="lost">[% itemlost_description | html %]</span>
499
                                <div class="item_status lost">[% itemlost_description | html %]</div>
500
                            [% ELSE %]
500
                            [% ELSE %]
501
                                <span class="lost">Unavailable (lost or missing)</span>
501
                                <div class="item_status lost">Unavailable (lost or missing)</div>
502
                            [% END %]
502
                            [% END %]
503
                        [% END %]
503
                        [% END %]
504
504
505
                        [% IF ( item.withdrawn ) %]
505
                        [% IF ( item.withdrawn ) %]
506
                            [% SET withdrawn_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
506
                            [% SET withdrawn_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
507
                            [% IF withdrawn_description %]
507
                            [% IF withdrawn_description %]
508
                                <span class="wdn">[% withdrawn_description | html %]</span>
508
                                <div class="item_status wdn">[% withdrawn_description | html %]</div>
509
                            [% ELSE %]
509
                            [% ELSE %]
510
                                <span class="wdn">Withdrawn</span>
510
                                <div class="item_status wdn">Withdrawn</div>
511
                            [% END %]
511
                            [% END %]
512
                        [% END %]
512
                        [% END %]
513
513
514
                        [% IF ( item.damaged ) %]
514
                        [% IF ( item.damaged ) %]
515
                            [% SET damaged_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => item.damaged ) %]
515
                            [% SET damaged_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => item.damaged ) %]
516
                            [% IF damaged_description %]
516
                            [% IF damaged_description %]
517
                                <span class="dmg">[% damaged_description | html %]</span>
517
                                <div class="item_status dmg">[% damaged_description | html %]</div>
518
                            [% ELSE %]
518
                            [% ELSE %]
519
                                <span class="dmg">Damaged</span>
519
                                <div class="item_status dmg">Damaged</div>
520
                            [% END %]
520
                            [% END %]
521
                        [% END %]
521
                        [% END %]
522
522
523
                        [% IF ( item.notforloan || item.itemtype.notforloan ) %]
523
                        [% IF ( item.notforloan || item.itemtype.notforloan ) %]
524
                            <span class="notforloan">Not for loan
524
                            <div class="item_status notforloan">Not for loan
525
                            [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
525
                            [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
526
                            [% IF not_for_loan_description %]
526
                            [% IF not_for_loan_description %]
527
                                <span class="reason">([% not_for_loan_description | html %])</span>
527
                                <span class="reason">([% not_for_loan_description | html %])</span>
528
                            [% END %]
528
                            [% END %]
529
                            </span>
529
                            </div>
530
                        [% END %]
530
                        [% END %]
531
531
532
                        [% SET hold = item.first_hold %]
532
                        [% SET hold = item.first_hold %]
533
                        [% IF hold %]
533
                        [% IF hold %]
534
                            [% IF hold.waitingdate %]
534
                            [% IF hold.waitingdate %]
535
                                <span class="waitingat">Waiting at [% Branches.GetName( hold.branchcode ) | html %][% IF ( hold.desk_id ) %], [% hold.desk.desk_name | html %][% END %] since [% hold.waitingdate | $KohaDates %].</span>
535
                                <div class="item_status waitingat">Waiting at [% Branches.GetName( hold.branchcode ) | html %][% IF ( hold.desk_id ) %], [% hold.desk.desk_name | html %][% END %] since [% hold.waitingdate | $KohaDates %].</div>
536
                                [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
536
                                [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
537
                                    <span class="heldfor">Hold for:</span>
537
                                    <span class="heldfor">Hold for:</span>
538
                                    [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
538
                                    [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
539
                                [% END %]
539
                                [% END %]
540
                            [% ELSE %]
540
                            [% ELSE %]
541
                                <span class="holdonitem">There is an item level hold on this item (priority = [% hold.priority | html %]).</span>
541
                                <div class="item_status holdonitem">There is an item level hold on this item (priority = [% hold.priority | html %]).</div>
542
                            [% END %]
542
                            [% END %]
543
                        [% END %]
543
                        [% END %]
544
544
Lines 546-569 Link Here
546
                            [% SET recall = item.object.recall %]
546
                            [% SET recall = item.object.recall %]
547
                            [% IF recall %]
547
                            [% IF recall %]
548
                                [% IF recall.waiting_date %]
548
                                [% IF recall.waiting_date %]
549
                                    <span>Waiting at [% Branches.GetName( recall.pickup_library_id ) | html %] since [% recall.waiting_date | $KohaDates %]</span>
549
                                    <div class="item_status recallat">Waiting at [% Branches.GetName( recall.pickup_library_id ) | html %] since [% recall.waiting_date | $KohaDates %]</div>
550
                                [% ELSE %]
550
                                [% ELSE %]
551
                                    [% patron_link = BLOCK %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %] ([% recall.patron.cardnumber | html %])</a>[% END %]
551
                                    [% patron_link = BLOCK %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %] ([% recall.patron.cardnumber | html %])</a>[% END %]
552
                                    <span>recalled by [% patron_link| $raw %] on [% recall.created_date | $KohaDates %]</span>
552
                                    <div class="item_status recallby">recalled by [% patron_link| $raw %] on [% recall.created_date | $KohaDates %]</div>
553
                                [% END %]
553
                                [% END %]
554
                            [% END %]
554
                            [% END %]
555
                        [% END %]
555
                        [% END %]
556
556
557
                        [% UNLESS ( item.notforloan || item.itemtype.notforloan || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfer || hold || ( Koha.Preference('UseRecalls') && recall ) ) %]
557
                        [% UNLESS ( item.notforloan || item.itemtype.notforloan || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfer || hold || ( Koha.Preference('UseRecalls') && recall ) ) %]
558
                            <span>Available</span>
558
                            <div class="item_status available">Available</div>
559
                        [% END %]
559
                        [% END %]
560
560
561
                        [% IF ( item.restricted ) %]
561
                        [% IF ( item.restricted ) %]
562
                            <span class="restricted">([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.restricted', authorised_value => item.restricted ) | html %])</span>
562
                            <div class="item_status restricted">([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.restricted', authorised_value => item.restricted ) | html %])</div>
563
                        [% END %]
563
                        [% END %]
564
564
565
                        [% IF ( item.bundle_host ) %]
565
                        [% IF ( item.bundle_host ) %]
566
                            <span class="bundled">In bundle: [% INCLUDE 'biblio-title.inc' biblio = item.bundle_host.biblio link = 1 %]</span>
566
                            <div class="item_status bundled">In bundle: [% INCLUDE 'biblio-title.inc' biblio = item.bundle_host.biblio link = 1 %]</div>
567
                        [% END %]
567
                        [% END %]
568
568
569
                    </td>
569
                    </td>
570
- 

Return to bug 35707