Lines 707-725
Link Here
|
707 |
<span>No name</span> |
707 |
<span>No name</span> |
708 |
[% END %] |
708 |
[% END %] |
709 |
[% END %] |
709 |
[% END %] |
710 |
([% suggestion.suggestions_loop.size | html %]) |
710 |
([% suggestion.suggestions.size| html %]) |
711 |
</a> |
711 |
</a></li> |
712 |
</li> |
712 |
|
713 |
[% END # /FOREACH suggestion %] |
713 |
[% END # /FOREACH suggestion %] |
714 |
</ul> <!-- /.ui-tabs-nav --> |
714 |
</ul> <!-- /.ui-tabs-nav --> |
715 |
<div class="tab-content"> |
715 |
<div class="tab-content"> |
716 |
[% END # /UNLESS notabs %] |
716 |
[% END # /UNLESS notabs %] |
717 |
|
717 |
|
718 |
[% FOREACH suggestion IN suggestions %] |
718 |
[% FOREACH suggestion IN suggestions %] |
719 |
<div id="[% suggestion.suggestiontype | html %]" role="tabpanel" class="tab-pane"> |
719 |
<div id="[% suggestion.suggestiontype | html %]"> |
720 |
<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype| uri %]"> |
720 |
<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype| uri %]"> |
721 |
|
721 |
|
722 |
[% IF ( suggestion.suggestions_loop ) %] |
722 |
[% IF suggestion.suggestions.size %] |
723 |
<p> |
723 |
<p> |
724 |
<a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a> |
724 |
<a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a> |
725 |
</p> |
725 |
</p> |
Lines 744-857
Link Here
|
744 |
</tr> |
744 |
</tr> |
745 |
</thead> |
745 |
</thead> |
746 |
<tbody> |
746 |
<tbody> |
747 |
[% FOREACH suggestions_loo IN suggestion.suggestions_loop %] |
747 |
[% FOREACH s IN suggestion.suggestions %] |
748 |
<tr> |
748 |
<tr> |
749 |
<td> |
749 |
<td> |
750 |
<input type="checkbox" name="suggestionid" value="[% suggestions_loo.suggestionid | html %]" /> |
750 |
<input type="checkbox" name="suggestionid" value="[% s.suggestionid | html %]" /> |
751 |
</td> |
751 |
</td> |
752 |
<td> |
752 |
<td> |
753 |
<a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | uri %]&op=show" title="suggestion" > |
753 |
<a href="suggestion.pl?suggestionid=[% s.suggestionid | uri %]&op=show" title="suggestion" > |
754 |
[% suggestions_loo.title | html %][% IF ( suggestions_loo.author ) %], by [% suggestions_loo.author | html %][% END %] |
754 |
[% s.title | html %][% IF ( s.author ) %], by [% s.author | html %][% END %] |
755 |
</a> |
755 |
</a> |
756 |
<br /> |
756 |
<br /> |
757 |
[% IF ( suggestions_loo.copyrightdate ) %] |
757 |
[% IF ( s.copyrightdate ) %] |
758 |
© <span class="suggestion_copyrightdate">[% suggestions_loo.copyrightdate | html %]</span> |
758 |
© <span class="suggestion_copyrightdate">[% s.copyrightdate | html %]</span> |
759 |
[% END %] |
759 |
[% END %] |
760 |
[% IF ( suggestions_loo.volumedesc ) %] |
760 |
[% IF ( s.volumedesc ) %] |
761 |
; <span class="suggestion_volume">Volume:<em>[% suggestions_loo.volumedesc | html %]</em></span> |
761 |
; <span class="suggestion_volume">Volume:<em>[% s.volumedesc | html %]</em></span> |
762 |
[% END %] |
762 |
[% END %] |
763 |
[% IF ( suggestions_loo.isbn ) %] |
763 |
[% IF ( s.isbn ) %] |
764 |
; <span class="suggestion_isbn">ISBN: <em>[% suggestions_loo.isbn | html %]</em></span> |
764 |
; <span class="suggestion_isbn">ISBN: <em>[% s.isbn | html %]</em></span> |
765 |
[% END %] |
765 |
[% END %] |
766 |
[% IF ( suggestions_loo.publishercode ) %] |
766 |
[% IF ( s.publishercode ) %] |
767 |
; <span class="suggestion_publishercode">Published by [% suggestions_loo.publishercode | html %]</span> |
767 |
; <span class="suggestion_publishercode">Published by [% s.publishercode | html %]</span> |
768 |
[% END %] |
768 |
[% END %] |
769 |
[% IF ( suggestions_loo.publicationyear ) %] |
769 |
[% IF ( s.publicationyear ) %] |
770 |
in <span class="suggestion_publicationyear"><em>[% suggestions_loo.publicationyear | html %]</em></span> |
770 |
in <span class="suggestion_publicationyear"><em>[% s.publicationyear | html %]</em></span> |
771 |
[% END %] |
771 |
[% END %] |
772 |
[% IF ( suggestions_loo.place ) %] |
772 |
[% IF ( s.place ) %] |
773 |
in <span class="suggestion_place"><em>[% suggestions_loo.place | html %]</em></span> |
773 |
in <span class="suggestion_place"><em>[% s.place | html %]</em></span> |
774 |
[% END %] |
774 |
[% END %] |
775 |
[% IF ( suggestions_loo.collectiontitle ) %] |
775 |
[% IF ( s.collectiontitle ) %] |
776 |
; <span class="suggestion_collectiontitle">[% suggestions_loo.collectiontitle | html %]</span> |
776 |
; <span class="suggestion_collectiontitle">[% s.collectiontitle | html %]</span> |
777 |
[% END %] |
777 |
[% END %] |
778 |
[% IF ( suggestions_loo.itemtype ) %] |
778 |
[% IF ( s.itemtype ) %] |
779 |
; <span class="suggestion_itype">[% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestions_loo.itemtype, 0 ) | html %]</span> |
779 |
; <span class="suggestion_itype">[% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', s.itemtype, 0 ) | html %]</span> |
780 |
[% END %] |
780 |
[% END %] |
781 |
<br /> |
781 |
<br /> |
782 |
[% IF ( suggestions_loo.note ) %] |
782 |
[% IF ( s.note ) %] |
783 |
<div class="suggestion_note"><i class="fa fa-comment"></i> [% suggestions_loo.note | html %]</div> |
783 |
<div class="suggestion_note"><i class="fa fa-comment"></i> [% s.note | html %]</div> |
784 |
[% END %] |
784 |
[% END %] |
785 |
[% IF suggestions_loo.archived %] |
785 |
[% IF s.archived %] |
786 |
<br /><i class="fa fa-archive"></i> Archived |
786 |
<br /><i class="fa fa-archive"></i> Archived |
787 |
[% END %] |
787 |
[% END %] |
788 |
</td> |
788 |
</td> |
789 |
<td> |
789 |
<td> |
790 |
<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> |
790 |
[% SET suggester = s.suggester %] |
|
|
791 |
<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> |
791 |
</td> |
792 |
</td> |
792 |
<td data-order="[% suggestions_loo.suggesteddate | html %]"> |
793 |
<td data-order="[% s.suggesteddate | html %]"> |
793 |
[% IF ( suggestions_loo.suggesteddate ) %][% suggestions_loo.suggesteddate | $KohaDates %][% END %] |
794 |
[% IF ( s.suggesteddate ) %][% s.suggesteddate | $KohaDates %][% END %] |
794 |
</td> |
795 |
</td> |
795 |
<td>[% AuthorisedValues.GetByCode( 'OPAC_SUG', suggestions_loo.patronreason ) | html %]</td> |
796 |
<td>[% AuthorisedValues.GetByCode( 'OPAC_SUG', s.patronreason ) | html %]</td> |
796 |
<td> |
797 |
<td> |
797 |
<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> |
798 |
[% SET manager = s.manager %] |
|
|
799 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% manager.borrowernumber | uri %]">[% manager.surname | html %][% IF manager.firstname %], [% manager.firstname | html %][% END %]</a> |
798 |
</td> |
800 |
</td> |
799 |
<td data-order="[% suggestions_loo.manageddate | html %]"> |
801 |
<td data-order="[% s.manageddate | html %]"> |
800 |
[% IF ( suggestions_loo.manageddate ) %][% suggestions_loo.manageddate | $KohaDates %][% END %] |
802 |
[% IF ( s.manageddate ) %][% s.manageddate | $KohaDates %][% END %] |
801 |
</td> |
803 |
</td> |
802 |
<td> |
804 |
<td> |
803 |
<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> |
805 |
[% SET last_modifier = s.last_modifier %] |
|
|
806 |
<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> |
804 |
</td> |
807 |
</td> |
805 |
<td data-order="[% suggestions_loo.lastmodificationdate | html %]"> |
808 |
<td data-order="[% s.lastmodificationdate | html %]"> |
806 |
[% IF ( suggestions_loo.lastmodificationdate ) %][% suggestions_loo.lastmodificationdate | $KohaDates %][% END %] |
809 |
[% IF ( s.lastmodificationdate ) %][% s.lastmodificationdate | $KohaDates %][% END %] |
807 |
</td> |
810 |
</td> |
808 |
<td> |
811 |
<td> |
809 |
[% suggestions_loo.date | $KohaDates %] |
812 |
[% s.lastmodificationdate | $KohaDates %] |
810 |
</td> |
813 |
</td> |
811 |
<td> |
814 |
<td> |
812 |
[% Branches.GetName( suggestions_loo.branchcode ) | html %] |
815 |
[% Branches.GetName( s.branchcode ) | html %] |
813 |
</td> |
816 |
</td> |
814 |
<td> |
817 |
<td> |
815 |
[% suggestions_loo.budget_name | html %] |
818 |
[% s.fund.budget_name | html %] |
816 |
</td> |
819 |
</td> |
817 |
<td> |
820 |
<td> |
818 |
[% IF ( suggestions_loo.ASKED ) %] |
821 |
[% IF s.STATUS == 'ASKED' %] |
819 |
Pending |
822 |
Pending |
820 |
[% ELSIF ( suggestions_loo.ACCEPTED ) %] |
823 |
[% ELSIF s.STATUS == 'ACCEPTED' %] |
821 |
Accepted |
824 |
Accepted |
822 |
[% ELSIF ( suggestions_loo.ORDERED ) %] |
825 |
[% ELSIF s.STATUS == 'ORDERED' %] |
823 |
Ordered |
826 |
Ordered |
824 |
[% ELSIF ( suggestions_loo.REJECTED ) %] |
827 |
[% ELSIF s.STATUS == 'REJECTED' %] |
825 |
Rejected |
828 |
Rejected |
826 |
[% ELSIF ( suggestions_loo.CHECKED ) %] |
829 |
[% ELSIF s.STATUS == 'CHECKED' %] |
827 |
Checked |
830 |
Checked |
828 |
[% ELSIF ( suggestions_loo.AVAILABLE ) %] |
831 |
[% ELSIF s.STATUS == 'AVAILABLE' %] |
829 |
Available |
832 |
Available |
830 |
[% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) %] |
833 |
[% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', s.STATUS ) %] |
831 |
[% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) | html %] |
834 |
[% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', s.STATUS ) | html %] |
832 |
[% ELSE %] |
835 |
[% ELSE %] |
833 |
Status unknown |
836 |
Status unknown |
834 |
[% END %] |
837 |
[% END %] |
835 |
|
838 |
|
836 |
[% IF ( suggestions_loo.reason ) %] |
839 |
[% IF ( s.reason ) %] |
837 |
<br />([% suggestions_loo.reason | html %]) |
840 |
<br />([% s.reason | html %]) |
838 |
[% END %] |
841 |
[% END %] |
839 |
</td> |
842 |
</td> |
840 |
<td class="actions"> |
843 |
<td class="actions"> |
841 |
<div class="btn-group dropup"> |
844 |
<div class="btn-group dropup"> |
842 |
<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> |
845 |
<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> |
843 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% suggestions_loo.suggestionid | html %]"> |
846 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% s.suggestionid | html %]"> |
844 |
<li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li> |
847 |
<li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li> |
845 |
[% UNLESS suggestions_loo.archived %] |
848 |
[% UNLESS s.archived %] |
846 |
<li><a class="archivesuggestion" href="suggestion.pl?op=archive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li> |
849 |
<li><a class="archivesuggestion" href="suggestion.pl?op=archive&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li> |
847 |
[% ELSE %] |
850 |
[% ELSE %] |
848 |
<li><a class="unarchivesuggestion" href="suggestion.pl?op=unarchive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Unarchive</a></li> |
851 |
<li><a class="unarchivesuggestion" href="suggestion.pl?op=unarchive&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-archive"></i> Unarchive</a></li> |
849 |
[% END %] |
852 |
[% END %] |
850 |
</ul> |
853 |
</ul> |
851 |
</div> |
854 |
</div> |
852 |
</td> |
855 |
</td> |
853 |
</tr> |
856 |
</tr> |
854 |
[% END # /FOREACH suggestions_loo %] |
857 |
[% END # /FOREACH s %] |
855 |
</tbody> |
858 |
</tbody> |
856 |
</table> <!-- /#table_[% loop.count | html %] --> |
859 |
</table> <!-- /#table_[% loop.count | html %] --> |
857 |
|
860 |
|
Lines 960-975
Link Here
|
960 |
</fieldset> |
963 |
</fieldset> |
961 |
</fieldset> |
964 |
</fieldset> |
962 |
</div> <!-- /.col-sm-2 --> |
965 |
</div> <!-- /.col-sm-2 --> |
963 |
<div class="col-sm-2"> |
|
|
964 |
<fieldset> |
965 |
<span class="label">Archive selected</span> |
966 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
967 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
968 |
<fieldset class="action"> |
969 |
<button type="submit" class="btn btn-default btn-xs" value="archive">Archive</button> |
970 |
</fieldset> |
971 |
</fieldset> |
972 |
</div> <!-- /.col-sm-2 --> |
973 |
</div> <!-- /.row --> |
966 |
</div> <!-- /.row --> |
974 |
|
967 |
|
975 |
[% ELSE %] |
968 |
[% ELSE %] |
Lines 1067-1075
Link Here
|
1067 |
<li> |
1060 |
<li> |
1068 |
<label for="archived" style="display: inline;">Include archived:</label> |
1061 |
<label for="archived" style="display: inline;">Include archived:</label> |
1069 |
[% IF filter_archived %] |
1062 |
[% IF filter_archived %] |
1070 |
<input type="checkbox" id="archived" name="filter_archived" checked="checked" title="Include archived suggestions in the search" /> |
1063 |
<input type="checkbox" id="archived" value="1" name="filter_archived" checked="checked" title="Include archived suggestions in the search" /> |
1071 |
[% ELSE %] |
1064 |
[% ELSE %] |
1072 |
<input type="checkbox" id="archived" name="filter_archived" title="Include archived suggestions in the search" /> |
1065 |
<input type="checkbox" id="archived" value="1" name="filter_archived" title="Include archived suggestions in the search" /> |
1073 |
[% END %] |
1066 |
[% END %] |
1074 |
</li> |
1067 |
</li> |
1075 |
<li> |
1068 |
<li> |
Lines 1321-1329
Link Here
|
1321 |
if( $("#suggestiontabs .tab-pane.active").length < 1 ){ |
1314 |
if( $("#suggestiontabs .tab-pane.active").length < 1 ){ |
1322 |
$("#suggestiontabs a:first").tab("show"); |
1315 |
$("#suggestiontabs a:first").tab("show"); |
1323 |
} |
1316 |
} |
|
|
1317 |
|
1324 |
table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %] |
1318 |
table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %] |
1325 |
[% FOREACH suggestion IN suggestions %] |
1319 |
[% FOREACH suggestion IN suggestions %] |
1326 |
[% IF ( suggestion.suggestions_loop ) %] |
1320 |
[% IF suggestion.suggestions.size %] |
1327 |
KohaTable("table_[% loop.count| html %]", { |
1321 |
KohaTable("table_[% loop.count| html %]", { |
1328 |
"sorting": [[ 3, "asc" ]], |
1322 |
"sorting": [[ 3, "asc" ]], |
1329 |
"autoWidth": false, |
1323 |
"autoWidth": false, |