| 
      
            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-721
          
      
      
        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.size| html %])  | 
          721 | 
                                      ([% suggestion.suggestions.size| html %])  | 
        
  
    | 
      
            Lines 723-729
          
      
      
        Link Here
      
     | 
  
        
          | 723 | 
           | 
          723 | 
           | 
        
        
          | 724 | 
                                  [% END # /FOREACH suggestion %]  | 
          724 | 
                                  [% END # /FOREACH suggestion %]  | 
        
        
          | 725 | 
                              </ul> <!-- /.ui-tabs-nav -->  | 
          725 | 
                              </ul> <!-- /.ui-tabs-nav -->  | 
        
            
              | 726 | 
                                  <div class="tab-content">  | 
               | 
               | 
            
        
          | 727 | 
                      [% END # /UNLESS notabs %]  | 
          726 | 
                      [% END # /UNLESS notabs %]  | 
        
        
          | 728 | 
           | 
          727 | 
           | 
        
        
          | 729 | 
                          [% FOREACH suggestion IN suggestions %]  | 
          728 | 
                          [% FOREACH suggestion IN suggestions %]  | 
        
  
    | 
      
            Lines 736-746
          
      
      
        Link Here
      
     | 
  
        
          | 736 | 
           | 
          735 | 
           | 
        
        
          | 737 | 
                                      [% IF suggestion.suggestions.size %]  | 
          736 | 
                                      [% IF suggestion.suggestions.size %]  | 
        
        
          | 738 | 
                                          <p>  | 
          737 | 
                                          <p>  | 
        
          
            
              | 739 | 
                                                  <a class="checkall" id="lientype" href="#">Check all</a> | <a class="uncheckall" id="lientype" href="#">Uncheck all</a>  | 
              738 | 
                                                  <a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a>  | 
            
        
          | 740 | 
                                          </p>  | 
          739 | 
                                          </p>  | 
        
        
          | 741 | 
           | 
          740 | 
           | 
        
          
            
              | 742 | 
                                              <table id="table_[% loop.count | html %]" class="sorted">  | 
              741 | 
                                          <table id="table_[% loop.count | html %]" class="sorted">  | 
            
            
              | 743 | 
                                                  <thead>  | 
              742 | 
                                              <thead>  | 
            
            
               | 
               | 
              743 | 
                                                  <tr>  | 
            
            
              | 744 | 
                                                      <th class="NoSort noExport"> </th>  | 
            
            
              | 745 | 
                                                      <th class="anti-the">Suggestion</th>  | 
            
            
              | 746 | 
                                                      <th>Suggested by</th>  | 
            
            
              | 747 | 
                                                      <th>Suggested on</th>  | 
            
            
              | 748 | 
                                                      <th>Managed by</th>  | 
            
            
              | 749 | 
                                                      <th>Managed on</th>  | 
            
            
              | 750 | 
                                                      <th>Last modification by</th>  | 
            
            
              | 751 | 
                                                      <th>Last modification on</th>  | 
            
            
              | 752 | 
                                                      <th>Last updated</th>  | 
            
            
              | 753 | 
                                                      <th>Library</th>  | 
            
            
              | 754 | 
                                                      <th>Fund</th>  | 
            
            
              | 755 | 
                                                      <th>Status</th>  | 
            
            
              | 756 | 
                                                      <th class="NoSort noExport"> </th>  | 
            
            
              | 757 | 
                                                  </tr>  | 
            
            
              | 758 | 
                                              </thead>  | 
            
            
              | 759 | 
                                              <tbody>  | 
            
            
              | 760 | 
                                                  [% FOREACH suggestions_loo IN suggestion.suggestions_loop %]  | 
            
        
          | 744 | 
                                                  <tr>  | 
          761 | 
                                                  <tr>  | 
        
        
          | 745 | 
                                                      <td>  | 
          762 | 
                                                      <td>  | 
        
        
          | 746 | 
                                                          <input type="checkbox" name="suggestionid" value="[% suggestions_loo.suggestionid | html %]" />  | 
          763 | 
                                                          <input type="checkbox" name="suggestionid" value="[% suggestions_loo.suggestionid | html %]" />  | 
        
  
    | 
      
            Lines 834-840
          
      
      
        Link Here
      
     | 
  
        
          | 834 | 
                                                      </td>  | 
          851 | 
                                                      </td>  | 
        
        
          | 835 | 
                                                      <td class="actions">  | 
          852 | 
                                                      <td class="actions">  | 
        
        
          | 836 | 
                                                          <div class="btn-group dropup">  | 
          853 | 
                                                          <div class="btn-group dropup">  | 
        
          
            
              | 837 | 
                                                                  <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>  | 
              854 | 
                                                                  <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>  | 
            
        
          | 838 | 
                                                              <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% suggestions_loo.suggestionid | html %]">  | 
          855 | 
                                                              <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% suggestions_loo.suggestionid | html %]">  | 
        
        
          | 839 | 
                                                                  <li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li>  | 
          856 | 
                                                                  <li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li>  | 
        
        
          | 840 | 
                                                                  [% UNLESS suggestions_loo.archived %]  | 
          857 | 
                                                                  [% UNLESS suggestions_loo.archived %]  | 
        
  
    | 
      
            Lines 946-952
          
      
      
        Link Here
      
     | 
  
        
          | 946 | 
                                                          </td>  | 
          963 | 
                                                          </td>  | 
        
        
          | 947 | 
                                                          <td class="actions">  | 
          964 | 
                                                          <td class="actions">  | 
        
        
          | 948 | 
                                                              <div class="btn-group dropup">  | 
          965 | 
                                                              <div class="btn-group dropup">  | 
        
          
            
              | 949 | 
                                                                      <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>  | 
              966 | 
                                                                      <a class="btn btn-default btn-xs" id="lientype" 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="lientype" id="more_actions_[% s.suggestionid | html %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a>  | 
            
        
          | 950 | 
                                                                  <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% s.suggestionid | html %]">  | 
          967 | 
                                                                  <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% s.suggestionid | html %]">  | 
        
        
          | 951 | 
                                                                      <li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li>  | 
          968 | 
                                                                      <li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% s.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li>  | 
        
        
          | 952 | 
                                                                      [% UNLESS s.archived %]  | 
          969 | 
                                                                      [% UNLESS s.archived %]  | 
        
  
    | 
      
            Lines 977-1015
          
      
      
        Link Here
      
     | 
  
        
          | 977 | 
                                                                  <option value="ASKED">Pending</option>  | 
          994 | 
                                                                  <option value="ASKED">Pending</option>  | 
        
        
          | 978 | 
                                                              [% END %]  | 
          995 | 
                                                              [% END %]  | 
        
        
          | 979 | 
           | 
          996 | 
           | 
        
          
            
              | 980 | 
                                                                  [% IF (statusselected_ACCEPTED ) %]  | 
              997 | 
                                                              [% IF ( statusselected_REJECTED ) %]  | 
            
            
              | 981 | 
                                                                      <option value="ACCEPTED" selected="selected">Accepted</option>  | 
              998 | 
                                                                  <option value="REJECTED" selected="selected">Rejected</option>  | 
            
            
              | 982 | 
                                                                  [% ELSE %]  | 
              999 | 
                                                              [% ELSE %]  | 
            
            
              | 983 | 
                                                                      <option value="ACCEPTED">Accepted</option>  | 
              1000 | 
                                                                  <option value="REJECTED">Rejected</option>  | 
            
            
              | 984 | 
                                                                  [% END %]  | 
              1001 | 
                                                              [% END %]  | 
            
        
          | 985 | 
           | 
          1002 | 
           | 
        
          
            
              | 986 | 
                                                                  [% IF (statusselected_CHECKED ) %]  | 
              1003 | 
                                                              [% IF ( statusselected_ORDERED ) %]  | 
            
            
              | 987 | 
                                                                      <option value="CHECKED" selected="selected">Checked</option>  | 
              1004 | 
                                                                  <option value="ORDERED" selected="selected">Ordered</option>  | 
            
            
              | 988 | 
                                                                  [% ELSE %]  | 
              1005 | 
                                                              [% ELSE %]  | 
            
            
              | 989 | 
                                                                      <option value="CHECKED">Checked</option>  | 
              1006 | 
                                                                  <option value="ORDERED">Ordered</option>  | 
            
            
              | 990 | 
                                                                  [% END %]  | 
              1007 | 
                                                              [% END %]  | 
            
        
          | 991 | 
           | 
          1008 | 
           | 
        
          
            
              | 992 | 
                                                                  [% IF ( statusselected_REJECTED ) %]  | 
              1009 | 
                                                              [% FOREACH s IN SuggestionStatuses %]  | 
            
            
              | 993 | 
                                                                      <option value="REJECTED" selected="selected">Rejected</option>  | 
              1010 | 
                                                                  <option value="[% s.authorised_value | html %]">[% s.lib | html %]</option>  | 
            
            
              | 994 | 
                                                                  [% ELSE %]  | 
              1011 | 
                                                              [% END %]  | 
            
            
              | 995 | 
                                                                      <option value="REJECTED">Rejected</option>  | 
              1012 | 
                                                          </select>  | 
            
            
              | 996 | 
                                                                  [% END %]  | 
               | 
               | 
            
        
          | 997 | 
           | 
          1013 | 
           | 
        
          
            
              | 998 | 
                                                                  [% IF ( statusselected_ORDERED ) %]  | 
              1014 | 
                                                          <label for="choosereason[% loop.index | html %]">with this reason:</label>  | 
            
            
              | 999 | 
                                                                      <option value="ORDERED" selected="selected">Ordered</option>  | 
              1015 | 
                                                          <select name="reason" id="choosereason[% loop.index | html %]">  | 
            
            
              | 1000 | 
                                                                  [% ELSE %]  | 
              1016 | 
                                                              <option value=""> -- Choose a reason -- </option>  | 
            
            
              | 1001 | 
                                                                      <option value="ORDERED">Ordered</option>  | 
              1017 | 
                                                              [% FOREACH reasonsloo IN suggestion.reasonsloop %]  | 
            
            
              | 1002 | 
                                                                  [% END %]  | 
              1018 | 
                                                                  <option value="[% reasonsloo.lib | html %]">[% reasonsloo.lib | html %]</option>  | 
            
            
               | 
               | 
              1019 | 
                                                              [% END %]  | 
            
            
              | 1020 | 
                                                              <option value="other">Others...</option>  | 
            
            
              | 1021 | 
                                                          </select>  | 
            
        
          | 1003 | 
           | 
          1022 | 
           | 
        
          
            
              | 1004 | 
                                                                  [% FOREACH s IN SuggestionStatuses %]  | 
              1023 | 
                                                          <span class="other_reason">  | 
            
            
              | 1005 | 
                                                                      <option value="[% s.authorised_value | html %]">[% s.lib | html %]</option>  | 
              1024 | 
                                                              <input type="text" size="31" name="other_reason" placeholder="please note your reason here..." />  | 
            
            
              | 1006 | 
                                                                  [% END %]  | 
              1025 | 
                                                              <a href="#" class="cancel_note">Cancel</a>  | 
            
            
              | 1007 | 
                                                              </select>  | 
              1026 | 
                                                          </span>  | 
            
            
               | 
               | 
              1027 | 
                                                      </div>  | 
            
        
          | 1008 | 
           | 
          1028 | 
           | 
        
        
          | 1009 | 
                                                  <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />  | 
          1029 | 
                                                  <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />  | 
        
        
          | 1010 | 
                                                  <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" />  | 
          1030 | 
                                                  <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" />  | 
        
        
          | 1011 | 
                                                  <fieldset class="action">  | 
          1031 | 
                                                  <fieldset class="action">  | 
        
          
            
              | 1012 | 
                                                          <button type="submit" class="btn btn-default btn-xs" id="lientype" value="update_status">Submit</button>  | 
              1032 | 
                                                          <button type="submit" class="btn btn-default btn-xs principal" value="update_status">Submit</button>  | 
            
        
          | 1013 | 
                                                  </fieldset>  | 
          1033 | 
                                                  </fieldset>  | 
        
        
          | 1014 | 
                                              </fieldset>  | 
          1034 | 
                                              </fieldset>  | 
        
        
          | 1015 | 
                                          </div> <!-- /.col-sm-4 -->  | 
          1035 | 
                                          </div> <!-- /.col-sm-4 -->  | 
        
  
    | 
      
            Lines 1023-1029
          
      
      
        Link Here
      
     | 
  
        
          | 1023 | 
                                                  <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />  | 
          1043 | 
                                                  <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />  | 
        
        
          | 1024 | 
                                                  <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" />  | 
          1044 | 
                                                  <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" />  | 
        
        
          | 1025 | 
                                                  <fieldset class="action">  | 
          1045 | 
                                                  <fieldset class="action">  | 
        
          
            
              | 1026 | 
                                                          <button type="submit" class="btn btn-default btn-xs" id="lientype" value="update_itemtype">Submit</button>  | 
              1046 | 
                                                          <button type="submit" class="btn btn-default btn-xs principal" value="update_itemtype">Submit</button>  | 
            
        
          | 1027 | 
                                                  </fieldset>  | 
          1047 | 
                                                  </fieldset>  | 
        
        
          | 1028 | 
                                              </fieldset>  | 
          1048 | 
                                              </fieldset>  | 
        
        
          | 1029 | 
                                          </div> <!-- /.col-sm-4 -->  | 
          1049 | 
                                          </div> <!-- /.col-sm-4 -->  | 
        
  
    | 
      
            Lines 1031-1043
          
      
      
        Link Here
      
     | 
  
        
          | 1031 | 
                                          <div class="col-sm-2">  | 
          1051 | 
                                          <div class="col-sm-2">  | 
        
        
          | 1032 | 
                                              <fieldset>  | 
          1052 | 
                                              <fieldset>  | 
        
        
          | 1033 | 
                                                  <span class="label">Update manager</span><br/>  | 
          1053 | 
                                                  <span class="label">Update manager</span><br/>  | 
        
          
            
              | 1034 | 
                                                      <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>  | 
              1054 | 
                                                      <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>  | 
            
        
          | 1035 | 
                                                  <span id="managedby_name[% loop.count | html %]"></span>  | 
          1055 | 
                                                  <span id="managedby_name[% loop.count | html %]"></span>  | 
        
        
          | 1036 | 
                                                  <input type="hidden" name="suggestion_managedby" id="managedby[% loop.count | html %]" value="[% logged_in_user.borrowernumber | html %]" />  | 
          1056 | 
                                                  <input type="hidden" name="suggestion_managedby" id="managedby[% loop.count | html %]" value="[% logged_in_user.borrowernumber | html %]" />  | 
        
        
          | 1037 | 
                                                  <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />  | 
          1057 | 
                                                  <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />  | 
        
        
          | 1038 | 
                                                  <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" />  | 
          1058 | 
                                                  <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" />  | 
        
        
          | 1039 | 
                                                  <fieldset class="action">  | 
          1059 | 
                                                  <fieldset class="action">  | 
        
          
            
              | 1040 | 
                                                          <button type="submit" class="btn btn-default btn-xs" id="lientype" value="update_manager">Submit</button>  | 
              1060 | 
                                                          <button type="submit" class="btn btn-default btn-xs principal" value="update_manager">Submit</button>  | 
            
        
          | 1041 | 
                                                  </fieldset>  | 
          1061 | 
                                                  </fieldset>  | 
        
        
          | 1042 | 
                                              </fieldset>  | 
          1062 | 
                                              </fieldset>  | 
        
        
          | 1043 | 
                                          </div> <!-- /.col-sm-2 -->  | 
          1063 | 
                                          </div> <!-- /.col-sm-2 -->  | 
        
  
    | 
      
            Lines 1048-1069
          
      
      
        Link Here
      
     | 
  
        
          | 1048 | 
                                                  <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />  | 
          1068 | 
                                                  <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />  | 
        
        
          | 1049 | 
                                                  <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" />  | 
          1069 | 
                                                  <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" />  | 
        
        
          | 1050 | 
                                                  <fieldset class="action">  | 
          1070 | 
                                                  <fieldset class="action">  | 
        
            
               | 
               | 
              1071 | 
              <<<<<<< HEAD  | 
            
        
          | 1051 | 
                                                      <button type="submit" class="btn btn-default btn-xs" id="lientype" value="delete">Delete</button>  | 
          1072 | 
                                                      <button type="submit" class="btn btn-default btn-xs" id="lientype" value="delete">Delete</button>  | 
        
        
          | 1052 | 
                                                  </fieldset>  | 
          1073 | 
                                                  </fieldset>  | 
        
        
          | 1053 | 
                                              </div> <!-- /.col-sm-2 -->  | 
          1074 | 
                                              </div> <!-- /.col-sm-2 -->  | 
        
        
          | 1054 | 
                                          </div> <!-- /.row -->  | 
          1075 | 
                                          </div> <!-- /.row -->  | 
        
            
               | 
               | 
              1076 | 
              =======  | 
            
            
              | 1077 | 
                                                          <button type="submit" class="btn btn-default btn-xs cancel" value="delete">Delete</button>  | 
            
            
              | 1078 | 
                                                      </fieldset>  | 
            
            
              | 1079 | 
                                                  </fieldset>  | 
            
            
              | 1080 | 
                                              </div> <!-- /.col-sm-2 -->  | 
            
            
              | 1081 | 
                                          </div> <!-- /.row -->  | 
            
            
              | 1082 | 
              >>>>>>> Bug 30952: update patron and suggestion  | 
            
        
          | 1055 | 
           | 
          1083 | 
           | 
        
          
            
              | 1056 | 
                                          [% ELSE %]  | 
              1084 | 
                                      [% ELSE %]  | 
            
            
              | 1057 | 
                                              <strong>No results.</strong>  | 
              1085 | 
                                          <strong>No results.</strong>  | 
            
            
              | 1058 | 
                                          [% END # /IF ( suggestion.suggestions_loop ) %]  | 
              1086 | 
                                      [% END # /IF ( suggestion.suggestions_loop ) %]  | 
            
            
              | 1059 | 
                                      </form> <!-- /.update_suggestions -->  | 
              1087 | 
                                  </form> <!-- /.update_suggestions -->  | 
            
            
              | 1060 | 
                                  </div> <!-- /#[% suggestion.suggestiontype | html %] -->  | 
              1088 | 
                              </div> <!-- /#[% suggestion.suggestiontype | html %] -->  | 
            
            
              | 1061 | 
                              [% END # /FOREACH suggestion %]  | 
              1089 | 
                          [% END # /FOREACH suggestion %]  | 
            
        
          | 1062 | 
                      [% UNLESS ( notabs ) %]  | 
          1090 | 
                      [% UNLESS ( notabs ) %]  | 
        
            
              | 1063 | 
                          </fieldset>  | 
               | 
               | 
            
        
          | 1064 | 
                          </div> <!-- /.notabs -->  | 
          1091 | 
                          </div> <!-- /.notabs -->  | 
        
        
          | 1065 | 
                      [% END # /UNLESS notabs %]  | 
          1092 | 
                      [% END # /UNLESS notabs %]  | 
        
        
          | 1066 | 
                  [% END # /IF op == 'else' %]  | 
          1093 | 
                  [% END # /IF op == 'else' %]  | 
        
            
               | 
               | 
              1094 | 
                      </div>  | 
            
        
          | 1067 | 
           | 
          1095 | 
           | 
        
        
          | 1068 | 
                  [% UNLESS op == 'save' %]  | 
          1096 | 
                  [% UNLESS op == 'save' %]  | 
        
        
          | 1069 | 
                      [% UNLESS ( op == 'show' ) %]  | 
          1097 | 
                      [% UNLESS ( op == 'show' ) %]  | 
        
  
    | 
      
            Lines 1071-1077
          
      
      
        Link Here
      
     | 
  
        
          | 1071 | 
           | 
          1099 | 
           | 
        
        
          | 1072 | 
                          <div class="col-sm-2 col-sm-pull-10">  | 
          1100 | 
                          <div class="col-sm-2 col-sm-pull-10">  | 
        
        
          | 1073 | 
                              <aside>  | 
          1101 | 
                              <aside>  | 
        
            
              | 1074 | 
                                  <div id="filters">  | 
               | 
               | 
            
        
          | 1075 | 
                                  <form name="suggestionfilter" action="suggestion.pl" method="get">  | 
          1102 | 
                                  <form name="suggestionfilter" action="suggestion.pl" method="get">  | 
        
        
          | 1076 | 
                                      <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />  | 
          1103 | 
                                      <input type="hidden" name="branchcode" value="[% branchfilter | html %]" />  | 
        
        
          | 1077 | 
                                      <fieldset class="brief">  | 
          1104 | 
                                      <fieldset class="brief">  | 
        
  
    | 
      
            Lines 1104-1111
          
      
      
        Link Here
      
     | 
  
        
          | 1104 | 
                                                      [% ELSE %]  | 
          1131 | 
                                                      [% ELSE %]  | 
        
        
          | 1105 | 
                                                          <option value="acceptedby">Accepted by</option>  | 
          1132 | 
                                                          <option value="acceptedby">Accepted by</option>  | 
        
        
          | 1106 | 
                                                      [% END %]  | 
          1133 | 
                                                      [% END %]  | 
        
          
            
              | 1107 | 
                                                      </select>  | 
              1134 | 
                                                      </select></p>  | 
            
            
              | 1108 | 
                                                      <input class="principal" type="submit" value="Go" /></p>  | 
              1135 | 
                                                      <input type="submit" class="principal" value="Go" />  | 
            
        
          | 1109 | 
                                              </li>  | 
          1136 | 
                                              </li>  | 
        
        
          | 1110 | 
                                          </ol>  | 
          1137 | 
                                          </ol>  | 
        
        
          | 1111 | 
                                      </fieldset> <!-- /.brief -->  | 
          1138 | 
                                      </fieldset> <!-- /.brief -->  | 
        
  
    | 
      
            Lines 1114-1120
          
      
      
        Link Here
      
     | 
  
        
          | 1114 | 
           | 
          1141 | 
           | 
        
        
          | 1115 | 
                                      <div id="limits">  | 
          1142 | 
                                      <div id="limits">  | 
        
        
          | 1116 | 
                                          <fieldset class="brief">  | 
          1143 | 
                                          <fieldset class="brief">  | 
        
          
            
              | 1117 | 
                                                  <h4 class="local_collapse"><a href="#">Bibliographic information <span class="caret"></span></a></h4>  | 
              1144 | 
                                                  <h4 class="local_collapse"><a href="#">Bibliographic information</a></h4>  | 
            
        
          | 1118 | 
                                              <ol>  | 
          1145 | 
                                              <ol>  | 
        
        
          | 1119 | 
                                                  <li>  | 
          1146 | 
                                                  <li>  | 
        
        
          | 1120 | 
                                                      <p for="title"> Title:  | 
          1147 | 
                                                      <p for="title"> Title:  | 
        
  
    | 
      
            Lines 1138-1159
          
      
      
        Link Here
      
     | 
  
        
          | 1138 | 
                                                  </li>  | 
          1165 | 
                                                  </li>  | 
        
        
          | 1139 | 
                                                  <li>  | 
          1166 | 
                                                  <li>  | 
        
        
          | 1140 | 
                                                      <p for="collectiontitle"> Collection title:  | 
          1167 | 
                                                      <p for="collectiontitle"> Collection title:  | 
        
          
            
              | 1141 | 
                                                          <input type="text" id="collectiontitle" name="collectiontitle" value="[% collectiontitle | html %]" /></li><li><input class="principal" type="submit" value="Go" />  | 
              1168 | 
                                                          <input type="text" id="collectiontitle" name="collectiontitle" value="[% collectiontitle | html %]" /></li><li><input type="submit" class="principal" value="Go" />  | 
            
        
          | 1142 | 
                                                  </p></li>  | 
          1169 | 
                                                  </p></li>  | 
        
        
          | 1143 | 
                                              </ol>  | 
          1170 | 
                                              </ol>  | 
        
        
          | 1144 | 
                                          </fieldset> <!-- /.brief -->  | 
          1171 | 
                                          </fieldset> <!-- /.brief -->  | 
        
        
          | 1145 | 
           | 
          1172 | 
           | 
        
        
          | 1146 | 
                                          <fieldset class="brief">  | 
          1173 | 
                                          <fieldset class="brief">  | 
        
          
            
              | 1147 | 
                                                  <h4 class="local_collapse"><a href="#">Suggestion information <span class="caret"></span></a></h4>  | 
              1174 | 
                                                  <h4 class="local_collapse"><a href="#">Suggestion information</a></h4>  | 
            
        
          | 1148 | 
                                              <ol>  | 
          1175 | 
                                              <ol>  | 
        
        
          | 1149 | 
                                                  <li>  | 
          1176 | 
                                                  <li>  | 
        
        
          | 1150 | 
                                                      <p for="archived" style="display: inline;">Include archived:  | 
          1177 | 
                                                      <p for="archived" style="display: inline;">Include archived:  | 
        
        
          | 1151 | 
                                                      [% IF filter_archived %]  | 
          1178 | 
                                                      [% IF filter_archived %]  | 
        
        
          | 1152 | 
                                                          <input type="checkbox" id="archived" value="1" name="filter_archived" checked="checked" title="Include archived suggestions in the search" />  | 
          1179 | 
                                                          <input type="checkbox" id="archived" value="1" name="filter_archived" checked="checked" title="Include archived suggestions in the search" />  | 
        
        
          | 1153 | 
                                                      [% ELSE %]  | 
          1180 | 
                                                      [% ELSE %]  | 
        
            
               | 
               | 
              1181 | 
              <<<<<<< HEAD  | 
            
        
          | 1154 | 
                                                          <input type="checkbox" id="archived" value="1" name="filter_archived" title="Include archived suggestions in the search" />  | 
          1182 | 
                                                          <input type="checkbox" id="archived" value="1" name="filter_archived" title="Include archived suggestions in the search" />  | 
        
        
          | 1155 | 
                                                      [% END %]  | 
          1183 | 
                                                      [% END %]  | 
        
        
          | 1156 | 
                                                  </li>  | 
          1184 | 
                                                  </li>  | 
        
            
               | 
               | 
              1185 | 
              =======  | 
            
            
              | 1186 | 
                                                              <input type="checkbox" id="archived" name="filter_archived" title="Include archived suggestions in the search" />  | 
            
            
              | 1187 | 
                                                          [% END %]  | 
            
            
              | 1188 | 
                                                      </p></li>  | 
            
            
              | 1189 | 
              >>>>>>> Bug 30952: update patron and suggestion  | 
            
        
          | 1157 | 
                                                  <li>  | 
          1190 | 
                                                  <li>  | 
        
        
          | 1158 | 
                                                      <p for="STATUS[% loop.index | html %]"> Status:  | 
          1191 | 
                                                      <p for="STATUS[% loop.index | html %]"> Status:  | 
        
        
          | 1159 | 
                                                      <select name="STATUS" id="STATUS[% loop.index | html %]">  | 
          1192 | 
                                                      <select name="STATUS" id="STATUS[% loop.index | html %]">  | 
        
  
    | 
      
            Lines 1209-1216
          
      
      
        Link Here
      
     | 
  
        
          | 1209 | 
                                                                  <option value="[% suggestedby_loo.code | html %]">[% suggestedby_loo.desc | html %]</option>  | 
          1242 | 
                                                                  <option value="[% suggestedby_loo.code | html %]">[% suggestedby_loo.desc | html %]</option>  | 
        
        
          | 1210 | 
                                                              [% END %]  | 
          1243 | 
                                                              [% END %]  | 
        
        
          | 1211 | 
                                                          [% END %]  | 
          1244 | 
                                                          [% END %]  | 
        
          
            
              | 1212 | 
                                                          </select></p>  | 
              1245 | 
                                                          </select>  | 
            
            
              | 1213 | 
                                                      </li>  | 
              1246 | 
                                                      </p></li>  | 
            
        
          | 1214 | 
                                                  <li>  | 
          1247 | 
                                                  <li>  | 
        
        
          | 1215 | 
                                                      <p for="suggesteddate_from">Suggested date from:  | 
          1248 | 
                                                      <p for="suggesteddate_from">Suggested date from:  | 
        
        
          | 1216 | 
                                                      <input type="text" id="suggesteddate_from" size="10" name="suggesteddate_from" value="[% suggesteddate_from | html %]" data-date_to="suggesteddate_to" class="flatpickr" />  | 
          1249 | 
                                                      <input type="text" id="suggesteddate_from" size="10" name="suggesteddate_from" value="[% suggesteddate_from | html %]" data-date_to="suggesteddate_to" class="flatpickr" />  | 
        
  
    | 
      
            Lines 1251-1258
          
      
      
        Link Here
      
     | 
  
        
          | 1251 | 
                                                                  <option value="[% acceptedby_loo.code | html %]">[% acceptedby_loo.desc | html %]</option>  | 
          1284 | 
                                                                  <option value="[% acceptedby_loo.code | html %]">[% acceptedby_loo.desc | html %]</option>  | 
        
        
          | 1252 | 
                                                              [% END %]  | 
          1285 | 
                                                              [% END %]  | 
        
        
          | 1253 | 
                                                          [% END %]  | 
          1286 | 
                                                          [% END %]  | 
        
          
            
              | 1254 | 
                                                          </select>  | 
              1287 | 
                                                          </select></p>  | 
            
            
              | 1255 | 
                                                      </p></li>  | 
              1288 | 
                                                      </li>  | 
            
        
          | 1256 | 
                                                  <li>  | 
          1289 | 
                                                  <li>  | 
        
        
          | 1257 | 
                                                      <p for="accepteddate_from">Accepted date from:  | 
          1290 | 
                                                      <p for="accepteddate_from">Accepted date from:  | 
        
        
          | 1258 | 
                                                      <input type="text" id="accepteddate_from" size="10" name="accepteddate_from" value="[% accepteddate_from | html %]" data-date_to="accepteddate_to" class="flatpickr" />  | 
          1291 | 
                                                      <input type="text" id="accepteddate_from" size="10" name="accepteddate_from" value="[% accepteddate_from | html %]" data-date_to="accepteddate_to" class="flatpickr" />  | 
        
  
    | 
      
            Lines 1262-1275
          
      
      
        Link Here
      
     | 
  
        
          | 1262 | 
                                                      <input type="text" id="accepteddate_to" size="10" name="accepteddate_to" value="[% accepteddate_to | html %]" class="flatpickr" />  | 
          1295 | 
                                                      <input type="text" id="accepteddate_to" size="10" name="accepteddate_to" value="[% accepteddate_to | html %]" class="flatpickr" />  | 
        
        
          | 1263 | 
                                                  </p></li>  | 
          1296 | 
                                                  </p></li>  | 
        
        
          | 1264 | 
                                                  <li>  | 
          1297 | 
                                                  <li>  | 
        
          
            
              | 1265 | 
                                                          <input class="principal" type="submit" value="Go" />  | 
              1298 | 
                                                          <input type="submit" class="principal" value="Go" />  | 
            
        
          | 1266 | 
                                                  </li>  | 
          1299 | 
                                                  </li>  | 
        
        
          | 1267 | 
                                              </ol>  | 
          1300 | 
                                              </ol>  | 
        
        
          | 1268 | 
                                          </fieldset>  | 
          1301 | 
                                          </fieldset>  | 
        
        
          | 1269 | 
           | 
          1302 | 
           | 
        
        
          | 1270 | 
                                          <fieldset class="brief">  | 
          1303 | 
                                          <fieldset class="brief">  | 
        
        
          | 1271 | 
                                              <h4 class="local_collapse">  | 
          1304 | 
                                              <h4 class="local_collapse">  | 
        
          
            
              | 1272 | 
                                                      <a href="#">Acquisition information <span class="caret"></span></a>  | 
              1305 | 
                                                      <a href="#">Acquisition information</a>  | 
            
        
          | 1273 | 
                                              </h4>  | 
          1306 | 
                                              </h4>  | 
        
        
          | 1274 | 
                                              <ol>  | 
          1307 | 
                                              <ol>  | 
        
        
          | 1275 | 
                                                  <li>  | 
          1308 | 
                                                  <li>  | 
        
  
    | 
      
            Lines 1291-1297
          
      
      
        Link Here
      
     | 
  
        
          | 1291 | 
                                                      </select></p>  | 
          1324 | 
                                                      </select></p>  | 
        
        
          | 1292 | 
                                                  </li>  | 
          1325 | 
                                                  </li>  | 
        
        
          | 1293 | 
                                                  <li>  | 
          1326 | 
                                                  <li>  | 
        
          
            
              | 1294 | 
                                                          <input class="principal" type="submit" value="Go" />  | 
              1327 | 
                                                          <input type="submit" class="principal"  value="Go" />  | 
            
        
          | 1295 | 
                                                  </li>  | 
          1328 | 
                                                  </li>  | 
        
        
          | 1296 | 
                                              </ol>  | 
          1329 | 
                                              </ol>  | 
        
        
          | 1297 | 
                                          </fieldset>  | 
          1330 | 
                                          </fieldset>  | 
        
  
    | 
      
            Lines 1299-1305
          
      
      
        Link Here
      
     | 
  
        
          | 1299 | 
                                  </form> <!-- /suggestionsfilter -->  | 
          1332 | 
                                  </form> <!-- /suggestionsfilter -->  | 
        
        
          | 1300 | 
           | 
          1333 | 
           | 
        
        
          | 1301 | 
                                  [% INCLUDE 'acquisitions-menu.inc' %]  | 
          1334 | 
                                  [% INCLUDE 'acquisitions-menu.inc' %]  | 
        
          
            
              | 1302 | 
                                  </div>  | 
              1335 | 
               | 
            
        
          | 1303 | 
                              </aside>  | 
          1336 | 
                              </aside>  | 
        
        
          | 1304 | 
                          </div> <!-- /.col-sm-2.col-sm-pull-10 -->  | 
          1337 | 
                          </div> <!-- /.col-sm-2.col-sm-pull-10 -->  | 
        
        
          | 1305 | 
                      [% END # /UNLESS ( op == 'show' ) %]  | 
          1338 | 
                      [% END # /UNLESS ( op == 'show' ) %]  | 
        
  
    | 
      
            Lines 1315-1323
          
      
      
        Link Here
      
     | 
  
        
          | 1315 | 
                  var tab = '';  | 
          1348 | 
                  var tab = '';  | 
        
        
          | 1316 | 
                  function editManagerPopup(selected_tab) { | 
          1349 | 
                  function editManagerPopup(selected_tab) { | 
        
        
          | 1317 | 
                      tab = selected_tab;  | 
          1350 | 
                      tab = selected_tab;  | 
        
          
            
              | 1318 | 
                          window.open("/cgi-bin/koha/members/search.pl?columns=cardnumber,name,branch,category,action&selection_type=select&callback=select_manager&filter=suggestions_managers", | 
              1351 | 
                          window.open("/cgi-bin/koha/suggestion/add_user_search.pl?selection_type=select&callback=select_manager&permissions=suggestions.suggestions_manage", | 
            
        
          | 1319 | 
                          'PatronPopup',  | 
          1352 | 
                          'PatronPopup',  | 
        
          
            
              | 1320 | 
                              'width=1024,height=768,scrollbars=yes,toolbar=no,'  | 
              1353 | 
                              'width=740,height=450,location=yes,toolbar=no,'  | 
            
        
          | 1321 | 
                          + 'scrollbars=yes,resize=yes'  | 
          1354 | 
                          + 'scrollbars=yes,resize=yes'  | 
        
        
          | 1322 | 
                      );  | 
          1355 | 
                      );  | 
        
        
          | 1323 | 
                  }  | 
          1356 | 
                  }  | 
        
  
    | 
      
            Lines 1352-1360
          
      
      
        Link Here
      
     | 
  
        
          | 1352 | 
                  }  | 
          1385 | 
                  }  | 
        
        
          | 1353 | 
           | 
          1386 | 
           | 
        
        
          | 1354 | 
                  function editSuggesterPopup() { | 
          1387 | 
                  function editSuggesterPopup() { | 
        
          
            
              | 1355 | 
                          window.open("/cgi-bin/koha/members/search.pl?columns=cardnumber,name,branch,category,action&selection_type=select&callback=select_suggester", | 
              1388 | 
                          window.open("/cgi-bin/koha/suggestion/add_user_search.pl?selection_type=select&callback=select_suggester", | 
            
        
          | 1356 | 
                          'PatronPopup',  | 
          1389 | 
                          'PatronPopup',  | 
        
          
            
              | 1357 | 
                              'width=1024,height=768,scrollbars=yes,toolbar=no,'  | 
              1390 | 
                              'width=740,height=450,location=yes,toolbar=no,'  | 
            
        
          | 1358 | 
                          + 'scrollbars=yes,resize=yes'  | 
          1391 | 
                          + 'scrollbars=yes,resize=yes'  | 
        
        
          | 1359 | 
                      );  | 
          1392 | 
                      );  | 
        
        
          | 1360 | 
                  }  | 
          1393 | 
                  }  | 
        
  
    | 
      
            Lines 1400-1416
          
      
      
        Link Here
      
     | 
  
        
          | 1400 | 
                  [% INCLUDE 'columns_settings.inc' %]  | 
          1433 | 
                  [% INCLUDE 'columns_settings.inc' %]  | 
        
        
          | 1401 | 
                  <script>  | 
          1434 | 
                  <script>  | 
        
        
          | 1402 | 
                      $(document).ready(function() { | 
          1435 | 
                      $(document).ready(function() { | 
        
            
               | 
               | 
              1436 | 
              <<<<<<< HEAD  | 
            
        
          | 1403 | 
                          if( $("#suggestiontabs .tab-pane.active").length < 1 ){ | 
          1437 | 
                          if( $("#suggestiontabs .tab-pane.active").length < 1 ){ | 
        
        
          | 1404 | 
                              $("#suggestiontabs a:first").tab("show"); | 
          1438 | 
                              $("#suggestiontabs a:first").tab("show"); | 
        
        
          | 1405 | 
                          }  | 
          1439 | 
                          }  | 
        
        
          | 1406 | 
           | 
          1440 | 
           | 
        
        
          | 1407 | 
                          table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %]  | 
          1441 | 
                          table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %]  | 
        
            
               | 
               | 
              1442 | 
              =======  | 
            
            
              | 1443 | 
                              $('#suggestiontabs').tabs(); | 
            
            
              | 1444 | 
               | 
            
            
              | 1445 | 
                              columns_settings = [% TablesSettings.GetColumns( 'acqui', 'suggestions', 'suggestions', 'json' ) | $raw %]  | 
            
            
              | 1446 | 
              >>>>>>> Bug 30952: update patron and suggestion  | 
            
        
          | 1408 | 
                          [% FOREACH suggestion IN suggestions %]  | 
          1447 | 
                          [% FOREACH suggestion IN suggestions %]  | 
        
        
          | 1409 | 
                              [% IF suggestion.suggestions.size %]  | 
          1448 | 
                              [% IF suggestion.suggestions.size %]  | 
        
        
          | 1410 | 
                                  KohaTable("table_[% loop.count| html %]", { | 
          1449 | 
                                  KohaTable("table_[% loop.count| html %]", { | 
        
        
          | 1411 | 
                                      "sorting": [[ 3, "asc" ]],  | 
          1450 | 
                                      "sorting": [[ 3, "asc" ]],  | 
        
        
          | 1412 | 
                                      "autoWidth": false,  | 
          1451 | 
                                      "autoWidth": false,  | 
        
          
            
              | 1413 | 
                                      }, table_settings );  | 
              1452 | 
                                      }, columns_settings );  | 
            
        
          | 1414 | 
                              [% END %]  | 
          1453 | 
                              [% END %]  | 
        
        
          | 1415 | 
                          [% END %]  | 
          1454 | 
                          [% END %]  | 
        
        
          | 1416 | 
           | 
          1455 | 
           |