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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-19 / +18 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
                            <span class="localuse clearfix">Currently in local use
475
                          [% ELSE %]
475
                          [% ELSE %]
476
                            <span class="datedue">Checked out
476
                            <span class="datedue clearfix">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 487-495 Link Here
487
                            </span>
487
                            </span>
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
                                <span class="intransit clearfix">In transit from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% transfer.datesent | $KohaDates %]</span>
491
                            [% ELSE %]
491
                            [% ELSE %]
492
                                <span class="transitrequested">Transit pending from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% item.transfer.daterequested | $KohaDates %]</span>
492
                                <span class="transitrequested clearfix">Transit pending from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% item.transfer.daterequested | $KohaDates %]</span>
493
493
494
                            [% END %]
494
                            [% END %]
495
                        [% END %]
495
                        [% END %]
Lines 497-528 Link Here
497
                        [% IF ( item.itemlost ) %]
497
                        [% IF ( item.itemlost ) %]
498
                            [% SET itemlost_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) %]
498
                            [% SET itemlost_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) %]
499
                            [% IF itemlostloop %]
499
                            [% IF itemlostloop %]
500
                                <span class="lost">[% itemlost_description | html %]</span>
500
                                <span class="lost clearfix">[% itemlost_description | html %]</span>
501
                            [% ELSE %]
501
                            [% ELSE %]
502
                                <span class="lost">Unavailable (lost or missing)</span>
502
                                <span class="lost clearfix">Unavailable (lost or missing)</span>
503
                            [% END %]
503
                            [% END %]
504
                        [% END %]
504
                        [% END %]
505
505
506
                        [% IF ( item.withdrawn ) %]
506
                        [% IF ( item.withdrawn ) %]
507
                            [% SET withdrawn_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
507
                            [% SET withdrawn_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
508
                            [% IF withdrawn_description %]
508
                            [% IF withdrawn_description %]
509
                                <span class="wdn">[% withdrawn_description | html %]</span>
509
                                <span class="wdn clearfix">[% withdrawn_description | html %]</span>
510
                            [% ELSE %]
510
                            [% ELSE %]
511
                                <span class="wdn">Withdrawn</span>
511
                                <span class="wdn clearfix">Withdrawn</span>
512
                            [% END %]
512
                            [% END %]
513
                        [% END %]
513
                        [% END %]
514
514
515
                        [% IF ( item.damaged ) %]
515
                        [% IF ( item.damaged ) %]
516
                            [% SET damaged_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => item.damaged ) %]
516
                            [% SET damaged_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => item.damaged ) %]
517
                            [% IF damaged_description %]
517
                            [% IF damaged_description %]
518
                                <span class="dmg">[% damaged_description | html %]</span>
518
                                <span class="dmg clearfix">[% damaged_description | html %]</span>
519
                            [% ELSE %]
519
                            [% ELSE %]
520
                                <span class="dmg">Damaged</span>
520
                                <span class="dmg clearfix">Damaged</span>
521
                            [% END %]
521
                            [% END %]
522
                        [% END %]
522
                        [% END %]
523
523
524
                        [% IF ( item.notforloan || item.itemtype.notforloan ) %]
524
                        [% IF ( item.notforloan || item.itemtype.notforloan ) %]
525
                            <span class="notforloan">Not for loan
525
                            <span class="notforloan clearfix">Not for loan
526
                            [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
526
                            [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
527
                            [% IF not_for_loan_description %]
527
                            [% IF not_for_loan_description %]
528
                                <span class="reason">([% not_for_loan_description | html %])</span>
528
                                <span class="reason">([% not_for_loan_description | html %])</span>
Lines 533-545 Link Here
533
                        [% SET hold = item.first_hold %]
533
                        [% SET hold = item.first_hold %]
534
                        [% IF hold %]
534
                        [% IF hold %]
535
                            [% IF hold.waitingdate %]
535
                            [% IF hold.waitingdate %]
536
                                <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>
536
                                <span class="waitingat clearfix">Waiting at [% Branches.GetName( hold.branchcode ) | html %][% IF ( hold.desk_id ) %], [% hold.desk.desk_name | html %][% END %] since [% hold.waitingdate | $KohaDates %].</span>
537
                                [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
537
                                [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
538
                                    <span class="heldfor">Hold for:</span>
538
                                    <span class="heldfor">Hold for:</span>
539
                                    [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
539
                                    [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
540
                                [% END %]
540
                                [% END %]
541
                            [% ELSE %]
541
                            [% ELSE %]
542
                                <span class="holdonitem">There is an item level hold on this item (priority = [% hold.priority | html %]).</span>
542
                                <span class="holdonitem clearfix">There is an item level hold on this item (priority = [% hold.priority | html %]).</span>
543
                            [% END %]
543
                            [% END %]
544
                        [% END %]
544
                        [% END %]
545
545
Lines 547-570 Link Here
547
                            [% SET recall = item.object.recall %]
547
                            [% SET recall = item.object.recall %]
548
                            [% IF recall %]
548
                            [% IF recall %]
549
                                [% IF recall.waiting_date %]
549
                                [% IF recall.waiting_date %]
550
                                    <span>Waiting at [% Branches.GetName( recall.pickup_library_id ) | html %] since [% recall.waiting_date | $KohaDates %]</span>
550
                                    <span class="recallat clearfix">Waiting at [% Branches.GetName( recall.pickup_library_id ) | html %] since [% recall.waiting_date | $KohaDates %]</span>
551
                                [% ELSE %]
551
                                [% ELSE %]
552
                                    [% 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
                                    [% 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 %]
553
                                    <span>recalled by [% patron_link| $raw %] on [% recall.created_date | $KohaDates %]</span>
553
                                    <span class="recallby clearfix">recalled by [% patron_link| $raw %] on [% recall.created_date | $KohaDates %]</span>
554
                                [% END %]
554
                                [% END %]
555
                            [% END %]
555
                            [% END %]
556
                        [% END %]
556
                        [% END %]
557
557
558
                        [% UNLESS ( item.notforloan || item.itemtype.notforloan || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfer || hold || ( Koha.Preference('UseRecalls') && recall ) ) %]
558
                        [% UNLESS ( item.notforloan || item.itemtype.notforloan || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfer || hold || ( Koha.Preference('UseRecalls') && recall ) ) %]
559
                            <span>Available</span>
559
                            <span class="clearfix">Available</span>
560
                        [% END %]
560
                        [% END %]
561
561
562
                        [% IF ( item.restricted ) %]
562
                        [% IF ( item.restricted ) %]
563
                            <span class="restricted">([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.restricted', authorised_value => item.restricted ) | html %])</span>
563
                            <span class="restricted clearfix">([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.restricted', authorised_value => item.restricted ) | html %])</span>
564
                        [% END %]
564
                        [% END %]
565
565
566
                        [% IF ( item.bundle_host ) %]
566
                        [% IF ( item.bundle_host ) %]
567
                            <span class="bundled">In bundle: [% INCLUDE 'biblio-title.inc' biblio = item.bundle_host.biblio link = 1 %]</span>
567
                            <span class="bundled clearfix">In bundle: [% INCLUDE 'biblio-title.inc' biblio = item.bundle_host.biblio link = 1 %]</span>
568
                        [% END %]
568
                        [% END %]
569
569
570
                    </td>
570
                    </td>
571
- 

Return to bug 35707