|
Lines 672-678
Link Here
|
| 672 |
No name |
672 |
No name |
| 673 |
[% END %] |
673 |
[% END %] |
| 674 |
[% END %] |
674 |
[% END %] |
| 675 |
([% suggestion.suggestions_loop.size | html %])</a></li> |
675 |
([% suggestion.suggestions.count| html %])</a></li> |
| 676 |
|
676 |
|
| 677 |
[% END # /FOREACH suggestion %] |
677 |
[% END # /FOREACH suggestion %] |
| 678 |
</ul> <!-- /.ui-tabs-nav --> |
678 |
</ul> <!-- /.ui-tabs-nav --> |
|
Lines 682-688
Link Here
|
| 682 |
<div id="[% suggestion.suggestiontype | html %]"> |
682 |
<div id="[% suggestion.suggestiontype | html %]"> |
| 683 |
<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype| uri %]"> |
683 |
<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype| uri %]"> |
| 684 |
|
684 |
|
| 685 |
[% IF ( suggestion.suggestions_loop ) %] |
685 |
[% IF suggestion.suggestions.count %] |
| 686 |
<p> |
686 |
<p> |
| 687 |
<a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a> |
687 |
<a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a> |
| 688 |
</p> |
688 |
</p> |
|
Lines 705-814
Link Here
|
| 705 |
</tr> |
705 |
</tr> |
| 706 |
</thead> |
706 |
</thead> |
| 707 |
<tbody> |
707 |
<tbody> |
| 708 |
[% FOREACH suggestions_loo IN suggestion.suggestions_loop %] |
708 |
[% FOREACH s IN suggestion.suggestions %] |
| 709 |
<tr> |
709 |
<tr> |
| 710 |
<td> |
710 |
<td> |
| 711 |
<input type="checkbox" name="suggestionid" value="[% suggestions_loo.suggestionid | html %]" /> |
711 |
<input type="checkbox" name="suggestionid" value="[% s.suggestionid | html %]" /> |
| 712 |
</td> |
712 |
</td> |
| 713 |
<td> |
713 |
<td> |
| 714 |
<a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | uri %]&op=show" title="suggestion" > |
714 |
<a href="suggestion.pl?suggestionid=[% s.suggestionid | uri %]&op=show" title="suggestion" > |
| 715 |
[% suggestions_loo.title | html %][% IF ( suggestions_loo.author ) %], by [% suggestions_loo.author | html %][% END %] |
715 |
[% s.title | html %][% IF ( s.author ) %], by [% s.author | html %][% END %] |
| 716 |
</a> |
716 |
</a> |
| 717 |
<br /> |
717 |
<br /> |
| 718 |
[% IF ( suggestions_loo.copyrightdate ) %] |
718 |
[% IF ( s.copyrightdate ) %] |
| 719 |
© <span class="suggestion_copyrightdate">[% suggestions_loo.copyrightdate | html %]</span> |
719 |
© <span class="suggestion_copyrightdate">[% s.copyrightdate | html %]</span> |
| 720 |
[% END %] |
720 |
[% END %] |
| 721 |
[% IF ( suggestions_loo.volumedesc ) %] |
721 |
[% IF ( s.volumedesc ) %] |
| 722 |
; <span class="suggestion_volume">Volume:<em>[% suggestions_loo.volumedesc | html %]</em></span> |
722 |
; <span class="suggestion_volume">Volume:<em>[% s.volumedesc | html %]</em></span> |
| 723 |
[% END %] |
723 |
[% END %] |
| 724 |
[% IF ( suggestions_loo.isbn ) %] |
724 |
[% IF ( s.isbn ) %] |
| 725 |
; <span class="suggestion_isbn">ISBN: <em>[% suggestions_loo.isbn | html %]</em></span> |
725 |
; <span class="suggestion_isbn">ISBN: <em>[% s.isbn | html %]</em></span> |
| 726 |
[% END %] |
726 |
[% END %] |
| 727 |
[% IF ( suggestions_loo.publishercode ) %] |
727 |
[% IF ( s.publishercode ) %] |
| 728 |
; <span class="suggestion_publishercode">Published by [% suggestions_loo.publishercode | html %]</span> |
728 |
; <span class="suggestion_publishercode">Published by [% s.publishercode | html %]</span> |
| 729 |
[% END %] |
729 |
[% END %] |
| 730 |
[% IF ( suggestions_loo.publicationyear ) %] |
730 |
[% IF ( s.publicationyear ) %] |
| 731 |
in <span class="suggestion_publicationyear"><em>[% suggestions_loo.publicationyear | html %]</em></span> |
731 |
in <span class="suggestion_publicationyear"><em>[% s.publicationyear | html %]</em></span> |
| 732 |
[% END %] |
732 |
[% END %] |
| 733 |
[% IF ( suggestions_loo.place ) %] |
733 |
[% IF ( s.place ) %] |
| 734 |
in <span class="suggestion_place"><em>[% suggestions_loo.place | html %]</em></span> |
734 |
in <span class="suggestion_place"><em>[% s.place | html %]</em></span> |
| 735 |
[% END %] |
735 |
[% END %] |
| 736 |
[% IF ( suggestions_loo.collectiontitle ) %] |
736 |
[% IF ( s.collectiontitle ) %] |
| 737 |
; <span class="suggestion_collectiontitle">[% suggestions_loo.collectiontitle | html %]</span> |
737 |
; <span class="suggestion_collectiontitle">[% s.collectiontitle | html %]</span> |
| 738 |
[% END %] |
738 |
[% END %] |
| 739 |
[% IF ( suggestions_loo.itemtype ) %] |
739 |
[% IF ( s.itemtype ) %] |
| 740 |
; <span class="suggestion_itype">[% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestions_loo.itemtype, 0 ) | html %]</span> |
740 |
; <span class="suggestion_itype">[% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', s.itemtype, 0 ) | html %]</span> |
| 741 |
[% END %] |
741 |
[% END %] |
| 742 |
<br /> |
742 |
<br /> |
| 743 |
[% IF ( suggestions_loo.note ) %] |
743 |
[% IF ( s.note ) %] |
| 744 |
<div class="suggestion_note"><i class="fa fa-comment"></i> [% suggestions_loo.note | html %]</div> |
744 |
<div class="suggestion_note"><i class="fa fa-comment"></i> [% s.note | html %]</div> |
| 745 |
[% END %] |
745 |
[% END %] |
| 746 |
[% IF suggestions_loo.archived %] |
746 |
[% IF s.archived %] |
| 747 |
<br /><i class="fa fa-archive"></i> Archived |
747 |
<br /><i class="fa fa-archive"></i> Archived |
| 748 |
[% END %] |
748 |
[% END %] |
| 749 |
</td> |
749 |
</td> |
| 750 |
<td> |
750 |
<td> |
| 751 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestions_loo.suggestedby | uri %]">[% suggestions_loo.surnamesuggestedby | html %][% IF ( suggestions_loo.firstnamesuggestedby ) %], [% suggestions_loo.firstnamesuggestedby | html %][% END %] [% IF (suggestions_loo.cardnumbersuggestedby ) %]([% suggestions_loo.cardnumbersuggestedby | html %])[% END %]</a> |
751 |
[% SET suggester = s.suggester %] |
|
|
752 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggester.borrowernumber | uri %]">[% suggester.surname | html %][% IF suggester.firstname %], [% suggester.firstname | html %][% END %] [% IF suggester.cardnumber %]([% suggester.cardnumber | html %])[% END %]</a> |
| 752 |
</td> |
753 |
</td> |
| 753 |
<td data-order="[% suggestions_loo.suggesteddate | html %]"> |
754 |
<td data-order="[% s.suggesteddate | html %]"> |
| 754 |
[% IF ( suggestions_loo.suggesteddate ) %][% suggestions_loo.suggesteddate | $KohaDates %][% END %] |
755 |
[% IF ( s.suggesteddate ) %][% s.suggesteddate | $KohaDates %][% END %] |
| 755 |
</td> |
756 |
</td> |
| 756 |
<td> |
757 |
<td> |
| 757 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestions_loo.managedby | uri %]">[% suggestions_loo.surnamemanagedby | html %][% IF ( suggestions_loo.firstnamemanagedby ) %], [% suggestions_loo.firstnamemanagedby | html %][% END %]</a> |
758 |
[% SET manager = s.manager %] |
|
|
759 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% manager.borrowernumber | uri %]">[% manager.surname | html %][% IF manager.firstname %], [% manager.firstname | html %][% END %]</a> |
| 758 |
</td> |
760 |
</td> |
| 759 |
<td data-order="[% suggestions_loo.manageddate | html %]"> |
761 |
<td data-order="[% s.manageddate | html %]"> |
| 760 |
[% IF ( suggestions_loo.manageddate ) %][% suggestions_loo.manageddate | $KohaDates %][% END %] |
762 |
[% IF ( s.manageddate ) %][% s.manageddate | $KohaDates %][% END %] |
| 761 |
</td> |
763 |
</td> |
| 762 |
<td> |
764 |
<td> |
| 763 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestions_loo.lastmodificationby | uri %]">[% suggestions_loo.surnamelastmodificationby | html %][% IF ( suggestions_loo.firstnamelastmodificationby ) %], [% suggestions_loo.firstnamelastmodificationby | html %][% END %]</a> |
765 |
[% SET last_modifier = s.last_modifier %] |
|
|
766 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% last_modifier.borrowernumber | uri %]">[% last_modifier.surname | html %][% IF last_modifier.firstname %], [% last_modifier.firstname | html %][% END %]</a> |
| 764 |
</td> |
767 |
</td> |
| 765 |
<td data-order="[% suggestions_loo.lastmodificationdate | html %]"> |
768 |
<td data-order="[% s.lastmodificationdate | html %]"> |
| 766 |
[% IF ( suggestions_loo.lastmodificationdate ) %][% suggestions_loo.lastmodificationdate | $KohaDates %][% END %] |
769 |
[% IF ( s.lastmodificationdate ) %][% s.lastmodificationdate | $KohaDates %][% END %] |
| 767 |
</td> |
770 |
</td> |
| 768 |
<td> |
771 |
<td> |
| 769 |
[% Branches.GetName( suggestions_loo.branchcode ) | html %] |
772 |
[% Branches.GetName( s.branchcode ) | html %] |
| 770 |
</td> |
773 |
</td> |
| 771 |
<td> |
774 |
<td> |
| 772 |
[% suggestions_loo.budget_name | html %] |
775 |
[% s.fund.budget_name | html %] |
| 773 |
</td> |
776 |
</td> |
| 774 |
<td> |
777 |
<td> |
| 775 |
[% IF ( suggestions_loo.ASKED ) %] |
778 |
[% IF s.STATUS == 'ASKED' %] |
| 776 |
Pending |
779 |
Pending |
| 777 |
[% ELSIF ( suggestions_loo.ACCEPTED ) %] |
780 |
[% ELSIF s.STATUS == 'ACCEPTED' %] |
| 778 |
Accepted |
781 |
Accepted |
| 779 |
[% ELSIF ( suggestions_loo.ORDERED ) %] |
782 |
[% ELSIF s.STATUS == 'ORDERED' %] |
| 780 |
Ordered |
783 |
Ordered |
| 781 |
[% ELSIF ( suggestions_loo.REJECTED ) %] |
784 |
[% ELSIF s.STATUS == 'REJECTED' %] |
| 782 |
Rejected |
785 |
Rejected |
| 783 |
[% ELSIF ( suggestions_loo.CHECKED ) %] |
786 |
[% ELSIF s.STATUS == 'CHECKED' %] |
| 784 |
Checked |
787 |
Checked |
| 785 |
[% ELSIF ( suggestions_loo.AVAILABLE ) %] |
788 |
[% ELSIF s.STATUS == 'AVAILABLE' %] |
| 786 |
Available |
789 |
Available |
| 787 |
[% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) %] |
790 |
[% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', s.STATUS ) %] |
| 788 |
[% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) | html %] |
791 |
[% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', s.STATUS ) | html %] |
| 789 |
[% ELSE %] |
792 |
[% ELSE %] |
| 790 |
Status unknown |
793 |
Status unknown |
| 791 |
[% END %] |
794 |
[% END %] |
| 792 |
|
795 |
|
| 793 |
[% IF ( suggestions_loo.reason ) %] |
796 |
[% IF ( s.reason ) %] |
| 794 |
<br />([% suggestions_loo.reason | html %]) |
797 |
<br />([% s.reason | html %]) |
| 795 |
[% END %] |
798 |
[% END %] |
| 796 |
</td> |
799 |
</td> |
| 797 |
<td class="actions"> |
800 |
<td class="actions"> |
| 798 |
<div class="btn-group dropup"> |
801 |
<div class="btn-group dropup"> |
| 799 |
<a class="btn btn-default btn-xs" role="button" href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | html %]&op=edit"><i class="fa fa-pencil"></i> Edit</a><a class="btn btn-default btn-xs dropdown-toggle" id="more_actions_[% suggestions_loo.suggestionid | html %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a> |
802 |
<a class="btn btn-default btn-xs" role="button" href="suggestion.pl?suggestionid=[% s.suggestionid | html %]&op=edit"><i class="fa fa-pencil"></i> Edit</a><a class="btn btn-default btn-xs dropdown-toggle" id="more_actions_[% s.suggestionid | html %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a> |
| 800 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% suggestions_loo.suggestionid | html %]"> |
803 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% s.suggestionid | html %]"> |
| 801 |
<li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li> |
804 |
<li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li> |
| 802 |
[% UNLESS suggestions_loo.archived %] |
805 |
[% UNLESS s.archived %] |
| 803 |
<li><a class="archivesuggestion" href="suggestion.pl?op=archive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li> |
806 |
<li><a class="archivesuggestion" href="suggestion.pl?op=archive&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li> |
| 804 |
[% ELSE %] |
807 |
[% ELSE %] |
| 805 |
<li><a class="unarchivesuggestion" href="suggestion.pl?op=unarchive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Unarchive</a></li> |
808 |
<li><a class="unarchivesuggestion" href="suggestion.pl?op=unarchive&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-archive"></i> Unarchive</a></li> |
| 806 |
[% END %] |
809 |
[% END %] |
| 807 |
</ul> |
810 |
</ul> |
| 808 |
</div> |
811 |
</div> |
| 809 |
</td> |
812 |
</td> |
| 810 |
</tr> |
813 |
</tr> |
| 811 |
[% END # /FOREACH suggestions_loo %] |
814 |
[% END # /FOREACH s %] |
| 812 |
</tbody> |
815 |
</tbody> |
| 813 |
</table> <!-- /#table_[% loop.count | html %] --> |
816 |
</table> <!-- /#table_[% loop.count | html %] --> |
| 814 |
|
817 |
|
|
Lines 1268-1274
Link Here
|
| 1268 |
|
1271 |
|
| 1269 |
columns_settings = [% TablesSettings.GetColumns( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %] |
1272 |
columns_settings = [% TablesSettings.GetColumns( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %] |
| 1270 |
[% FOREACH suggestion IN suggestions %] |
1273 |
[% FOREACH suggestion IN suggestions %] |
| 1271 |
[% IF ( suggestion.suggestions_loop ) %] |
1274 |
[% IF suggestion.suggestions.count %] |
| 1272 |
KohaTable("table_[% loop.count| html %]", { |
1275 |
KohaTable("table_[% loop.count| html %]", { |
| 1273 |
"sorting": [[ 3, "asc" ]], |
1276 |
"sorting": [[ 3, "asc" ]], |
| 1274 |
"autoWidth": false, |
1277 |
"autoWidth": false, |