Lines 707-713
Link Here
|
707 |
No name |
707 |
No name |
708 |
[% END %] |
708 |
[% END %] |
709 |
[% END %] |
709 |
[% END %] |
710 |
([% suggestion.suggestions_loop.size | html %])</a></li> |
710 |
([% suggestion.suggestions.count| html %])</a></li> |
711 |
|
711 |
|
712 |
[% END # /FOREACH suggestion %] |
712 |
[% END # /FOREACH suggestion %] |
713 |
</ul> <!-- /.ui-tabs-nav --> |
713 |
</ul> <!-- /.ui-tabs-nav --> |
Lines 717-723
Link Here
|
717 |
<div id="[% suggestion.suggestiontype | html %]"> |
717 |
<div id="[% suggestion.suggestiontype | html %]"> |
718 |
<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype| uri %]"> |
718 |
<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype| uri %]"> |
719 |
|
719 |
|
720 |
[% IF ( suggestion.suggestions_loop ) %] |
720 |
[% IF suggestion.suggestions.count %] |
721 |
<p> |
721 |
<p> |
722 |
<a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a> |
722 |
<a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a> |
723 |
</p> |
723 |
</p> |
Lines 741-853
Link Here
|
741 |
</tr> |
741 |
</tr> |
742 |
</thead> |
742 |
</thead> |
743 |
<tbody> |
743 |
<tbody> |
744 |
[% FOREACH suggestions_loo IN suggestion.suggestions_loop %] |
744 |
[% FOREACH s IN suggestion.suggestions %] |
745 |
<tr> |
745 |
<tr> |
746 |
<td> |
746 |
<td> |
747 |
<input type="checkbox" name="suggestionid" value="[% suggestions_loo.suggestionid | html %]" /> |
747 |
<input type="checkbox" name="suggestionid" value="[% s.suggestionid | html %]" /> |
748 |
</td> |
748 |
</td> |
749 |
<td> |
749 |
<td> |
750 |
<a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | uri %]&op=show" title="suggestion" > |
750 |
<a href="suggestion.pl?suggestionid=[% s.suggestionid | uri %]&op=show" title="suggestion" > |
751 |
[% suggestions_loo.title | html %][% IF ( suggestions_loo.author ) %], by [% suggestions_loo.author | html %][% END %] |
751 |
[% s.title | html %][% IF ( s.author ) %], by [% s.author | html %][% END %] |
752 |
</a> |
752 |
</a> |
753 |
<br /> |
753 |
<br /> |
754 |
[% IF ( suggestions_loo.copyrightdate ) %] |
754 |
[% IF ( s.copyrightdate ) %] |
755 |
© <span class="suggestion_copyrightdate">[% suggestions_loo.copyrightdate | html %]</span> |
755 |
© <span class="suggestion_copyrightdate">[% s.copyrightdate | html %]</span> |
756 |
[% END %] |
756 |
[% END %] |
757 |
[% IF ( suggestions_loo.volumedesc ) %] |
757 |
[% IF ( s.volumedesc ) %] |
758 |
; <span class="suggestion_volume">Volume:<em>[% suggestions_loo.volumedesc | html %]</em></span> |
758 |
; <span class="suggestion_volume">Volume:<em>[% s.volumedesc | html %]</em></span> |
759 |
[% END %] |
759 |
[% END %] |
760 |
[% IF ( suggestions_loo.isbn ) %] |
760 |
[% IF ( s.isbn ) %] |
761 |
; <span class="suggestion_isbn">ISBN: <em>[% suggestions_loo.isbn | html %]</em></span> |
761 |
; <span class="suggestion_isbn">ISBN: <em>[% s.isbn | html %]</em></span> |
762 |
[% END %] |
762 |
[% END %] |
763 |
[% IF ( suggestions_loo.publishercode ) %] |
763 |
[% IF ( s.publishercode ) %] |
764 |
; <span class="suggestion_publishercode">Published by [% suggestions_loo.publishercode | html %]</span> |
764 |
; <span class="suggestion_publishercode">Published by [% s.publishercode | html %]</span> |
765 |
[% END %] |
765 |
[% END %] |
766 |
[% IF ( suggestions_loo.publicationyear ) %] |
766 |
[% IF ( s.publicationyear ) %] |
767 |
in <span class="suggestion_publicationyear"><em>[% suggestions_loo.publicationyear | html %]</em></span> |
767 |
in <span class="suggestion_publicationyear"><em>[% s.publicationyear | html %]</em></span> |
768 |
[% END %] |
768 |
[% END %] |
769 |
[% IF ( suggestions_loo.place ) %] |
769 |
[% IF ( s.place ) %] |
770 |
in <span class="suggestion_place"><em>[% suggestions_loo.place | html %]</em></span> |
770 |
in <span class="suggestion_place"><em>[% s.place | html %]</em></span> |
771 |
[% END %] |
771 |
[% END %] |
772 |
[% IF ( suggestions_loo.collectiontitle ) %] |
772 |
[% IF ( s.collectiontitle ) %] |
773 |
; <span class="suggestion_collectiontitle">[% suggestions_loo.collectiontitle | html %]</span> |
773 |
; <span class="suggestion_collectiontitle">[% s.collectiontitle | html %]</span> |
774 |
[% END %] |
774 |
[% END %] |
775 |
[% IF ( suggestions_loo.itemtype ) %] |
775 |
[% IF ( s.itemtype ) %] |
776 |
; <span class="suggestion_itype">[% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestions_loo.itemtype, 0 ) | html %]</span> |
776 |
; <span class="suggestion_itype">[% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', s.itemtype, 0 ) | html %]</span> |
777 |
[% END %] |
777 |
[% END %] |
778 |
<br /> |
778 |
<br /> |
779 |
[% IF ( suggestions_loo.note ) %] |
779 |
[% IF ( s.note ) %] |
780 |
<div class="suggestion_note"><i class="fa fa-comment"></i> [% suggestions_loo.note | html %]</div> |
780 |
<div class="suggestion_note"><i class="fa fa-comment"></i> [% s.note | html %]</div> |
781 |
[% END %] |
781 |
[% END %] |
782 |
[% IF suggestions_loo.archived %] |
782 |
[% IF s.archived %] |
783 |
<br /><i class="fa fa-archive"></i> Archived |
783 |
<br /><i class="fa fa-archive"></i> Archived |
784 |
[% END %] |
784 |
[% END %] |
785 |
</td> |
785 |
</td> |
786 |
<td> |
786 |
<td> |
787 |
<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> |
787 |
[% SET suggester = s.suggester %] |
|
|
788 |
<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> |
788 |
</td> |
789 |
</td> |
789 |
<td data-order="[% suggestions_loo.suggesteddate | html %]"> |
790 |
<td data-order="[% s.suggesteddate | html %]"> |
790 |
[% IF ( suggestions_loo.suggesteddate ) %][% suggestions_loo.suggesteddate | $KohaDates %][% END %] |
791 |
[% IF ( s.suggesteddate ) %][% s.suggesteddate | $KohaDates %][% END %] |
791 |
</td> |
792 |
</td> |
792 |
<td> |
793 |
<td> |
793 |
<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> |
794 |
[% SET manager = s.manager %] |
|
|
795 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% manager.borrowernumber | uri %]">[% manager.surname | html %][% IF manager.firstname %], [% manager.firstname | html %][% END %]</a> |
794 |
</td> |
796 |
</td> |
795 |
<td data-order="[% suggestions_loo.manageddate | html %]"> |
797 |
<td data-order="[% s.manageddate | html %]"> |
796 |
[% IF ( suggestions_loo.manageddate ) %][% suggestions_loo.manageddate | $KohaDates %][% END %] |
798 |
[% IF ( s.manageddate ) %][% s.manageddate | $KohaDates %][% END %] |
797 |
</td> |
799 |
</td> |
798 |
<td> |
800 |
<td> |
799 |
<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> |
801 |
[% SET last_modifier = s.last_modifier %] |
|
|
802 |
<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> |
800 |
</td> |
803 |
</td> |
801 |
<td data-order="[% suggestions_loo.lastmodificationdate | html %]"> |
804 |
<td data-order="[% s.lastmodificationdate | html %]"> |
802 |
[% IF ( suggestions_loo.lastmodificationdate ) %][% suggestions_loo.lastmodificationdate | $KohaDates %][% END %] |
805 |
[% IF ( s.lastmodificationdate ) %][% s.lastmodificationdate | $KohaDates %][% END %] |
803 |
</td> |
806 |
</td> |
804 |
<td> |
807 |
<td> |
805 |
[% suggestions_loo.date | $KohaDates %] |
808 |
[% s.lastmodificationdate | $KohaDates %] |
806 |
</td> |
809 |
</td> |
807 |
<td> |
810 |
<td> |
808 |
[% Branches.GetName( suggestions_loo.branchcode ) | html %] |
811 |
[% Branches.GetName( s.branchcode ) | html %] |
809 |
</td> |
812 |
</td> |
810 |
<td> |
813 |
<td> |
811 |
[% suggestions_loo.budget_name | html %] |
814 |
[% s.fund.budget_name | html %] |
812 |
</td> |
815 |
</td> |
813 |
<td> |
816 |
<td> |
814 |
[% IF ( suggestions_loo.ASKED ) %] |
817 |
[% IF s.STATUS == 'ASKED' %] |
815 |
Pending |
818 |
Pending |
816 |
[% ELSIF ( suggestions_loo.ACCEPTED ) %] |
819 |
[% ELSIF s.STATUS == 'ACCEPTED' %] |
817 |
Accepted |
820 |
Accepted |
818 |
[% ELSIF ( suggestions_loo.ORDERED ) %] |
821 |
[% ELSIF s.STATUS == 'ORDERED' %] |
819 |
Ordered |
822 |
Ordered |
820 |
[% ELSIF ( suggestions_loo.REJECTED ) %] |
823 |
[% ELSIF s.STATUS == 'REJECTED' %] |
821 |
Rejected |
824 |
Rejected |
822 |
[% ELSIF ( suggestions_loo.CHECKED ) %] |
825 |
[% ELSIF s.STATUS == 'CHECKED' %] |
823 |
Checked |
826 |
Checked |
824 |
[% ELSIF ( suggestions_loo.AVAILABLE ) %] |
827 |
[% ELSIF s.STATUS == 'AVAILABLE' %] |
825 |
Available |
828 |
Available |
826 |
[% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) %] |
829 |
[% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', s.STATUS ) %] |
827 |
[% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) | html %] |
830 |
[% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', s.STATUS ) | html %] |
828 |
[% ELSE %] |
831 |
[% ELSE %] |
829 |
Status unknown |
832 |
Status unknown |
830 |
[% END %] |
833 |
[% END %] |
831 |
|
834 |
|
832 |
[% IF ( suggestions_loo.reason ) %] |
835 |
[% IF ( s.reason ) %] |
833 |
<br />([% suggestions_loo.reason | html %]) |
836 |
<br />([% s.reason | html %]) |
834 |
[% END %] |
837 |
[% END %] |
835 |
</td> |
838 |
</td> |
836 |
<td class="actions"> |
839 |
<td class="actions"> |
837 |
<div class="btn-group dropup"> |
840 |
<div class="btn-group dropup"> |
838 |
<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> |
841 |
<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> |
839 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% suggestions_loo.suggestionid | html %]"> |
842 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% s.suggestionid | html %]"> |
840 |
<li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li> |
843 |
<li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li> |
841 |
[% UNLESS suggestions_loo.archived %] |
844 |
[% UNLESS s.archived %] |
842 |
<li><a class="archivesuggestion" href="suggestion.pl?op=archive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li> |
845 |
<li><a class="archivesuggestion" href="suggestion.pl?op=archive&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li> |
843 |
[% ELSE %] |
846 |
[% ELSE %] |
844 |
<li><a class="unarchivesuggestion" href="suggestion.pl?op=unarchive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Unarchive</a></li> |
847 |
<li><a class="unarchivesuggestion" href="suggestion.pl?op=unarchive&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-archive"></i> Unarchive</a></li> |
845 |
[% END %] |
848 |
[% END %] |
846 |
</ul> |
849 |
</ul> |
847 |
</div> |
850 |
</div> |
848 |
</td> |
851 |
</td> |
849 |
</tr> |
852 |
</tr> |
850 |
[% END # /FOREACH suggestions_loo %] |
853 |
[% END # /FOREACH s %] |
851 |
</tbody> |
854 |
</tbody> |
852 |
</table> <!-- /#table_[% loop.count | html %] --> |
855 |
</table> <!-- /#table_[% loop.count | html %] --> |
853 |
|
856 |
|
Lines 1307-1313
Link Here
|
1307 |
|
1310 |
|
1308 |
columns_settings = [% TablesSettings.GetColumns( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %] |
1311 |
columns_settings = [% TablesSettings.GetColumns( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %] |
1309 |
[% FOREACH suggestion IN suggestions %] |
1312 |
[% FOREACH suggestion IN suggestions %] |
1310 |
[% IF ( suggestion.suggestions_loop ) %] |
1313 |
[% IF suggestion.suggestions.count %] |
1311 |
KohaTable("table_[% loop.count| html %]", { |
1314 |
KohaTable("table_[% loop.count| html %]", { |
1312 |
"sorting": [[ 3, "asc" ]], |
1315 |
"sorting": [[ 3, "asc" ]], |
1313 |
"autoWidth": false, |
1316 |
"autoWidth": false, |