Lines 604-696
Link Here
|
604 |
ILL request log |
604 |
ILL request log |
605 |
</a> |
605 |
</a> |
606 |
</div> |
606 |
</div> |
607 |
<div class="ill-view-panel panel panel-default"> |
|
|
608 |
<div class="panel-heading"> |
609 |
<h3>Request details</h3> |
610 |
</div> |
611 |
<div class="panel-body"> |
612 |
<h4>Details from library</h4> |
613 |
<div class="rows"> |
614 |
<ol> |
615 |
<li class="orderid"> |
616 |
<span class="label orderid">Order ID:</span> |
617 |
[% IF request.orderid %][% request.orderid | html %][% ELSE %]<span>N/A</span>[% END %] |
618 |
</li> |
619 |
<li class="borrowernumber"> |
620 |
<span class="label borrowernumber">Patron:</span> |
621 |
[% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %] |
622 |
<a href="[% borrowerlink | url %]" title="View borrower details"> |
623 |
[% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" | html %] |
624 |
</a> |
625 |
</li> |
626 |
|
607 |
|
627 |
<li class="biblio_id"> |
608 |
<div class="panel-group" id="ill_request_panel" role="tablist" aria-multiselectable="true"> |
628 |
<span class="label biblio_id">Bibliographic record ID:</span> |
609 |
<div class="ill-view-panel panel panel-default"> |
629 |
[% IF request.biblio_id %] |
610 |
<div class="panel-heading" role="tab" id="ill_request_panel_heading"> |
630 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% request.biblio_id | uri %]">[% request.biblio_id | html %]</a> |
611 |
<h2 class="panel-title"> |
631 |
[% ELSE %] |
612 |
<a role="button" data-toggle="collapse" href="#ill_request_panel_details" aria-expanded="true" aria-controls="ill_request_panel_details"> |
632 |
<span>N/A</span> |
613 |
Request details |
633 |
[% END %] |
614 |
</a> |
634 |
</li> |
615 |
</h2> |
635 |
<li class="branchcode"> |
616 |
</div> <!-- /.panel-heading --> |
636 |
<span class="label branchcode">Library:</span> |
617 |
<div id="ill_request_panel_details" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="ill_comment_panel_heading"> |
637 |
[% Branches.GetName(request.branchcode) | html %] |
618 |
<div class="panel-body"> |
638 |
</li> |
619 |
<h4>Details from library</h4> |
639 |
<li class="status"> |
620 |
<div class="rows"> |
640 |
<span class="label status">Status:</span> |
621 |
<ol> |
641 |
[% IF request.statusalias %] |
622 |
<li class="orderid"> |
642 |
[% request.statusalias.lib | html %] |
623 |
<span class="label orderid">Order ID:</span> |
643 |
[% ELSE %] |
624 |
[% IF request.orderid %][% request.orderid | html %][% ELSE %]<span>N/A</span>[% END %] |
644 |
[% request.capabilities.$req_status.name | html%] |
625 |
</li> |
645 |
[% IF request.requested_partners.length > 0 %] |
626 |
<li class="borrowernumber"> |
646 |
([% request.requested_partners | html %]) |
627 |
<span class="label borrowernumber">Patron:</span> |
|
|
628 |
[% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %] |
629 |
<a href="[% borrowerlink | url %]" title="View borrower details"> |
630 |
[% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" | html %] |
631 |
</a> |
632 |
</li> |
633 |
|
634 |
<li class="biblio_id"> |
635 |
<span class="label biblio_id">Bibliographic record ID:</span> |
636 |
[% IF request.biblio_id %] |
637 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% request.biblio_id | uri %]">[% request.biblio_id | html %]</a> |
638 |
[% ELSE %] |
639 |
<span>N/A</span> |
640 |
[% END %] |
641 |
</li> |
642 |
<li class="branchcode"> |
643 |
<span class="label branchcode">Library:</span> |
644 |
[% Branches.GetName(request.branchcode) | html %] |
645 |
</li> |
646 |
<li class="status"> |
647 |
<span class="label status">Status:</span> |
648 |
[% IF request.statusalias %] |
649 |
[% request.statusalias.lib | html %] |
650 |
[% ELSE %] |
651 |
[% request.capabilities.$req_status.name | html%] |
652 |
[% IF request.requested_partners.length > 0 %] |
653 |
([% request.requested_partners | html %]) |
654 |
[% END %] |
655 |
[% END %] |
656 |
</li> |
657 |
<li class="updated"> |
658 |
<span class="label updated">Last updated:</span> |
659 |
[% request.updated | $KohaDates with_hours => 1 %] |
660 |
</li> |
661 |
<li class="medium"> |
662 |
<span class="label medium">Request type:</span> |
663 |
[% type = request.get_type %] |
664 |
[% IF type %][% type | html %][% ELSE %]<span>N/A</span>[% END %] |
665 |
</li> |
666 |
<li class="cost"> |
667 |
<span class="label cost">Cost:</span> |
668 |
[% IF request.cost %][% request.cost | $Price %][% ELSE %]<span>N/A</span>[% END %] |
669 |
</li> |
670 |
<li class="price_paid"> |
671 |
<span class="label price_paid">Price paid:</span> |
672 |
[% IF request.price_paid %][% request.price_paid | $Price %][% ELSE %]<span>N/A</span>[% END %] |
673 |
</li> |
674 |
<li class="req_id"> |
675 |
<span class="label req_id">Request number:</span> |
676 |
[% request.id_prefix _ request.illrequest_id | html %] |
677 |
</li> |
678 |
<li class="notesstaff"> |
679 |
<span class="label notes_staff">Staff notes:</span> |
680 |
<p>[% request.notesstaff | html %]</p> |
681 |
</li> |
682 |
<li class="notesopac"> |
683 |
<span class="label notes_opac">Notes:</span> |
684 |
<p>[% request.notesopac | html %]</p> |
685 |
</li> |
686 |
</ol> |
687 |
</div> |
688 |
<div class="rows"> |
689 |
<h4>Details from supplier ([% request.backend | html %])</h4> |
690 |
<ol> |
691 |
[% FOREACH meta IN request.metadata %] |
692 |
<li class="requestmeta-[% meta.key.replace('\s','_') | html %]"> |
693 |
<span class="label">[% meta.key | html %]:</span> |
694 |
[% meta.value | html %] |
695 |
</li> |
647 |
[% END %] |
696 |
[% END %] |
648 |
[% END %] |
697 |
</ol> |
649 |
</li> |
698 |
</div> |
650 |
<li class="updated"> |
699 |
</div> |
651 |
<span class="label updated">Last updated:</span> |
700 |
</div> <!-- /.panel-collapse --> |
652 |
[% request.updated | $KohaDates with_hours => 1 %] |
701 |
</div> <!-- /.panel.panel-default --> |
653 |
</li> |
702 |
|
654 |
<li class="medium"> |
703 |
<div class="ill-view-panel panel panel-default"> |
655 |
<span class="label medium">Request type:</span> |
704 |
<div class="panel-heading" role="tab" id="ill_comment_panel_heading"> |
656 |
[% type = request.get_type %] |
705 |
<h2 class="panel-title"> |
657 |
[% IF type %][% type | html %][% ELSE %]<span>N/A</span>[% END %] |
706 |
<a role="button" class="collapsed" data-toggle="collapse" href="#ill_comment_panel_details" aria-controls="ill_comment_panel_details"> |
658 |
</li> |
707 |
[% request.illcomments.count | html %] comments |
659 |
<li class="cost"> |
708 |
</a> |
660 |
<span class="label cost">Cost:</span> |
709 |
</h2> |
661 |
[% IF request.cost %][% request.cost | $Price %][% ELSE %]<span>N/A</span>[% END %] |
|
|
662 |
</li> |
663 |
<li class="price_paid"> |
664 |
<span class="label price_paid">Price paid:</span> |
665 |
[% IF request.price_paid %][% request.price_paid | $Price %][% ELSE %]<span>N/A</span>[% END %] |
666 |
</li> |
667 |
<li class="req_id"> |
668 |
<span class="label req_id">Request number:</span> |
669 |
[% request.id_prefix _ request.illrequest_id | html %] |
670 |
</li> |
671 |
<li class="notesstaff"> |
672 |
<span class="label notes_staff">Staff notes:</span> |
673 |
<p>[% request.notesstaff | html %]</p> |
674 |
</li> |
675 |
<li class="notesopac"> |
676 |
<span class="label notes_opac">Notes:</span> |
677 |
<p>[% request.notesopac | html %]</p> |
678 |
</li> |
679 |
</ol> |
680 |
</div> |
710 |
</div> |
681 |
<div class="rows"> |
711 |
<div id="ill_comment_panel_details" class="panel-collapse collapse" role="tabpanel" aria-labelledby="ill_comment_panel_heading"> |
682 |
<h4>Details from supplier ([% request.backend | html %])</h4> |
712 |
<div class="panel-body"> |
683 |
<ol> |
713 |
[% IF request.illcomments.count && request.illcomments.count > 0 %] |
684 |
[% FOREACH meta IN request.metadata %] |
714 |
[% FOREACH comment IN request.illcomments %] |
685 |
<li class="requestmeta-[% meta.key.replace('\s','_') | html %]"> |
715 |
<div class="rows comment_[% comment.patron.categorycode | html %]"> |
686 |
<span class="label">[% meta.key | html %]:</span> |
716 |
<h5>Comment by: |
687 |
[% meta.value | html %] |
717 |
<a href="[% borrowerlink | url %]" title="View borrower details"> |
688 |
</li> |
718 |
[% comment.patron.firstname _ " " _ comment.patron.surname _ " [" _ comment.patron.cardnumber _ "]" | html %]</a> |
|
|
719 |
[% comment.timestamp | $KohaDates with_hours => 1 %]</h5> |
720 |
<p>[% comment.comment | html %]</p> |
721 |
</div> |
722 |
[% END %] |
689 |
[% END %] |
723 |
[% END %] |
690 |
</ol> |
724 |
<div class="rows"> |
691 |
</div> |
725 |
<h3><a id="toggle_addcomment" class="btn btn-default" href="#">Add comment</a></h3> |
692 |
</div> |
726 |
<div id="addcomment" class="content_hidden"> |
693 |
</div> |
727 |
<form class="validated" method="post" action="/cgi-bin/koha/ill/ill-requests.pl"> |
|
|
728 |
<input type="hidden" value="save_comment" name="method"> |
729 |
<input type="hidden" value="[% csrf_token | html %]" name="csrf_token"> |
730 |
<input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id"> |
731 |
<fieldset class="rows"> |
732 |
<ol> |
733 |
<li> |
734 |
<label class="required" for="comment">Comment: </label> |
735 |
<textarea class="required" required="required" cols="80" rows="10" id="comment" name="comment"></textarea> |
736 |
<span class="required">Required</span> |
737 |
</li> |
738 |
</ol> |
739 |
</fieldset> |
740 |
<fieldset class="action"> |
741 |
<input type="submit" class="btn btn-primary" value="Submit" /> |
742 |
</fieldset> |
743 |
</form> |
744 |
</div> <!-- /#addcomment --> |
745 |
</div> <!-- /.rows --> |
746 |
</div> <!-- /.panel-body --> |
747 |
</div> <!-- /.panel.panel-collapse #ill_request_panel_details --> |
748 |
</div> <!-- /.panel.panel-default --> |
749 |
</div> <!-- /#ill_request_panel --> |
694 |
|
750 |
|
695 |
<div id="dataPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true"> |
751 |
<div id="dataPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true"> |
696 |
<div class="modal-dialog"> |
752 |
<div class="modal-dialog"> |
Lines 740-786
Link Here
|
740 |
</div> |
796 |
</div> |
741 |
</div> |
797 |
</div> |
742 |
|
798 |
|
743 |
<div class="ill-view-panel panel panel-default"> |
|
|
744 |
<div class="panel-heading"> |
745 |
<h3>[% request.illcomments.count | html %] comments</h3> |
746 |
</div> |
747 |
<div class="panel-body"> |
748 |
[% IF request.illcomments.count && request.illcomments.count > 0 %] |
749 |
[% FOREACH comment IN request.illcomments %] |
750 |
<div class="rows comment_[% comment.patron.categorycode | html %]"> |
751 |
<h5>Comment by: |
752 |
<a href="[% borrowerlink | url %]" title="View borrower details"> |
753 |
[% comment.patron.firstname _ " " _ comment.patron.surname _ " [" _ comment.patron.cardnumber _ "]" | html %]</a> |
754 |
[% comment.timestamp | $KohaDates with_hours => 1 %]</h5> |
755 |
<p>[% comment.comment | html %]</p> |
756 |
</div> |
757 |
[% END %] |
758 |
[% END %] |
759 |
<div class="rows"> |
760 |
<h3><a id="toggle_addcomment" href="#">Add comment</a></h3> |
761 |
<div id="addcomment" class="content_hidden"> |
762 |
<form class="validated" method="post" action="/cgi-bin/koha/ill/ill-requests.pl"> |
763 |
<input type="hidden" value="save_comment" name="method"> |
764 |
<input type="hidden" value="[% csrf_token | html %]" name="csrf_token"> |
765 |
<input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id"> |
766 |
<fieldset class="rows"> |
767 |
<ol> |
768 |
<li> |
769 |
<label class="required" for="comment">Comment: </label> |
770 |
<textarea class="required" required="required" cols="80" rows="10" id="comment" name="comment"></textarea> |
771 |
<span class="required">Required</span> |
772 |
</li> |
773 |
</ol> |
774 |
</fieldset> |
775 |
<fieldset class="action"> |
776 |
<input type="submit" class="btn btn-primary" value="Submit" /> |
777 |
</fieldset> |
778 |
</form> |
779 |
</div> |
780 |
</div> |
781 |
</div> |
782 |
</div> |
783 |
|
784 |
[% ELSIF query_type == 'illlist' %] |
799 |
[% ELSIF query_type == 'illlist' %] |
785 |
<!-- illlist --> |
800 |
<!-- illlist --> |
786 |
<h1>View ILL requests</h1> |
801 |
<h1>View ILL requests</h1> |
787 |
- |
|
|