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