Lines 564-570
Link Here
|
564 |
No name |
564 |
No name |
565 |
[% END %] |
565 |
[% END %] |
566 |
[% END %] |
566 |
[% END %] |
567 |
([% suggestion.suggestions_loop.size | html %])</a></li> |
567 |
([% suggestion.suggestions.count | html %])</a></li> |
568 |
|
568 |
|
569 |
[% END %] |
569 |
[% END %] |
570 |
</ul> |
570 |
</ul> |
Lines 574-580
Link Here
|
574 |
<div id="[% suggestion.suggestiontype | html %]"> |
574 |
<div id="[% suggestion.suggestiontype | html %]"> |
575 |
<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype| uri %]"> |
575 |
<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype| uri %]"> |
576 |
|
576 |
|
577 |
[% IF ( suggestion.suggestions_loop ) %] |
577 |
[% IF suggestion.suggestions.count %] |
578 |
<p><a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a></p> |
578 |
<p><a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a></p> |
579 |
<table id="table_[% loop.count | html %]" class="sorted"> |
579 |
<table id="table_[% loop.count | html %]" class="sorted"> |
580 |
<thead> |
580 |
<thead> |
Lines 594-669
Link Here
|
594 |
</tr> |
594 |
</tr> |
595 |
</thead> |
595 |
</thead> |
596 |
<tbody> |
596 |
<tbody> |
597 |
[% FOREACH suggestions_loo IN suggestion.suggestions_loop %] |
597 |
[% FOREACH s IN suggestion.suggestions %] |
598 |
<tr> |
598 |
<tr> |
599 |
<td> |
599 |
<td> |
600 |
<input type="checkbox" name="suggestionid" value="[% suggestions_loo.suggestionid | html %]" /> |
600 |
<input type="checkbox" name="suggestionid" value="[% s.suggestionid | html %]" /> |
601 |
</td> |
601 |
</td> |
602 |
<td> |
602 |
<td> |
603 |
<a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | uri %]&op=show" title="suggestion" > |
603 |
<a href="suggestion.pl?suggestionid=[% s.suggestionid | uri %]&op=show" title="suggestion" > |
604 |
[% suggestions_loo.title | html %][% IF ( suggestions_loo.author ) %], by [% suggestions_loo.author | html %][% END %]</a> |
604 |
[% s.title | html %][% IF ( s.author ) %], by [% s.author | html %][% END %]</a> |
605 |
<br /> |
605 |
<br /> |
606 |
[% IF ( suggestions_loo.copyrightdate ) %]© [% suggestions_loo.copyrightdate | html %] [% END %] |
606 |
[% IF ( s.copyrightdate ) %]© [% s.copyrightdate | html %] [% END %] |
607 |
[% IF ( suggestions_loo.volumedesc ) %]; Volume:<em>[% suggestions_loo.volumedesc | html %]</em> [% END %] |
607 |
[% IF ( s.volumedesc ) %]; Volume:<em>[% s.volumedesc | html %]</em> [% END %] |
608 |
[% IF ( suggestions_loo.isbn ) %]; ISBN:<em>[% suggestions_loo.isbn | html %]</em> [% END %][% IF ( suggestions_loo.publishercode ) %]; Published by [% suggestions_loo.publishercode | html %] [% END %][% IF ( suggestions_loo.publicationyear ) %] in <em>[% suggestions_loo.publicationyear | html %]</em> [% END %][% IF ( suggestions_loo.place ) %] in <em>[% suggestions_loo.place | html %]</em> [% END %][% IF ( suggestions_loo.collectiontitle ) %]; [% suggestions_loo.collectiontitle | html %] [% END %][% IF ( suggestions_loo.itemtype ) %]; [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestions_loo.itemtype, 0 ) | html %] [% END %]<br />[% IF ( suggestions_loo.note ) %]<div class="suggestion_note"><i class="fa fa-comment"></i> [% suggestions_loo.note | html %]</div>[% END %] |
608 |
[% IF ( s.isbn ) %]; ISBN:<em>[% s.isbn | html %]</em> [% END %][% IF ( s.publishercode ) %]; Published by [% s.publishercode | html %] [% END %][% IF ( s.publicationyear ) %] in <em>[% s.publicationyear | html %]</em> [% END %][% IF ( s.place ) %] in <em>[% s.place | html %]</em> [% END %][% IF ( s.collectiontitle ) %]; [% s.collectiontitle | html %] [% END %][% IF ( s.itemtype ) %]; [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', s.itemtype, 0 ) | html %] [% END %]<br />[% IF ( s.note ) %]<div class="suggestion_note"><i class="fa fa-comment"></i> [% s.note | html %]</div>[% END %] |
609 |
[% IF suggestions_loo.archived %]<br /><i class="fa fa-archive"></i> Archived[% END %] |
609 |
[% IF s.archived %]<br /><i class="fa fa-archive"></i> Archived[% END %] |
610 |
</td> |
610 |
</td> |
611 |
<td> |
611 |
<td> |
612 |
<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> |
612 |
[% SET suggester = s.suggester %] |
|
|
613 |
<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> |
613 |
</td> |
614 |
</td> |
614 |
<td data-order="[% suggestions_loo.suggesteddate | html %]"> |
615 |
<td data-order="[% s.suggesteddate | html %]"> |
615 |
[% IF ( suggestions_loo.suggesteddate ) %][% suggestions_loo.suggesteddate | $KohaDates %][% END %] |
616 |
[% IF ( s.suggesteddate ) %][% s.suggesteddate | $KohaDates %][% END %] |
616 |
</td> |
617 |
</td> |
617 |
<td> |
618 |
<td> |
618 |
<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> |
619 |
[% SET manager = s.manager %] |
|
|
620 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% manager.borrowernumber | uri %]">[% manager.surname | html %][% IF manager.firstname %], [% manager.firstname | html %][% END %]</a> |
619 |
</td> |
621 |
</td> |
620 |
<td data-order="[% suggestions_loo.manageddate | html %]"> |
622 |
<td data-order="[% s.manageddate | html %]"> |
621 |
[% IF ( suggestions_loo.manageddate ) %][% suggestions_loo.manageddate | $KohaDates %][% END %] |
623 |
[% IF ( s.manageddate ) %][% s.manageddate | $KohaDates %][% END %] |
622 |
</td> |
624 |
</td> |
623 |
<td> |
625 |
<td> |
624 |
<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> |
626 |
[% SET last_modifier = s.last_modifier %] |
|
|
627 |
<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> |
625 |
</td> |
628 |
</td> |
626 |
<td data-order="[% suggestions_loo.lastmodificationdate | html %]"> |
629 |
<td data-order="[% s.lastmodificationdate | html %]"> |
627 |
[% IF ( suggestions_loo.lastmodificationdate ) %][% suggestions_loo.lastmodificationdate | $KohaDates %][% END %] |
630 |
[% IF ( s.lastmodificationdate ) %][% s.lastmodificationdate | $KohaDates %][% END %] |
628 |
</td> |
631 |
</td> |
629 |
<td> |
632 |
<td> |
630 |
[% Branches.GetName( suggestions_loo.branchcode ) | html %] |
633 |
[% Branches.GetName( s.branchcode ) | html %] |
631 |
</td> |
634 |
</td> |
632 |
<td> |
635 |
<td> |
633 |
[% suggestions_loo.budget_name | html %] |
636 |
[% s.fund.budget_name | html %] |
634 |
</td> |
637 |
</td> |
635 |
<td> |
638 |
<td> |
636 |
[% IF ( suggestions_loo.ASKED ) %] |
639 |
[% IF s.STATUS == 'ASKED' %] |
637 |
Pending |
640 |
Pending |
638 |
[% ELSIF ( suggestions_loo.ACCEPTED ) %] |
641 |
[% ELSIF s.STATUS == 'ACCEPTED' %] |
639 |
Accepted |
642 |
Accepted |
640 |
[% ELSIF ( suggestions_loo.ORDERED ) %] |
643 |
[% ELSIF s.STATUS == 'ORDERED' %] |
641 |
Ordered |
644 |
Ordered |
642 |
[% ELSIF ( suggestions_loo.REJECTED ) %] |
645 |
[% ELSIF s.STATUS == 'REJECTED' %] |
643 |
Rejected |
646 |
Rejected |
644 |
[% ELSIF ( suggestions_loo.CHECKED ) %] |
647 |
[% ELSIF s.STATUS == 'CHECKED' %] |
645 |
Checked |
648 |
Checked |
646 |
[% ELSIF ( suggestions_loo.AVAILABLE ) %] |
649 |
[% ELSIF s.STATUS == 'AVAILABLE' %] |
647 |
Available |
650 |
Available |
648 |
[% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) %] |
651 |
[% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', s.STATUS ) %] |
649 |
[% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) | html %] |
652 |
[% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', s.STATUS ) | html %] |
650 |
[% ELSE %] |
653 |
[% ELSE %] |
651 |
Status unknown |
654 |
Status unknown |
652 |
[% END %] |
655 |
[% END %] |
653 |
|
656 |
|
654 |
[% IF ( suggestions_loo.reason ) %] |
657 |
[% IF ( s.reason ) %] |
655 |
<br />([% suggestions_loo.reason | html %]) |
658 |
<br />([% s.reason | html %]) |
656 |
[% END %] |
659 |
[% END %] |
657 |
</td> |
660 |
</td> |
658 |
<td class="actions"> |
661 |
<td class="actions"> |
659 |
<div class="btn-group dropup"> |
662 |
<div class="btn-group dropup"> |
660 |
<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> |
663 |
<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> |
661 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% suggestions_loo.suggestionid | html %]"> |
664 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% s.suggestionid | html %]"> |
662 |
<li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li> |
665 |
<li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li> |
663 |
[% UNLESS suggestions_loo.archived %] |
666 |
[% UNLESS s.archived %] |
664 |
<li><a class="archivesuggestion" href="suggestion.pl?op=archive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li> |
667 |
<li><a class="archivesuggestion" href="suggestion.pl?op=archive&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li> |
665 |
[% ELSE %] |
668 |
[% ELSE %] |
666 |
<li><a class="unarchivesuggestion" href="suggestion.pl?op=unarchive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Unarchive</a></li> |
669 |
<li><a class="unarchivesuggestion" href="suggestion.pl?op=unarchive&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-archive"></i> Unarchive</a></li> |
667 |
[% END %] |
670 |
[% END %] |
668 |
</ul> |
671 |
</ul> |
669 |
</div> |
672 |
</div> |
Lines 1053-1059
Link Here
|
1053 |
|
1056 |
|
1054 |
columns_settings = [% TablesSettings.GetColumns( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %] |
1057 |
columns_settings = [% TablesSettings.GetColumns( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %] |
1055 |
[% FOREACH suggestion IN suggestions %] |
1058 |
[% FOREACH suggestion IN suggestions %] |
1056 |
[% IF ( suggestion.suggestions_loop ) %] |
1059 |
[% IF suggestion.suggestions.count %] |
1057 |
KohaTable("table_[% loop.count| html %]", { |
1060 |
KohaTable("table_[% loop.count| html %]", { |
1058 |
"sorting": [[ 1, "asc" ]], |
1061 |
"sorting": [[ 1, "asc" ]], |
1059 |
"autoWidth": false, |
1062 |
"autoWidth": false, |