Lines 8-14
Link Here
|
8 |
[% USE TablesSettings %] |
8 |
[% USE TablesSettings %] |
9 |
[% SET footerjs = 1 %] |
9 |
[% SET footerjs = 1 %] |
10 |
[% formulaire = BLOCK %] |
10 |
[% formulaire = BLOCK %] |
11 |
[% INCLUDE 'circ-search.inc' %] |
11 |
[% INCLUDE 'cat-search.inc' %] |
12 |
[% END %] |
12 |
[% END %] |
13 |
[% INCLUDE 'doc-head-open.inc' %] |
13 |
[% INCLUDE 'doc-head-open.inc' %] |
14 |
<title> |
14 |
<title> |
Lines 118-126
Link Here
|
118 |
<div class="col-md-8 col-md-offset-2"> |
118 |
<div class="col-md-8 col-md-offset-2"> |
119 |
|
119 |
|
120 |
<div id="toolbar" class="btn-toolbar"> |
120 |
<div id="toolbar" class="btn-toolbar"> |
121 |
<a class="btn btn-default" id="editsuggestion" href="suggestion.pl?op=edit&suggestionid=[% suggestionid | html %]"><i class="fa fa-pencil"></i> Edit</a> |
121 |
<div> |
122 |
<a class="btn btn-default deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a> |
122 |
<a class="btn btn-default pat" id="editsuggestion" href="suggestion.pl?op=edit&suggestionid=[% suggestionid | html %]"><i class="fa fa-pencil"></i> Edit</a> |
123 |
</div> |
123 |
<a class="btn btn-default deletesuggestion pat" href="suggestion.pl?op=delete&suggestionid=[% suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a> |
|
|
124 |
</div></div> |
124 |
|
125 |
|
125 |
<fieldset class="rows"> |
126 |
<fieldset class="rows"> |
126 |
<h3>Bibliographic information</h3> |
127 |
<h3>Bibliographic information</h3> |
Lines 203-224
Link Here
|
203 |
<span class="label">Status:</span> |
204 |
<span class="label">Status:</span> |
204 |
[% SET status_found = 0 %] |
205 |
[% SET status_found = 0 %] |
205 |
[% IF ( STATUS == 'ASKED' ) %] |
206 |
[% IF ( STATUS == 'ASKED' ) %] |
206 |
<span>Pending</span> |
207 |
Pending |
207 |
[% SET status_found = 1 %] |
208 |
[% SET status_found = 1 %] |
208 |
[% ELSIF ( STATUS == 'ACCEPTED' ) %] |
209 |
[% ELSIF ( STATUS == 'ACCEPTED' ) %] |
209 |
<span>Accepted</span> |
210 |
Accepted |
210 |
[% SET status_found = 1 %] |
211 |
[% SET status_found = 1 %] |
211 |
[% ELSIF ( STATUS == 'CHECKED' ) %] |
212 |
[% ELSIF ( STATUS == 'CHECKED' ) %] |
212 |
<span>Checked</span> |
213 |
Checked |
213 |
[% SET status_found = 1 %] |
214 |
[% SET status_found = 1 %] |
214 |
[% ELSIF ( STATUS == 'REJECTED' ) %] |
215 |
[% ELSIF ( STATUS == 'REJECTED' ) %] |
215 |
<span>Rejected</span> |
216 |
Rejected |
216 |
[% SET status_found = 1 %] |
217 |
[% SET status_found = 1 %] |
217 |
[% ELSIF ( STATUS == 'ORDERED' ) %] |
218 |
[% ELSIF ( STATUS == 'ORDERED' ) %] |
218 |
<span>Ordered</span> |
219 |
Ordered |
219 |
[% SET status_found = 1 %] |
220 |
[% SET status_found = 1 %] |
220 |
[% ELSIF ( STATUS == 'AVAILABLE' ) %] |
221 |
[% ELSIF ( STATUS == 'AVAILABLE' ) %] |
221 |
<span>Available</span> |
222 |
Available |
222 |
[% SET status_found = 1 %] |
223 |
[% SET status_found = 1 %] |
223 |
[% ELSE %] |
224 |
[% ELSE %] |
224 |
[% FOREACH s IN SuggestionStatuses %] |
225 |
[% FOREACH s IN SuggestionStatuses %] |
Lines 321-327
Link Here
|
321 |
</fieldset> |
322 |
</fieldset> |
322 |
|
323 |
|
323 |
<fieldset class="action"> |
324 |
<fieldset class="action"> |
324 |
<a href="suggestion.pl"><< Back to suggestions</a> |
325 |
<a href="suggestion.pl" id="lientype"><< Back to suggestions</a> |
325 |
</fieldset> |
326 |
</fieldset> |
326 |
|
327 |
|
327 |
</div> <!-- /.col-md-8 col-md-offset-2 --> |
328 |
</div> <!-- /.col-md-8 col-md-offset-2 --> |
Lines 343-353
Link Here
|
343 |
<div class="dialog [% m.type | html %]"> |
344 |
<div class="dialog [% m.type | html %]"> |
344 |
[% SWITCH m.code %] |
345 |
[% SWITCH m.code %] |
345 |
[% CASE 'biblio_exists' %] |
346 |
[% CASE 'biblio_exists' %] |
346 |
<span>A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message.</span> |
347 |
A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message. |
347 |
[% CASE 'manager_not_enough_permissions' %] |
348 |
[% CASE 'manager_not_enough_permissions' %] |
348 |
<span>The manager you selected does not have sufficient permissions.</span> |
349 |
The manager you selected does not have sufficient permissions. |
349 |
[% CASE %] |
350 |
[% CASE %] |
350 |
<span>[% m.code | html %]</span> |
351 |
[% m.code | html %] |
351 |
[% END %] |
352 |
[% END %] |
352 |
</div> <!-- /.dialog --> |
353 |
</div> <!-- /.dialog --> |
353 |
[% END %] |
354 |
[% END %] |
Lines 488-494
Link Here
|
488 |
[% ELSE %] |
489 |
[% ELSE %] |
489 |
<input type="text" size="31" id="select-other_reason" name="other_reason" placeholder="please note your reason here..." /> |
490 |
<input type="text" size="31" id="select-other_reason" name="other_reason" placeholder="please note your reason here..." /> |
490 |
[% END %] |
491 |
[% END %] |
491 |
<a href="#back">Cancel</a> |
492 |
<a class="cancel" href="#back">Cancel</a> |
492 |
</span> |
493 |
</span> |
493 |
</li> |
494 |
</li> |
494 |
[% END %] |
495 |
[% END %] |
Lines 517-523
Link Here
|
517 |
[% END %] |
518 |
[% END %] |
518 |
</td> |
519 |
</td> |
519 |
<td> |
520 |
<td> |
520 |
<a href="#" id="edit_suggester" class="btn btn-default">Set to patron</a> |
521 |
<a href="#" id="edit_suggester" class="btn btn-default lientype">Set to patron</a> |
521 |
</td> |
522 |
</td> |
522 |
</tr> |
523 |
</tr> |
523 |
<tr> |
524 |
<tr> |
Lines 567-575
Link Here
|
567 |
| Previously was [% INCLUDE 'patron-title.inc' patron=managedby_patron hide_patron_infos_if_needed=1 %] [% Branches.GetName( managedby_patron.branchcode ) | html %] ([% managedby_patron.category.description | html %]) |
568 |
| Previously was [% INCLUDE 'patron-title.inc' patron=managedby_patron hide_patron_infos_if_needed=1 %] [% Branches.GetName( managedby_patron.branchcode ) | html %] ([% managedby_patron.category.description | html %]) |
568 |
[% END %] |
569 |
[% END %] |
569 |
<br /> |
570 |
<br /> |
570 |
<a id="edit_manager" class="new_window" href="#"><i class="fa fa-search"></i> Select manager</a> |
571 |
<a id="edit_manager" class="new_window lientype" href="#"><i class="fa fa-search"></i> Select manager</a> |
571 |
[% IF managedby_patron.borrowernumber && logged_in_user.borrowernumber != managedby_patron.borrowernumber %] |
572 |
[% IF managedby_patron.borrowernumber && logged_in_user.borrowernumber != managedby_patron.borrowernumber %] |
572 |
<a id="restore_previous_manager" href="#"><i class="fa fa-trash"></i> Keep existing manager</a> |
573 |
<a id="restore_previous_manager" class="lientype" href="#"><i class="fa fa-trash"></i> Keep existing manager</a> |
573 |
[% END %] |
574 |
[% END %] |
574 |
<input type="hidden" name="managedby" id="managedby" value="[% logged_in_user.borrowernumber | html %]" /> |
575 |
<input type="hidden" name="managedby" id="managedby" value="[% logged_in_user.borrowernumber | html %]" /> |
575 |
|
576 |
|
Lines 646-652
Link Here
|
646 |
[% IF ( suggestionid ) %] |
647 |
[% IF ( suggestionid ) %] |
647 |
[% IF ( need_confirm ) %] |
648 |
[% IF ( need_confirm ) %] |
648 |
<input type="hidden" name="save_confirmed" value="1" /> |
649 |
<input type="hidden" name="save_confirmed" value="1" /> |
649 |
<input onclick="this.form.op.value = 'save'; this.form.submit();" type="submit" value="Confirm your suggestion" /> |
650 |
<input onclick="this.form.op.value = 'save'; this.form.submit();" type="submit" class="principal" value="Confirm your suggestion" /> |
650 |
[% ELSE %] |
651 |
[% ELSE %] |
651 |
<input type="submit" class="principal" value="Save" /> |
652 |
<input type="submit" class="principal" value="Save" /> |
652 |
[% END %] |
653 |
[% END %] |
Lines 654-660
Link Here
|
654 |
[% ELSE %] |
655 |
[% ELSE %] |
655 |
[% IF ( need_confirm ) %] |
656 |
[% IF ( need_confirm ) %] |
656 |
<input type="hidden" name="save_confirmed" value="1" /> |
657 |
<input type="hidden" name="save_confirmed" value="1" /> |
657 |
<input onclick="this.form.op.value = 'save'; this.form.submit();" type="submit" value="Confirm your suggestion" /> |
658 |
<input onclick="this.form.op.value = 'save'; this.form.submit();" class="principal" type="submit" value="Confirm your suggestion" /> |
658 |
[% ELSE %] |
659 |
[% ELSE %] |
659 |
<input type="submit" class="principal" value="Submit your suggestion" /> |
660 |
<input type="submit" class="principal" value="Submit your suggestion" /> |
660 |
[% END %] |
661 |
[% END %] |
Lines 666-675
Link Here
|
666 |
|
667 |
|
667 |
[% IF op == 'else' %] |
668 |
[% IF op == 'else' %] |
668 |
<div id="toolbar" class="btn-toolbar"> |
669 |
<div id="toolbar" class="btn-toolbar"> |
669 |
<div> |
670 |
<div> |
670 |
<a class="pat" id="newsuggestion" href="suggestion.pl?op=add&branchcode=[% branchcode | uri %]"><i class="fa fa-plus"></i> New purchase suggestion</a> |
671 |
<a class="btn btn-default pat" id="newsuggestion" href="suggestion.pl?op=add&branchcode=[% branchcode | uri %]"><i class="fa fa-plus"></i> New purchase suggestion</a> |
671 |
</div> |
672 |
</div></div> |
672 |
</div> |
|
|
673 |
|
673 |
|
674 |
<h2>Suggestions management</h2> |
674 |
<h2>Suggestions management</h2> |
675 |
|
675 |
|
Lines 685-742
Link Here
|
685 |
<div class="dialog [% m.type | html %]"> |
685 |
<div class="dialog [% m.type | html %]"> |
686 |
[% SWITCH m.code %] |
686 |
[% SWITCH m.code %] |
687 |
[% CASE 'already_exists' %] |
687 |
[% CASE 'already_exists' %] |
688 |
<span>The suggestion has not been added. A suggestion with this title already exists (<a href='/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% m.id | html %]&op=show'>suggestion #[% m.id | html %]</a>)</span> |
688 |
The suggestion has not been added. A suggestion with this title already exists (<a href='/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% m.id | html %]&op=show'>suggestion #[% m.id | html %]</a>) |
689 |
[% CASE 'biblio_exists' %] |
689 |
[% CASE 'biblio_exists' %] |
690 |
<span>A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message.</span> |
690 |
A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message. |
691 |
[% CASE %] |
691 |
[% CASE %] |
692 |
<span>[% m.code | html %]</span> |
692 |
[% m.code | html %] |
693 |
[% END %] |
693 |
[% END %] |
694 |
</div> <!-- /.dialog --> |
694 |
</div> <!-- /.dialog --> |
695 |
[% END # /FOR m %] |
695 |
[% END # /FOR m %] |
696 |
|
696 |
|
697 |
[% UNLESS ( notabs ) %] |
697 |
[% UNLESS ( notabs ) %] |
698 |
<div id="suggestiontabs" class="toptabs"> |
698 |
<div id="suggestiontabs" class="toptabs"> |
699 |
<fieldset id="searchresults"> |
699 |
<div id="searchresults"> |
700 |
<ul class="ui-tabs-nav" role="tablist"> |
700 |
<ul class="ui-tabs-nav"> |
701 |
[% FOREACH suggestion IN suggestions %] |
701 |
[% FOREACH suggestion IN suggestions %] |
702 |
<li role="presentation"> |
702 |
<li> |
703 |
<a href="#[% suggestion.suggestiontype | uri %]" aria-controls="[% suggestion.suggestiontype | uri %]" role="tab" data-toggle="tab"> |
703 |
<a href="#[% suggestion.suggestiontype | uri %]"> |
704 |
[% IF ( suggestion.suggestiontypelabel ) %] |
704 |
[% IF ( suggestion.suggestiontypelabel ) %] |
705 |
[% IF (suggestion.suggestiontypelabel == "Pending") %]<span>Pending</span> |
705 |
[% IF (suggestion.suggestiontypelabel == "Pending") %]Pending |
706 |
[% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]<span>Accepted</span> |
706 |
[% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]Accepted |
707 |
[% ELSIF (suggestion.suggestiontypelabel == "Checked") %]<span>Checked</span> |
707 |
[% ELSIF (suggestion.suggestiontypelabel == "Checked") %]Checked |
708 |
[% ELSIF (suggestion.suggestiontypelabel == "Rejected") %]<span>Rejected</span> |
708 |
[% ELSIF (suggestion.suggestiontypelabel == "Rejected") %]Rejected |
709 |
[% ELSIF (suggestion.suggestiontypelabel == "Available") %]<span>Available</span> |
709 |
[% ELSIF (suggestion.suggestiontypelabel == "Available") %]Available |
710 |
[% ELSIF (suggestion.suggestiontypelabel == "Ordered") %]<span>Ordered</span> |
710 |
[% ELSIF (suggestion.suggestiontypelabel == "Ordered") %]Ordered |
711 |
[% ELSIF (suggestion.suggestiontypelabel == "Unknown") %]<span>Status unknown</span> |
711 |
[% ELSIF (suggestion.suggestiontypelabel == "Unknown") %]Status unknown |
712 |
[% ELSIF (suggestion.suggestiontypelabel == "__ANY__") %]<span>Any</span> |
712 |
[% ELSIF (suggestion.suggestiontypelabel == "__ANY__") %]Any |
713 |
[% ELSE %][% suggestion.suggestiontypelabel | html %][% END %] |
713 |
[% ELSE %][% suggestion.suggestiontypelabel | html %][% END %] |
714 |
[% ELSE %] |
714 |
[% ELSE %] |
715 |
[% IF ( suggestion.suggestiontype ) %] |
715 |
[% IF ( suggestion.suggestiontype ) %] |
716 |
[% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.suggestiontype ) | html %] |
716 |
[% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.suggestiontype ) | html %] |
717 |
[% ELSE %] |
717 |
[% ELSE %] |
718 |
<span>No name</span> |
718 |
No name |
719 |
[% END %] |
719 |
[% END %] |
720 |
[% END %] |
720 |
[% END %] |
721 |
([% suggestion.suggestions_loop.size | html %]) |
721 |
([% suggestion.suggestions_loop.size | html %])</a></li> |
722 |
</a> |
722 |
|
723 |
</li> |
|
|
724 |
[% END # /FOREACH suggestion %] |
723 |
[% END # /FOREACH suggestion %] |
725 |
</ul> <!-- /.ui-tabs-nav --> |
724 |
</ul> <!-- /.ui-tabs-nav --> |
726 |
<div class="tab-content"> |
|
|
727 |
[% END # /UNLESS notabs %] |
725 |
[% END # /UNLESS notabs %] |
728 |
|
726 |
|
729 |
[% FOREACH suggestion IN suggestions %] |
727 |
[% FOREACH suggestion IN suggestions %] |
730 |
<div id="[% suggestion.suggestiontype | html %]" role="tabpanel" class="tab-pane"> |
728 |
<div id="[% suggestion.suggestiontype | html %]"> |
731 |
<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype| uri %]"> |
729 |
<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype| uri %]"> |
732 |
|
730 |
|
733 |
[% IF ( suggestion.suggestions_loop ) %] |
731 |
[% IF ( suggestion.suggestions_loop ) %] |
734 |
<p> |
732 |
<p> |
735 |
<a class="checkall" id="lientype" href="#">Check all</a> | <a class="uncheckall" id="lientype" href="#">Uncheck all</a> |
733 |
<a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a> |
736 |
</p> |
734 |
</p> |
737 |
|
735 |
|
738 |
<table id="table_[% loop.count | html %]" class="sorted"> |
736 |
<table id="table_[% loop.count | html %]" class="sorted"> |
739 |
<thead> |
737 |
<thead> |
|
|
738 |
<tr> |
739 |
<th class="NoSort noExport"> </th> |
740 |
<th class="anti-the">Suggestion</th> |
741 |
<th>Suggested by</th> |
742 |
<th>Suggested on</th> |
743 |
<th>Managed by</th> |
744 |
<th>Managed on</th> |
745 |
<th>Last modification by</th> |
746 |
<th>Last modification on</th> |
747 |
<th>Last updated</th> |
748 |
<th>Library</th> |
749 |
<th>Fund</th> |
750 |
<th>Status</th> |
751 |
<th class="NoSort noExport"> </th> |
752 |
</tr> |
753 |
</thead> |
754 |
<tbody> |
755 |
[% FOREACH suggestions_loo IN suggestion.suggestions_loop %] |
740 |
<tr> |
756 |
<tr> |
741 |
<td> |
757 |
<td> |
742 |
<input type="checkbox" name="suggestionid" value="[% suggestions_loo.suggestionid | html %]" /> |
758 |
<input type="checkbox" name="suggestionid" value="[% suggestions_loo.suggestionid | html %]" /> |
Lines 830-836
Link Here
|
830 |
</td> |
846 |
</td> |
831 |
<td class="actions"> |
847 |
<td class="actions"> |
832 |
<div class="btn-group dropup"> |
848 |
<div class="btn-group dropup"> |
833 |
<a class="btn btn-default btn-xs" role="button" id="lientype" 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="lientype" sid="more_actions_[% suggestions_loo.suggestionid | html %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a> |
849 |
<a class="btn btn-default btn-xs" role="button" href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | html %]&op=edit" id="lientype"><i class="fa fa-pencil"></i> Edit</a><a class="btn btn-default btn-xs dropdown-toggle lientype" id="more_actions_[% suggestions_loo.suggestionid | html %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a> |
834 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% suggestions_loo.suggestionid | html %]"> |
850 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% suggestions_loo.suggestionid | html %]"> |
835 |
<li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li> |
851 |
<li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li> |
836 |
[% UNLESS suggestions_loo.archived %] |
852 |
[% UNLESS suggestions_loo.archived %] |
Lines 867-942
Link Here
|
867 |
<option value="ACCEPTED">Accepted</option> |
883 |
<option value="ACCEPTED">Accepted</option> |
868 |
[% END %] |
884 |
[% END %] |
869 |
|
885 |
|
870 |
[% IF ( suggestions_loo.reason ) %] |
886 |
[% IF (statusselected_CHECKED ) %] |
871 |
<br />([% suggestions_loo.reason | html %]) |
887 |
<option value="CHECKED" selected="selected">Checked</option> |
872 |
[% END %] |
888 |
[% ELSE %] |
873 |
</td> |
889 |
<option value="CHECKED">Checked</option> |
874 |
<td class="actions"> |
890 |
[% END %] |
875 |
<div class="btn-group dropup"> |
|
|
876 |
<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> |
877 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% suggestions_loo.suggestionid | html %]"> |
878 |
<li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li> |
879 |
[% UNLESS suggestions_loo.archived %] |
880 |
<li><a class="archivesuggestion" href="suggestion.pl?op=archive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li> |
881 |
[% ELSE %] |
882 |
<li><a class="unarchivesuggestion" href="suggestion.pl?op=unarchive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Unarchive</a></li> |
883 |
[% END %] |
884 |
</ul> |
885 |
</div> |
886 |
</td> |
887 |
</tr> |
888 |
[% END # /FOREACH suggestions_loo %] |
889 |
</tbody> |
890 |
</table> <!-- /#table_[% loop.count | html %] --> |
891 |
|
892 |
<div class="row"> |
893 |
<h2 style="padding-left:1em;">Change selected suggestions</h2> |
894 |
<div class="col-sm-4"> |
895 |
<fieldset> |
896 |
<div id="select-reason[% loop.index | html %]"> |
897 |
<label for="STATUSreason[% loop.index | html %]">Mark selected as: </label> |
898 |
<select name="STATUS" id="STATUSreason[% loop.index | html %]"> |
899 |
<option value=""> -- Choose a status --</option> |
900 |
|
901 |
[% IF (statusselected_ASKED ) %] |
902 |
<option value="ASKED" selected="selected">Pending</option> |
903 |
[% ELSE %] |
904 |
<option value="ASKED">Pending</option> |
905 |
[% END %] |
906 |
|
891 |
|
907 |
[% IF (statusselected_ACCEPTED ) %] |
892 |
[% IF ( statusselected_REJECTED ) %] |
908 |
<option value="ACCEPTED" selected="selected">Accepted</option> |
893 |
<option value="REJECTED" selected="selected">Rejected</option> |
909 |
[% ELSE %] |
894 |
[% ELSE %] |
910 |
<option value="ACCEPTED">Accepted</option> |
895 |
<option value="REJECTED">Rejected</option> |
911 |
[% END %] |
896 |
[% END %] |
912 |
|
897 |
|
913 |
[% IF (statusselected_CHECKED ) %] |
898 |
[% IF ( statusselected_ORDERED ) %] |
914 |
<option value="CHECKED" selected="selected">Checked</option> |
899 |
<option value="ORDERED" selected="selected">Ordered</option> |
915 |
[% ELSE %] |
900 |
[% ELSE %] |
916 |
<option value="CHECKED">Checked</option> |
901 |
<option value="ORDERED">Ordered</option> |
917 |
[% END %] |
902 |
[% END %] |
918 |
|
903 |
|
919 |
[% IF ( statusselected_REJECTED ) %] |
904 |
[% FOREACH s IN SuggestionStatuses %] |
920 |
<option value="REJECTED" selected="selected">Rejected</option> |
905 |
<option value="[% s.authorised_value | html %]">[% s.lib | html %]</option> |
921 |
[% ELSE %] |
906 |
[% END %] |
922 |
<option value="REJECTED">Rejected</option> |
907 |
</select> |
923 |
[% END %] |
|
|
924 |
|
908 |
|
925 |
[% IF ( statusselected_ORDERED ) %] |
909 |
<label for="choosereason[% loop.index | html %]">with this reason:</label> |
926 |
<option value="ORDERED" selected="selected">Ordered</option> |
910 |
<select name="reason" id="choosereason[% loop.index | html %]"> |
927 |
[% ELSE %] |
911 |
<option value=""> -- Choose a reason -- </option> |
928 |
<option value="ORDERED">Ordered</option> |
912 |
[% FOREACH reasonsloo IN suggestion.reasonsloop %] |
929 |
[% END %] |
913 |
<option value="[% reasonsloo.lib | html %]">[% reasonsloo.lib | html %]</option> |
|
|
914 |
[% END %] |
915 |
<option value="other">Others...</option> |
916 |
</select> |
930 |
|
917 |
|
931 |
[% FOREACH s IN SuggestionStatuses %] |
918 |
<span class="other_reason"> |
932 |
<option value="[% s.authorised_value | html %]">[% s.lib | html %]</option> |
919 |
<input type="text" size="31" name="other_reason" placeholder="please note your reason here..." /> |
933 |
[% END %] |
920 |
<a href="#" class="cancel_note">Cancel</a> |
934 |
</select> |
921 |
</span> |
|
|
922 |
</div> |
935 |
|
923 |
|
936 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
924 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
937 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
925 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
938 |
<fieldset class="action"> |
926 |
<fieldset class="action"> |
939 |
<button type="submit" class="btn btn-default btn-xs" id="lientype" value="update_status">Submit</button> |
927 |
<button type="submit" class="btn btn-default btn-xs principal" value="update_status">Submit</button> |
940 |
</fieldset> |
928 |
</fieldset> |
941 |
</fieldset> |
929 |
</fieldset> |
942 |
</div> <!-- /.col-sm-4 --> |
930 |
</div> <!-- /.col-sm-4 --> |
Lines 950-956
Link Here
|
950 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
938 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
951 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
939 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
952 |
<fieldset class="action"> |
940 |
<fieldset class="action"> |
953 |
<button type="submit" class="btn btn-default btn-xs" id="lientype" value="update_itemtype">Submit</button> |
941 |
<button type="submit" class="btn btn-default btn-xs principal" value="update_itemtype">Submit</button> |
954 |
</fieldset> |
942 |
</fieldset> |
955 |
</fieldset> |
943 |
</fieldset> |
956 |
</div> <!-- /.col-sm-4 --> |
944 |
</div> <!-- /.col-sm-4 --> |
Lines 958-970
Link Here
|
958 |
<div class="col-sm-2"> |
946 |
<div class="col-sm-2"> |
959 |
<fieldset> |
947 |
<fieldset> |
960 |
<span class="label">Update manager</span><br/> |
948 |
<span class="label">Update manager</span><br/> |
961 |
<a id="set_manager_[% loop.count | html %]" data-tab="[% loop.count | html %]" class="set_manager" href="#"><i class="fa fa-search"></i> Select manager</a> |
949 |
<a id="set_manager_[% loop.count | html %]" data-tab="[% loop.count | html %]" class="set_manager lientype" href="#"><i class="fa fa-search"></i> Select manager</a> |
962 |
<span id="managedby_name[% loop.count | html %]"></span> |
950 |
<span id="managedby_name[% loop.count | html %]"></span> |
963 |
<input type="hidden" name="suggestion_managedby" id="managedby[% loop.count | html %]" value="[% logged_in_user.borrowernumber | html %]" /> |
951 |
<input type="hidden" name="suggestion_managedby" id="managedby[% loop.count | html %]" value="[% logged_in_user.borrowernumber | html %]" /> |
964 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
952 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
965 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
953 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
966 |
<fieldset class="action"> |
954 |
<fieldset class="action"> |
967 |
<button type="submit" class="btn btn-default btn-xs" id="lientype" value="update_manager">Submit</button> |
955 |
<button type="submit" class="btn btn-default btn-xs principal" value="update_manager">Submit</button> |
968 |
</fieldset> |
956 |
</fieldset> |
969 |
</fieldset> |
957 |
</fieldset> |
970 |
</div> <!-- /.col-sm-2 --> |
958 |
</div> <!-- /.col-sm-2 --> |
Lines 975-1006
Link Here
|
975 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
963 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
976 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
964 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
977 |
<fieldset class="action"> |
965 |
<fieldset class="action"> |
978 |
<button type="submit" class="btn btn-default btn-xs" id="lientype" value="delete">Delete</button> |
966 |
<button type="submit" class="btn btn-default btn-xs cancel" value="delete">Delete</button> |
979 |
</fieldset> |
|
|
980 |
</div> <!-- /.col-sm-2 --> |
981 |
<div class="col-sm-2"> |
982 |
<fieldset> |
983 |
<span class="label">Archive selected</span> |
984 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
985 |
<input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> |
986 |
<fieldset class="action"> |
987 |
<button type="submit" class="btn btn-default btn-xs" value="archive">Archive</button> |
988 |
</fieldset> |
989 |
</fieldset> |
967 |
</fieldset> |
990 |
</div> <!-- /.col-sm-2 --> |
968 |
</fieldset> |
991 |
</div> <!-- /.row --> |
969 |
</div> <!-- /.col-sm-2 --> |
|
|
970 |
</div> <!-- /.row --> |
992 |
|
971 |
|
993 |
[% ELSE %] |
972 |
[% ELSE %] |
994 |
<strong>No results.</strong> |
973 |
<strong>No results.</strong> |
995 |
[% END # /IF ( suggestion.suggestions_loop ) %] |
974 |
[% END # /IF ( suggestion.suggestions_loop ) %] |
996 |
</form> <!-- /.update_suggestions --> |
975 |
</form> <!-- /.update_suggestions --> |
997 |
</div> <!-- /#[% suggestion.suggestiontype | html %] --> |
976 |
</div> <!-- /#[% suggestion.suggestiontype | html %] --> |
998 |
[% END # /FOREACH suggestion %] |
977 |
[% END # /FOREACH suggestion %] |
999 |
[% UNLESS ( notabs ) %] |
978 |
[% UNLESS ( notabs ) %] |
1000 |
</fieldset> |
|
|
1001 |
</div> <!-- /.notabs --> |
979 |
</div> <!-- /.notabs --> |
1002 |
[% END # /UNLESS notabs %] |
980 |
[% END # /UNLESS notabs %] |
1003 |
[% END # /IF op == 'else' %] |
981 |
[% END # /IF op == 'else' %] |
|
|
982 |
</div> |
1004 |
|
983 |
|
1005 |
[% UNLESS op == 'save' %] |
984 |
[% UNLESS op == 'save' %] |
1006 |
[% UNLESS ( op == 'show' ) %] |
985 |
[% UNLESS ( op == 'show' ) %] |
Lines 1008-1020
Link Here
|
1008 |
|
987 |
|
1009 |
<div class="col-sm-2 col-sm-pull-10"> |
988 |
<div class="col-sm-2 col-sm-pull-10"> |
1010 |
<aside> |
989 |
<aside> |
1011 |
<div id="filters"> |
|
|
1012 |
<form name="suggestionfilter" action="suggestion.pl" method="get"> |
990 |
<form name="suggestionfilter" action="suggestion.pl" method="get"> |
1013 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
991 |
<input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> |
1014 |
<fieldset class="brief"> |
992 |
<fieldset class="brief"> |
1015 |
<ol style="display:block;"> |
993 |
<ol style="display:block;"> |
1016 |
<li> |
994 |
<li> |
1017 |
<p for="displayby">Organize by: |
995 |
<p for="displayby">Organize by: |
1018 |
<select name="displayby" id="displayby" style="width:auto;"> |
996 |
<select name="displayby" id="displayby" style="width:auto;"> |
1019 |
[% IF ( displayby == "STATUS" ) %] |
997 |
[% IF ( displayby == "STATUS" ) %] |
1020 |
<option value="STATUS" selected="selected">Status</option> |
998 |
<option value="STATUS" selected="selected">Status</option> |
Lines 1041-1048
Link Here
|
1041 |
[% ELSE %] |
1019 |
[% ELSE %] |
1042 |
<option value="acceptedby">Accepted by</option> |
1020 |
<option value="acceptedby">Accepted by</option> |
1043 |
[% END %] |
1021 |
[% END %] |
1044 |
</select> |
1022 |
</select></p> |
1045 |
<input class="principal" type="submit" value="Go" /></p> |
1023 |
<input type="submit" class="principal" value="Go" /> |
1046 |
</li> |
1024 |
</li> |
1047 |
</ol> |
1025 |
</ol> |
1048 |
</fieldset> <!-- /.brief --> |
1026 |
</fieldset> <!-- /.brief --> |
Lines 1051-1057
Link Here
|
1051 |
|
1029 |
|
1052 |
<div id="limits"> |
1030 |
<div id="limits"> |
1053 |
<fieldset class="brief"> |
1031 |
<fieldset class="brief"> |
1054 |
<h4 class="local_collapse"><a href="#">Bibliographic information <span class="caret"></span></a></h4> |
1032 |
<h4 class="local_collapse"><a href="#">Bibliographic information</a></h4> |
1055 |
<ol> |
1033 |
<ol> |
1056 |
<li> |
1034 |
<li> |
1057 |
<p for="title"> Title: |
1035 |
<p for="title"> Title: |
Lines 1075-1087
Link Here
|
1075 |
</li> |
1053 |
</li> |
1076 |
<li> |
1054 |
<li> |
1077 |
<p for="collectiontitle"> Collection title: |
1055 |
<p for="collectiontitle"> Collection title: |
1078 |
<input type="text" id="collectiontitle" name="collectiontitle" value="[% collectiontitle | html %]" /></li><li><input class="principal" type="submit" value="Go" /> |
1056 |
<input type="text" id="collectiontitle" name="collectiontitle" value="[% collectiontitle | html %]" /></li><li><input type="submit" class="principal" value="Go" /> |
1079 |
</p></li> |
1057 |
</p></li> |
1080 |
</ol> |
1058 |
</ol> |
1081 |
</fieldset> <!-- /.brief --> |
1059 |
</fieldset> <!-- /.brief --> |
1082 |
|
1060 |
|
1083 |
<fieldset class="brief"> |
1061 |
<fieldset class="brief"> |
1084 |
<h4 class="local_collapse"><a href="#">Suggestion information <span class="caret"></span></a></h4> |
1062 |
<h4 class="local_collapse"><a href="#">Suggestion information</a></h4> |
1085 |
<ol> |
1063 |
<ol> |
1086 |
<li> |
1064 |
<li> |
1087 |
<p for="archived" style="display: inline;">Include archived: |
1065 |
<p for="archived" style="display: inline;">Include archived: |
Lines 1089-1096
Link Here
|
1089 |
<input type="checkbox" id="archived" name="filter_archived" checked="checked" title="Include archived suggestions in the search" /> |
1067 |
<input type="checkbox" id="archived" name="filter_archived" checked="checked" title="Include archived suggestions in the search" /> |
1090 |
[% ELSE %] |
1068 |
[% ELSE %] |
1091 |
<input type="checkbox" id="archived" name="filter_archived" title="Include archived suggestions in the search" /> |
1069 |
<input type="checkbox" id="archived" name="filter_archived" title="Include archived suggestions in the search" /> |
1092 |
[% END %]</p> |
1070 |
[% END %] |
1093 |
</li> |
1071 |
</p></li> |
1094 |
<li> |
1072 |
<li> |
1095 |
<p for="STATUS[% loop.index | html %]"> Status: |
1073 |
<p for="STATUS[% loop.index | html %]"> Status: |
1096 |
<select name="STATUS" id="STATUS[% loop.index | html %]"> |
1074 |
<select name="STATUS" id="STATUS[% loop.index | html %]"> |
Lines 1146-1153
Link Here
|
1146 |
<option value="[% suggestedby_loo.code | html %]">[% suggestedby_loo.desc | html %]</option> |
1124 |
<option value="[% suggestedby_loo.code | html %]">[% suggestedby_loo.desc | html %]</option> |
1147 |
[% END %] |
1125 |
[% END %] |
1148 |
[% END %] |
1126 |
[% END %] |
1149 |
</select></p> |
1127 |
</select> |
1150 |
</li> |
1128 |
</p></li> |
1151 |
<li> |
1129 |
<li> |
1152 |
<p for="suggesteddate_from">Suggested date from: |
1130 |
<p for="suggesteddate_from">Suggested date from: |
1153 |
<input type="text" id="suggesteddate_from" size="10" name="suggesteddate_from" value="[% suggesteddate_from | html %]" data-date_to="suggesteddate_to" class="flatpickr" /> |
1131 |
<input type="text" id="suggesteddate_from" size="10" name="suggesteddate_from" value="[% suggesteddate_from | html %]" data-date_to="suggesteddate_to" class="flatpickr" /> |
Lines 1188-1195
Link Here
|
1188 |
<option value="[% acceptedby_loo.code | html %]">[% acceptedby_loo.desc | html %]</option> |
1166 |
<option value="[% acceptedby_loo.code | html %]">[% acceptedby_loo.desc | html %]</option> |
1189 |
[% END %] |
1167 |
[% END %] |
1190 |
[% END %] |
1168 |
[% END %] |
1191 |
</select> |
1169 |
</select></p> |
1192 |
</p></li> |
1170 |
</li> |
1193 |
<li> |
1171 |
<li> |
1194 |
<p for="accepteddate_from">Accepted date from: |
1172 |
<p for="accepteddate_from">Accepted date from: |
1195 |
<input type="text" id="accepteddate_from" size="10" name="accepteddate_from" value="[% accepteddate_from | html %]" data-date_to="accepteddate_to" class="flatpickr" /> |
1173 |
<input type="text" id="accepteddate_from" size="10" name="accepteddate_from" value="[% accepteddate_from | html %]" data-date_to="accepteddate_to" class="flatpickr" /> |
Lines 1199-1212
Link Here
|
1199 |
<input type="text" id="accepteddate_to" size="10" name="accepteddate_to" value="[% accepteddate_to | html %]" class="flatpickr" /> |
1177 |
<input type="text" id="accepteddate_to" size="10" name="accepteddate_to" value="[% accepteddate_to | html %]" class="flatpickr" /> |
1200 |
</p></li> |
1178 |
</p></li> |
1201 |
<li> |
1179 |
<li> |
1202 |
<input class="principal" type="submit" value="Go" /> |
1180 |
<input type="submit" class="principal" value="Go" /> |
1203 |
</li> |
1181 |
</li> |
1204 |
</ol> |
1182 |
</ol> |
1205 |
</fieldset> |
1183 |
</fieldset> |
1206 |
|
1184 |
|
1207 |
<fieldset class="brief"> |
1185 |
<fieldset class="brief"> |
1208 |
<h4 class="local_collapse"> |
1186 |
<h4 class="local_collapse"> |
1209 |
<a href="#">Acquisition information <span class="caret"></span></a> |
1187 |
<a href="#">Acquisition information</a> |
1210 |
</h4> |
1188 |
</h4> |
1211 |
<ol> |
1189 |
<ol> |
1212 |
<li> |
1190 |
<li> |
Lines 1228-1234
Link Here
|
1228 |
</select></p> |
1206 |
</select></p> |
1229 |
</li> |
1207 |
</li> |
1230 |
<li> |
1208 |
<li> |
1231 |
<input class="principal" type="submit" value="Go" /> |
1209 |
<input type="submit" class="principal" value="Go" /> |
1232 |
</li> |
1210 |
</li> |
1233 |
</ol> |
1211 |
</ol> |
1234 |
</fieldset> |
1212 |
</fieldset> |
Lines 1236-1242
Link Here
|
1236 |
</form> <!-- /suggestionsfilter --> |
1214 |
</form> <!-- /suggestionsfilter --> |
1237 |
|
1215 |
|
1238 |
[% INCLUDE 'acquisitions-menu.inc' %] |
1216 |
[% INCLUDE 'acquisitions-menu.inc' %] |
1239 |
</div> |
1217 |
|
1240 |
</aside> |
1218 |
</aside> |
1241 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
1219 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
1242 |
[% END # /UNLESS ( op == 'show' ) %] |
1220 |
[% END # /UNLESS ( op == 'show' ) %] |
Lines 1252-1260
Link Here
|
1252 |
var tab = ''; |
1230 |
var tab = ''; |
1253 |
function editManagerPopup(selected_tab) { |
1231 |
function editManagerPopup(selected_tab) { |
1254 |
tab = selected_tab; |
1232 |
tab = selected_tab; |
1255 |
window.open("/cgi-bin/koha/members/search.pl?columns=cardnumber,name,branch,category,action&selection_type=select&callback=select_manager&filter=suggestions_managers", |
1233 |
window.open("/cgi-bin/koha/suggestion/add_user_search.pl?selection_type=select&callback=select_manager&permissions=suggestions.suggestions_manage", |
1256 |
'PatronPopup', |
1234 |
'PatronPopup', |
1257 |
'width=1024,height=768,scrollbars=yes,toolbar=no,' |
1235 |
'width=740,height=450,location=yes,toolbar=no,' |
1258 |
+ 'scrollbars=yes,resize=yes' |
1236 |
+ 'scrollbars=yes,resize=yes' |
1259 |
); |
1237 |
); |
1260 |
} |
1238 |
} |
Lines 1289-1297
Link Here
|
1289 |
} |
1267 |
} |
1290 |
|
1268 |
|
1291 |
function editSuggesterPopup() { |
1269 |
function editSuggesterPopup() { |
1292 |
window.open("/cgi-bin/koha/members/search.pl?columns=cardnumber,name,branch,category,action&selection_type=select&callback=select_suggester", |
1270 |
window.open("/cgi-bin/koha/suggestion/add_user_search.pl?selection_type=select&callback=select_suggester", |
1293 |
'PatronPopup', |
1271 |
'PatronPopup', |
1294 |
'width=1024,height=768,scrollbars=yes,toolbar=no,' |
1272 |
'width=740,height=450,location=yes,toolbar=no,' |
1295 |
+ 'scrollbars=yes,resize=yes' |
1273 |
+ 'scrollbars=yes,resize=yes' |
1296 |
); |
1274 |
); |
1297 |
} |
1275 |
} |
Lines 1337-1352
Link Here
|
1337 |
[% INCLUDE 'columns_settings.inc' %] |
1315 |
[% INCLUDE 'columns_settings.inc' %] |
1338 |
<script> |
1316 |
<script> |
1339 |
$(document).ready(function() { |
1317 |
$(document).ready(function() { |
1340 |
if( $("#suggestiontabs .tab-pane.active").length < 1 ){ |
1318 |
$('#suggestiontabs').tabs(); |
1341 |
$("#suggestiontabs a:first").tab("show"); |
1319 |
|
1342 |
} |
1320 |
columns_settings = [% TablesSettings.GetColumns( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %] |
1343 |
table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %] |
|
|
1344 |
[% FOREACH suggestion IN suggestions %] |
1321 |
[% FOREACH suggestion IN suggestions %] |
1345 |
[% IF ( suggestion.suggestions_loop ) %] |
1322 |
[% IF ( suggestion.suggestions_loop ) %] |
1346 |
KohaTable("table_[% loop.count| html %]", { |
1323 |
KohaTable("table_[% loop.count| html %]", { |
1347 |
"sorting": [[ 3, "asc" ]], |
1324 |
"sorting": [[ 3, "asc" ]], |
1348 |
"autoWidth": false, |
1325 |
"autoWidth": false, |
1349 |
}, table_settings ); |
1326 |
}, columns_settings ); |
1350 |
[% END %] |
1327 |
[% END %] |
1351 |
[% END %] |
1328 |
[% END %] |
1352 |
|
1329 |
|