| 
      
            Lines 7-217
          
      
      
        Link Here
      
     | 
  
        
          | 7 | 
          </head>  | 
          7 | 
          </head>  | 
        
        
          | 8 | 
           | 
          8 | 
           | 
        
        
          | 9 | 
          <body id="cat_addbooks" class="cat">  | 
          9 | 
          <body id="cat_addbooks" class="cat">  | 
        
          
            
              | 10 | 
              [% INCLUDE 'header.inc' %]  | 
              10 | 
                  [% INCLUDE 'header.inc' %]  | 
            
            
              | 11 | 
              [% INCLUDE 'cataloging-search.inc' %]  | 
              11 | 
                  [% INCLUDE 'cataloging-search.inc' %]  | 
            
        
          | 12 | 
           | 
          12 | 
           | 
        
          
            
              | 13 | 
              <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › Cataloging</div>  | 
              13 | 
                  <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › Cataloging</div>  | 
            
        
          | 14 | 
           | 
          14 | 
           | 
        
          
            
              | 15 | 
              <div class="main container-fluid">  | 
              15 | 
                  <div class="main container-fluid">  | 
            
            
              | 16 | 
                  <div class="row">  | 
              16 | 
                      <div class="row">  | 
            
            
              | 17 | 
                      <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">  | 
              17 | 
                          <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">  | 
            
        
          | 18 | 
           | 
          18 | 
           | 
        
          
            
              | 19 | 
              [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]  | 
              19 | 
                              [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]  | 
            
            
              | 20 | 
                <div id="toolbar" class="btn-toolbar">  | 
              20 | 
                                  <div id="toolbar" class="btn-toolbar">  | 
            
            
              | 21 | 
                      [% IF Koha.Preference( 'EnableAdvancedCatalogingEditor' ) == 1 && CAN_user_editcatalogue_advanced_editor %]  | 
              21 | 
                                      [% IF Koha.Preference( 'EnableAdvancedCatalogingEditor' ) == 1 && CAN_user_editcatalogue_advanced_editor %]  | 
            
            
              | 22 | 
                          <a id="useadvanced" href="/cgi-bin/koha/cataloguing/editor.pl" class="btn btn-default"><i class="fa fa-pencil"></i> Advanced editor</a>  | 
              22 | 
                                          <a id="useadvanced" href="/cgi-bin/koha/cataloguing/editor.pl" class="btn btn-default"><i class="fa fa-pencil"></i> Advanced editor</a>  | 
            
            
              | 23 | 
                      [% END %]  | 
              23 | 
                                      [% END %]  | 
            
            
              | 24 | 
                      <div class="btn-group">  | 
              24 | 
                                      <div class="btn-group">  | 
            
            
              | 25 | 
                          <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New record <span class="caret"></span></button>  | 
              25 | 
                                          <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New record <span class="caret"></span></button>  | 
            
            
              | 26 | 
                          <ul class="dropdown-menu">  | 
              26 | 
                                          <ul class="dropdown-menu">  | 
            
            
              | 27 | 
                              <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=">Default framework</a></li>  | 
              27 | 
                                              <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=">Default framework</a></li>  | 
            
            
              | 28 | 
                              [% FOREACH framework IN frameworks %]  | 
              28 | 
                                              [% FOREACH framework IN frameworks %]  | 
            
            
              | 29 | 
                                  <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=[% framework.frameworkcode | uri %]">[% framework.frameworktext | html %]</a></li>  | 
              29 | 
                                                  <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=[% framework.frameworkcode | uri %]">[% framework.frameworktext | html %]</a></li>  | 
            
            
              | 30 | 
                              [% END %]  | 
              30 | 
                                              [% END %]  | 
            
            
              | 31 | 
                          </ul>  | 
              31 | 
                                          </ul>  | 
            
            
              | 32 | 
                      </div>  | 
              32 | 
                                      </div>  | 
            
            
              | 33 | 
                      [% IF servers.count > 0 %]  | 
              33 | 
                                      [% IF servers.count > 0 %]  | 
            
            
              | 34 | 
                      <div class="btn-group">  | 
              34 | 
                                          <div class="btn-group">  | 
            
            
              | 35 | 
                          <button class="btn btn-default" id="z3950search"><i class="fa fa-search"></i> New from Z39.50/SRU</button>  | 
              35 | 
                                              <button class="btn btn-default" id="z3950search"><i class="fa fa-search"></i> New from Z39.50/SRU</button>  | 
            
            
              | 36 | 
                          <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">  | 
              36 | 
                                              <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">  | 
            
            
              | 37 | 
                              <span class="caret"></span>  | 
              37 | 
                                                  <span class="caret"></span>  | 
            
            
              | 38 | 
                          </button>  | 
              38 | 
                                              </button>  | 
            
            
              | 39 | 
                          <ul class="dropdown-menu">  | 
              39 | 
                                              <ul class="dropdown-menu">  | 
            
            
              | 40 | 
                              <li id="" class="z3950searchFw"><a href="#">Default framework</a></li>  | 
              40 | 
                                                  <li id="" class="z3950searchFw"><a href="#">Default framework</a></li>  | 
            
            
              | 41 | 
                              [% FOREACH framework IN frameworks %]  | 
              41 | 
                                                  [% FOREACH framework IN frameworks %]  | 
            
            
              | 42 | 
                              <li id="[% framework.frameworkcode | html %]" class="z3950searchFw"><a href="#">[% framework.frameworktext | html %]</a></li>  | 
              42 | 
                                                      <li id="[% framework.frameworkcode | html %]" class="z3950searchFw"><a href="#">[% framework.frameworktext | html %]</a></li>  | 
            
            
               | 
               | 
              43 | 
                                                  [% END %]  | 
            
            
              | 44 | 
                                              </ul>  | 
            
            
              | 45 | 
                                          </div>  | 
            
            
              | 46 | 
                                      [% END %]  | 
            
            
              | 47 | 
                                      [% IF ( total ) %]  | 
            
            
              | 48 | 
                                          <div class="btn-group"><button type="submit" class="btn btn-default merge-items"><i class="fa fa-compress"></i> Merge selected</button></div>  | 
            
            
              | 49 | 
                                      [% END %]  | 
            
            
              | 50 | 
                                  </div>  | 
            
        
          | 43 | 
                          [% END %]  | 
          51 | 
                          [% END %]  | 
        
            
              | 44 | 
                          </ul>  | 
               | 
               | 
            
            
              | 45 | 
                      </div>  | 
            
            
              | 46 | 
                      [% END %]  | 
            
            
              | 47 | 
                  [% IF ( total ) %]  | 
            
            
              | 48 | 
                      <div class="btn-group"><button type="submit" class="btn btn-default merge-items"><i class="fa fa-compress"></i> Merge selected</button></div>  | 
            
            
              | 49 | 
                  [% END %]  | 
            
            
              | 50 | 
                </div>  | 
            
            
              | 51 | 
              [% END %]  | 
            
        
          | 52 | 
           | 
          52 | 
           | 
        
          
            
              | 53 | 
                   [% IF ( noitemsfound ) %]  | 
              53 | 
                              [% IF ( noitemsfound ) %]  | 
            
            
              | 54 | 
                        No results found  | 
              54 | 
                                  No results found  | 
            
            
              | 55 | 
                   [% END %]  | 
              55 | 
                              [% END %]  | 
            
        
          | 56 | 
           | 
          56 | 
           | 
        
          
            
              | 57 | 
              [%# display the search results %]  | 
              57 | 
                              [%# display the search results %]  | 
            
        
          | 58 | 
           | 
          58 | 
           | 
        
          
            
              | 59 | 
              [% IF ( total ) %]  | 
              59 | 
                              [% IF ( total ) %]  | 
            
            
              | 60 | 
              <div>  | 
              60 | 
                                  <div>  | 
            
            
              | 61 | 
                  [% total | html %] result(s) found in catalog,  | 
              61 | 
                                      [% total | html %] result(s) found in catalog,  | 
            
            
              | 62 | 
                  <a href="#searchresult-breeding">[% breeding_count | html %] result(s) found in reservoir</a>  | 
              62 | 
                                      <a href="#searchresult-breeding">[% breeding_count | html %] result(s) found in reservoir</a>  | 
            
            
              | 63 | 
              </div>  | 
              63 | 
                                  </div>  | 
            
            
              | 64 | 
              <div class="pages">[% pagination_bar | $raw %]</div>  | 
              64 | 
                                  <div class="pages">[% pagination_bar | $raw %]</div>  | 
            
            
              | 65 | 
              <div class="searchresults">  | 
              65 | 
                                  <div class="searchresults">  | 
            
            
              | 66 | 
                  <table>  | 
              66 | 
                                      <table>  | 
            
            
              | 67 | 
                      <tr>  | 
              67 | 
                                          <tr>  | 
            
            
              | 68 | 
                          <th> </th>  | 
              68 | 
                                              <th> </th>  | 
            
            
              | 69 | 
                          <th>Title</th>  | 
              69 | 
                                              <th>Title</th>  | 
            
            
              | 70 | 
                          <th>Location</th>  | 
              70 | 
                                              <th>Location</th>  | 
            
            
              | 71 | 
                          <th> </th>  | 
              71 | 
                                              <th> </th>  | 
            
            
              | 72 | 
                      </tr>  | 
              72 | 
                                          </tr>  | 
            
            
              | 73 | 
                    [% FOREACH resultsloo IN resultsloop %]  | 
              73 | 
                                          [% FOREACH resultsloo IN resultsloop %]  | 
            
            
              | 74 | 
                      <tr>  | 
              74 | 
                                              <tr>  | 
            
            
              | 75 | 
                          <td><input type="checkbox" class="selection" id="bib[% resultsloo.biblionumber | html %]" name="biblionumber" value="[% resultsloo.biblionumber | html %]" /></td>  | 
              75 | 
                                                  <td><input type="checkbox" class="selection" id="bib[% resultsloo.biblionumber | html %]" name="biblionumber" value="[% resultsloo.biblionumber | html %]" /></td>  | 
            
            
              | 76 | 
                          <td>  | 
              76 | 
                                                  <td>  | 
            
            
              | 77 | 
                              <p>  | 
              77 | 
                                                      <p>  | 
            
            
              | 78 | 
                                  <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% resultsloo.biblionumber | uri %]">[% INCLUDE 'biblio-title.inc' biblio=resultsloo %]</a>  | 
              78 | 
                                                          <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% resultsloo.biblionumber | uri %]">[% INCLUDE 'biblio-title.inc' biblio=resultsloo %]</a>  | 
            
            
              | 79 | 
                              [% IF ( resultsloo.summary ) %]  | 
              79 | 
                                                      </p>  | 
            
            
              | 80 | 
                                  <p>[% resultsloo.summary | html %]</p>  | 
              80 | 
                                                      [% IF ( resultsloo.summary ) %]  | 
            
            
               | 
               | 
              81 | 
                                                          <p>[% resultsloo.summary | html %]</p>  | 
            
            
              | 82 | 
                                                      [% ELSE %]  | 
            
            
              | 83 | 
                                                          <p>  | 
            
            
              | 84 | 
                                                              [% IF ( resultsloo.author ) %]  | 
            
            
              | 85 | 
                                                                  [% resultsloo.author | html %]  | 
            
            
              | 86 | 
                                                              [% ELSE %]  | 
            
            
              | 87 | 
                                                                     | 
            
            
              | 88 | 
                                                              [% END %]  | 
            
            
              | 89 | 
                                                              [% IF ( resultsloo.isbn ) %] - [% resultsloo.isbn | html %] [% END %]  | 
            
            
              | 90 | 
                                                              [% IF ( resultsloo.publicationyear ) %] - [% resultsloo.publicationyear | html %][% END %]  | 
            
            
              | 91 | 
                                                              [% IF ( resultsloo.publishercode ) %]- [% resultsloo.publishercode | html %][% END %]  | 
            
            
              | 92 | 
                                                              [% IF ( resultsloo.copyrightdate ) %] - [% resultsloo.copyrightdate | html %][% END %]  | 
            
            
              | 93 | 
                                                              [% IF ( resultsloo.edition ) %]Edition: [% resultsloo.edition | html %][% END %]  | 
            
            
              | 94 | 
                                                              [% IF ( resultsloo.place ) %] ; [% resultsloo.place | html %][% END %]  | 
            
            
              | 95 | 
                                                              [% IF ( resultsloo.pages ) %] - [% resultsloo.pages | html %][% END %]  | 
            
            
              | 96 | 
                                                              [% IF ( resultsloo.item('size') ) %] ; [% resultsloo.item('size') | html %][% END %] | 
            
            
              | 97 | 
                                                              [% IF ( resultsloo.timestamp ) %] <i>(modified on [% resultsloo.timestamp | html %])</i>[% END %]  | 
            
            
              | 98 | 
                                                          </p>  | 
            
            
              | 99 | 
                                                      [% END %]  | 
            
            
              | 100 | 
                                                  </td>  | 
            
            
              | 101 | 
                                                  <td>  | 
            
            
              | 102 | 
                                                      [% IF ( resultsloo.available_items_loop ) %]  | 
            
            
              | 103 | 
                                                          <span class="available">  | 
            
            
              | 104 | 
                                                              [% FOREACH items_loo IN resultsloo.available_items_loop %]  | 
            
            
              | 105 | 
                                                                  [% items_loo.count | html %] [% items_loo.branchname | html %]  | 
            
            
              | 106 | 
                                                                  [% IF ( items_loo.location ) %]<span class="shelvingloc">[% items_loo.location | html %]</span>[% END %]  | 
            
            
              | 107 | 
                                                                  [% IF ( items_loo.itemcallnumber ) %][% items_loo.itemcallnumber | html %][% END %]  | 
            
            
              | 108 | 
                                                                  [% IF ( items_loo.classification ) %]  | 
            
            
              | 109 | 
                                                                      <a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:[% items_loo.classification |url %]">  | 
            
            
              | 110 | 
                                                                          [% items_loo.classification | html %]  | 
            
            
              | 111 | 
                                                                      </a>  | 
            
            
              | 112 | 
                                                                  [% END %]  | 
            
            
              | 113 | 
                                                                  <br />  | 
            
            
              | 114 | 
                                                              [% END %]  | 
            
            
              | 115 | 
                                                          </span>  | 
            
            
              | 116 | 
                                                      [% END %]  | 
            
            
              | 117 | 
                                                      <span class="unavailable">  | 
            
            
              | 118 | 
                                                          [% IF ( resultsloo.onloancount ) %] Checked out ([% resultsloo.onloancount | html %]),<br /> [% END %]  | 
            
            
              | 119 | 
                                                          [% IF ( resultsloo.withdrawncount ) %] Withdrawn ([% resultsloo.withdrawncount | html %]),<br /> [% END %]  | 
            
            
              | 120 | 
                                                          [% IF ( resultsloo.itemlostcount ) %] Lost ([% resultsloo.itemlostcount | html %])<br />[% END %]  | 
            
            
              | 121 | 
                                                          [% IF ( resultsloo.orderedcount ) %] On order ([% resultsloo.orderedcount | html %])<br/>[% END %]  | 
            
            
              | 122 | 
                                                          [% IF ( resultsloo.notforloancount ) %] Not for loan ([% resultsloo.notforloancount | html %])[% END %]  | 
            
            
              | 123 | 
                                                      </span>  | 
            
            
              | 124 | 
                                                  </td>  | 
            
            
              | 125 | 
                                                  <td>  | 
            
            
              | 126 | 
                                                      <div class="dropup">  | 
            
            
              | 127 | 
                                                          <a class="btn btn-default btn-xs dropdown-toggle" id="cataloguesearchactions[% resultsloo.biblionumber | html %]" role="button" data-toggle="dropdown" href="#">  | 
            
            
              | 128 | 
                                                              Actions <b class="caret"></b>  | 
            
            
              | 129 | 
                                                          </a>  | 
            
            
              | 130 | 
                                                          <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="cataloguesearchactions[% resultsloo.biblionumber | html %]">  | 
            
            
              | 131 | 
                                                              <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% resultsloo.biblionumber | uri %]" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li>  | 
            
            
              | 132 | 
                                                              <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% resultsloo.biblionumber | uri %]" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li>  | 
            
            
              | 133 | 
                                                              [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]  | 
            
            
              | 134 | 
                                                                  <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% resultsloo.biblionumber | uri %]"><i class="fa fa-pencil"></i> Edit biblio</a></li>  | 
            
            
              | 135 | 
                                                              [% END %]  | 
            
            
              | 136 | 
                                                              [% IF ( CAN_user_editcatalogue_edit_items ) %]  | 
            
            
              | 137 | 
                                                                  <li><a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% resultsloo.biblionumber | uri %]"><i class="fa fa-plus"></i> Add/Edit items</a></li>  | 
            
            
              | 138 | 
                                                              [% END %]  | 
            
            
              | 139 | 
                                                          </ul>  | 
            
            
              | 140 | 
                                                      </div>  | 
            
            
              | 141 | 
                                                  </td>  | 
            
            
              | 142 | 
                                              </tr>  | 
            
            
              | 143 | 
                                          [% END %]  | 
            
            
              | 144 | 
                                      </table>  | 
            
            
              | 145 | 
                                      <div class="pages">[% pagination_bar | $raw %]</div>  | 
            
            
              | 146 | 
                                      <hr />  | 
            
            
              | 147 | 
                                  </div>  | 
            
        
          | 81 | 
                          [% ELSE %]  | 
          148 | 
                          [% ELSE %]  | 
        
          
            
              | 82 | 
                                  <p>  | 
              149 | 
                                  [% IF ( query ) %]  | 
            
            
              | 83 | 
                                      [% IF ( resultsloo.author ) %]  | 
              150 | 
                                      [% IF ( error ) %]<div class="dialog alert">[% END %]<b>No results found</b>  | 
            
            
              | 84 | 
                                          [% resultsloo.author | html %]  | 
              151 | 
                                      [% IF ( error ) %]  | 
            
            
              | 85 | 
                                      [% ELSE %]  | 
              152 | 
                                          Error: <span class="error">[% error | html %]</span></div>  | 
            
            
              | 86 | 
                                             | 
               | 
               | 
            
            
              | 87 | 
                                      [% END %]  | 
            
            
              | 88 | 
                             [% IF ( resultsloo.isbn ) %] - [% resultsloo.isbn | html %] [% END %]  | 
            
            
              | 89 | 
                                      [% IF ( resultsloo.publicationyear ) %] - [% resultsloo.publicationyear | html %][% END %]  | 
            
            
              | 90 | 
                                      [% IF ( resultsloo.publishercode ) %]- [% resultsloo.publishercode | html %][% END %]  | 
            
            
              | 91 | 
                                      [% IF ( resultsloo.copyrightdate ) %] - [% resultsloo.copyrightdate | html %][% END %]  | 
            
            
              | 92 | 
                                      [% IF ( resultsloo.edition ) %]Edition: [% resultsloo.edition | html %][% END %]  | 
            
            
              | 93 | 
                                      [% IF ( resultsloo.place ) %] ; [% resultsloo.place | html %][% END %]  | 
            
            
              | 94 | 
                                      [% IF ( resultsloo.pages ) %] - [% resultsloo.pages | html %][% END %]  | 
            
            
              | 95 | 
                                      [% IF ( resultsloo.item('size') ) %] ; [% resultsloo.item('size') | html %][% END %] | 
            
            
              | 96 | 
                                      [% IF ( resultsloo.timestamp ) %] <i>(modified on [% resultsloo.timestamp | html %])</i>[% END %]  | 
            
            
              | 97 | 
                                  </p>  | 
            
            
              | 98 | 
                              [% END %]  | 
            
            
              | 99 | 
                              </td>  | 
            
            
              | 100 | 
                              <td>  | 
            
            
              | 101 | 
                                  [% IF ( resultsloo.available_items_loop ) %]  | 
            
            
              | 102 | 
                                      <span class="available">  | 
            
            
              | 103 | 
                                      [% FOREACH items_loo IN resultsloo.available_items_loop %]  | 
            
            
              | 104 | 
                                          [% items_loo.count | html %] [% items_loo.branchname | html %]  | 
            
            
              | 105 | 
                                          [% IF ( items_loo.location ) %]<span class="shelvingloc">[% items_loo.location | html %]</span>[% END %]  | 
            
            
              | 106 | 
                                          [% IF ( items_loo.itemcallnumber ) %][% items_loo.itemcallnumber | html %][% END %]  | 
            
            
              | 107 | 
                                          [% IF ( items_loo.classification ) %]  | 
            
            
              | 108 | 
                                          <a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:[% items_loo.classification |url %]">  | 
            
            
              | 109 | 
                                              [% items_loo.classification | html %]  | 
            
            
              | 110 | 
                                          </a>  | 
            
        
          | 111 | 
                                  [% END %]  | 
          153 | 
                                  [% END %]  | 
        
            
              | 112 | 
                                          <br />  | 
               | 
               | 
            
            
              | 113 | 
                                      [% END %]  | 
            
            
              | 114 | 
                                      </span>  | 
            
        
          | 115 | 
                              [% END %]  | 
          154 | 
                              [% END %]  | 
        
          
            
              | 116 | 
                                  <span class="unavailable">  | 
              155 | 
                              [% END %]  | 
            
            
              | 117 | 
                                      [% IF ( resultsloo.onloancount ) %] Checked out ([% resultsloo.onloancount | html %]),<br /> [% END %]  | 
               | 
               | 
            
            
              | 118 | 
                                      [% IF ( resultsloo.withdrawncount ) %] Withdrawn ([% resultsloo.withdrawncount | html %]),<br /> [% END %]  | 
            
            
              | 119 | 
                                      [% IF ( resultsloo.itemlostcount ) %] Lost ([% resultsloo.itemlostcount | html %])<br />[% END %]  | 
            
            
              | 120 | 
                                      [% IF ( resultsloo.orderedcount ) %] On order ([% resultsloo.orderedcount | html %])<br/>[% END %]  | 
            
            
              | 121 | 
                                      [% IF ( resultsloo.notforloancount ) %] Not for loan ([% resultsloo.notforloancount | html %])[% END %]  | 
            
            
              | 122 | 
                                  </span>  | 
            
            
              | 123 | 
                              </td>  | 
            
            
              | 124 | 
                              <td>  | 
            
            
              | 125 | 
                                <div class="dropup">  | 
            
            
              | 126 | 
                                  <a class="btn btn-default btn-xs dropdown-toggle" id="cataloguesearchactions[% resultsloo.biblionumber | html %]" role="button" data-toggle="dropdown" href="#">  | 
            
            
              | 127 | 
                                    Actions <b class="caret"></b>  | 
            
            
              | 128 | 
                                  </a>  | 
            
            
              | 129 | 
                                  <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="cataloguesearchactions[% resultsloo.biblionumber | html %]">  | 
            
            
              | 130 | 
                                    <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% resultsloo.biblionumber | uri %]" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li>  | 
            
            
              | 131 | 
                                    <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% resultsloo.biblionumber | uri %]" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li>  | 
            
            
              | 132 | 
                                    [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% resultsloo.biblionumber | uri %]"><i class="fa fa-pencil"></i> Edit biblio</a></li>[% END %]  | 
            
            
              | 133 | 
                                    [% IF ( CAN_user_editcatalogue_edit_items ) %]<li><a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% resultsloo.biblionumber | uri %]"><i class="fa fa-plus"></i> Add/Edit items</a></li>[% END %]  | 
            
            
              | 134 | 
                                  </ul>  | 
            
            
              | 135 | 
                                </div>  | 
            
            
              | 136 | 
                              </td>  | 
            
            
              | 137 | 
                          </tr>  | 
            
            
              | 138 | 
                  [% END %]  | 
            
            
              | 139 | 
                  </table>  | 
            
            
              | 140 | 
                  <div class="pages">[% pagination_bar | $raw %]</div>  | 
            
            
              | 141 | 
                  <hr />  | 
            
            
              | 142 | 
              </div>  | 
            
            
              | 143 | 
              [% ELSE %]  | 
            
            
              | 144 | 
                  [% IF ( query ) %]  | 
            
            
              | 145 | 
                      [% IF ( error ) %]<div class="dialog alert">[% END %]<b>No results found</b>  | 
            
            
              | 146 | 
                      [% IF ( error ) %]  | 
            
            
              | 147 | 
                          Error: <span class="error">[% error | html %]</span></div>  | 
            
            
              | 148 | 
                      [% END %]  | 
            
            
              | 149 | 
                  [% END %]  | 
            
            
              | 150 | 
              [% END %]  | 
            
            
              | 151 | 
               | 
            
            
              | 152 | 
              [% IF ( query ) %]  | 
            
            
              | 153 | 
              <div id="searchresult-breeding">  | 
            
            
              | 154 | 
                  <h3>Biblios in reservoir</h3>  | 
            
            
              | 155 | 
                  [% IF ( breeding_loop ) %]  | 
            
            
              | 156 | 
                      <table>  | 
            
            
              | 157 | 
                          <tr>  | 
            
            
              | 158 | 
                              <th>Title</th>  | 
            
            
              | 159 | 
                              <th>ISBN</th>  | 
            
            
              | 160 | 
                              <th>Date</th>  | 
            
            
              | 161 | 
                              <th>Edition</th>  | 
            
            
              | 162 | 
                              <th>Coming from</th>  | 
            
            
              | 163 | 
                              <th> </th>  | 
            
            
              | 164 | 
                          </tr>  | 
            
            
              | 165 | 
                          [% FOREACH breeding_loo IN breeding_loop %]  | 
            
            
              | 166 | 
                             <tr>  | 
            
            
              | 167 | 
                              <td>[% breeding_loo.title | html %]  | 
            
            
              | 168 | 
                              [% breeding_loo.author | html %]</td>  | 
            
            
              | 169 | 
                              <td>[% breeding_loo.isbn | html %]</td>  | 
            
            
              | 170 | 
                              <td>[% breeding_loo.copyrightdate | html %]</td>  | 
            
            
              | 171 | 
                              <td>[% breeding_loo.edition | html %]</td>  | 
            
            
              | 172 | 
                              <td>[% breeding_loo.file | html %]</td>  | 
            
            
              | 173 | 
                              <td>  | 
            
            
              | 174 | 
                                <div class="dropup">  | 
            
            
              | 175 | 
                                  <a class="btn btn-default btn-xs dropdown-toggle" id="reservoirsearchactions[% breeding_loo.id | html %]" role="button" data-toggle="dropdown" href="#">  | 
            
            
              | 176 | 
                                    Actions <b class="caret"></b>  | 
            
            
              | 177 | 
                                  </a>  | 
            
            
              | 178 | 
                                  <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="reservoirsearchactions[% breeding_loo.id | html %]">  | 
            
            
              | 179 | 
                                    <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.id | uri %]" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li>  | 
            
            
              | 180 | 
                                    <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.id | uri %]" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li>  | 
            
            
              | 181 | 
                                    [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]  | 
            
            
              | 182 | 
                                      <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?breedingid=[% breeding_loo.id | uri %]"><i class="fa fa-plus"></i> Add biblio</a></li>  | 
            
            
              | 183 | 
                                    [% END %]  | 
            
            
              | 184 | 
                                  </ul>  | 
            
            
              | 185 | 
                                </div>  | 
            
            
              | 186 | 
                             </td>  | 
            
            
              | 187 | 
                             </tr>  | 
            
            
              | 188 | 
                          [% END %]  | 
            
            
              | 189 | 
                      </table>  | 
            
            
              | 190 | 
                  [% ELSE %]  | 
            
            
              | 191 | 
                  <p>None</p>  | 
            
            
              | 192 | 
                  [% END %]  | 
            
            
              | 193 | 
              </div>  | 
            
            
              | 194 | 
              [% END %]  | 
            
        
          | 195 | 
           | 
          156 | 
           | 
        
          
            
              | 196 | 
              <div id="dataPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">  | 
              157 | 
                              [% IF ( query ) %]  | 
            
            
              | 197 | 
                  <div class="modal-dialog">  | 
              158 | 
                                  <div id="searchresult-breeding">  | 
            
            
              | 198 | 
                  <div class="modal-content">  | 
              159 | 
                                      <h3>Biblios in reservoir</h3>  | 
            
            
              | 199 | 
                  <div class="modal-header">  | 
              160 | 
                                      [% IF ( breeding_loop ) %]  | 
            
            
              | 200 | 
                      <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>  | 
              161 | 
                                          <table>  | 
            
            
              | 201 | 
                      <h3 id="dataPreviewLabel">Preview</h3>  | 
              162 | 
                                              <tr>  | 
            
            
              | 202 | 
                  </div>  | 
              163 | 
                                                  <th>Title</th>  | 
            
            
              | 203 | 
                  <div class="modal-body">  | 
              164 | 
                                                  <th>ISBN</th>  | 
            
            
              | 204 | 
                      <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>  | 
              165 | 
                                                  <th>Date</th>  | 
            
            
              | 205 | 
                  </div>  | 
              166 | 
                                                  <th>Edition</th>  | 
            
            
              | 206 | 
                  <div class="modal-footer">  | 
              167 | 
                                                  <th>Coming from</th>  | 
            
            
              | 207 | 
                      <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>  | 
              168 | 
                                                  <th> </th>  | 
            
            
              | 208 | 
                  </div>  | 
              169 | 
                                              </tr>  | 
            
            
              | 209 | 
                  </div>  | 
              170 | 
                                              [% FOREACH breeding_loo IN breeding_loop %]  | 
            
            
              | 210 | 
                  </div>  | 
              171 | 
                                                  <tr>  | 
            
            
              | 211 | 
              </div>  | 
              172 | 
                                                      <td>  | 
            
            
               | 
               | 
              173 | 
                                                          [% breeding_loo.title | html %]  | 
            
            
              | 174 | 
                                                          [% breeding_loo.author | html %]  | 
            
            
              | 175 | 
                                                      </td>  | 
            
            
              | 176 | 
                                                      <td>[% breeding_loo.isbn | html %]</td>  | 
            
            
              | 177 | 
                                                      <td>[% breeding_loo.copyrightdate | html %]</td>  | 
            
            
              | 178 | 
                                                      <td>[% breeding_loo.edition | html %]</td>  | 
            
            
              | 179 | 
                                                      <td>[% breeding_loo.file | html %]</td>  | 
            
            
              | 180 | 
                                                      <td>  | 
            
            
              | 181 | 
                                                          <div class="dropup">  | 
            
            
              | 182 | 
                                                              <a class="btn btn-default btn-xs dropdown-toggle" id="reservoirsearchactions[% breeding_loo.id | html %]" role="button" data-toggle="dropdown" href="#">  | 
            
            
              | 183 | 
                                                                  Actions <b class="caret"></b>  | 
            
            
              | 184 | 
                                                              </a>  | 
            
            
              | 185 | 
                                                              <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="reservoirsearchactions[% breeding_loo.id | html %]">  | 
            
            
              | 186 | 
                                                                  <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.id | uri %]" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li>  | 
            
            
              | 187 | 
                                                                  <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.id | uri %]" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li>  | 
            
            
              | 188 | 
                                                                  [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]  | 
            
            
              | 189 | 
                                                                      <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?breedingid=[% breeding_loo.id | uri %]"><i class="fa fa-plus"></i> Add biblio</a></li>  | 
            
            
              | 190 | 
                                                                  [% END %]  | 
            
            
              | 191 | 
                                                              </ul>  | 
            
            
              | 192 | 
                                                          </div>  | 
            
            
              | 193 | 
                                                      </td>  | 
            
            
              | 194 | 
                                                  </tr>  | 
            
            
              | 195 | 
                                              [% END %]  | 
            
            
              | 196 | 
                                          </table>  | 
            
            
              | 197 | 
                                      [% ELSE %]  | 
            
            
              | 198 | 
                                          <p>None</p>  | 
            
            
              | 199 | 
                                      [% END %]  | 
            
            
              | 200 | 
                                  </div>  | 
            
            
              | 201 | 
                              [% END %]  | 
            
        
          | 212 | 
           | 
          202 | 
           | 
        
          
            
              | 213 | 
              </div>  | 
              203 | 
                              <div id="dataPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">  | 
            
            
              | 214 | 
              </div>  | 
              204 | 
                                  <div class="modal-dialog">  | 
            
            
               | 
               | 
              205 | 
                                      <div class="modal-content">  | 
            
            
              | 206 | 
                                          <div class="modal-header">  | 
            
            
              | 207 | 
                                              <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>  | 
            
            
              | 208 | 
                                              <h3 id="dataPreviewLabel">Preview</h3>  | 
            
            
              | 209 | 
                                          </div>  | 
            
            
              | 210 | 
                                          <div class="modal-body">  | 
            
            
              | 211 | 
                                              <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>  | 
            
            
              | 212 | 
                                          </div>  | 
            
            
              | 213 | 
                                          <div class="modal-footer">  | 
            
            
              | 214 | 
                                              <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>  | 
            
            
              | 215 | 
                                          </div>  | 
            
            
              | 216 | 
                                      </div>  | 
            
            
              | 217 | 
                                  </div>  | 
            
            
              | 218 | 
                              </div>  | 
            
            
              | 219 | 
                          </div>  | 
            
            
              | 220 | 
                      </div>  | 
            
        
          | 215 | 
           | 
          221 | 
           | 
        
        
          | 216 | 
          [% MACRO jsinclude BLOCK %]  | 
          222 | 
          [% MACRO jsinclude BLOCK %]  | 
        
        
          | 217 | 
              <script>  | 
          223 | 
              <script>  | 
        
  
    | 
      
            Lines 252-258
          
      
      
        Link Here
      
     | 
  
        
          | 252 | 
                          $("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); | 
          258 | 
                          $("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); | 
        
        
          | 253 | 
                      });  | 
          259 | 
                      });  | 
        
        
          | 254 | 
           | 
          260 | 
           | 
        
          
            
              | 255 | 
                       });  | 
              261 | 
                      });  | 
            
        
          | 256 | 
           | 
          262 | 
           | 
        
        
          | 257 | 
                  /* this function open a popup to search on z3950 server.  */  | 
          263 | 
                  /* this function open a popup to search on z3950 server.  */  | 
        
        
          | 258 | 
                  function PopupZ3950(fw) { | 
          264 | 
                  function PopupZ3950(fw) { | 
        
  
    | 
      
            Lines 274-291
          
      
      
        Link Here
      
     | 
  
        
          | 274 | 
                   * This function checks if the adequate number of records are checked for merging  | 
          280 | 
                   * This function checks if the adequate number of records are checked for merging  | 
        
        
          | 275 | 
                   */  | 
          281 | 
                   */  | 
        
        
          | 276 | 
                  function MergeItems() { | 
          282 | 
                  function MergeItems() { | 
        
          
            
              | 277 | 
                       var checkboxes = $("input:checkbox:checked"); | 
              283 | 
                          var checkboxes = $("input:checkbox:checked"); | 
            
            
              | 278 | 
                       if (checkboxes.length < 2) { | 
              284 | 
                          if (checkboxes.length < 2) { | 
            
            
              | 279 | 
                           alert(_("At least two records must be selected for merging.")); | 
              285 | 
                              alert(_("At least two records must be selected for merging.")); | 
            
            
              | 280 | 
                       } else { | 
              286 | 
                          } else { | 
            
            
              | 281 | 
                           var params = [];  | 
              287 | 
                              var params = [];  | 
            
            
              | 282 | 
                           $(checkboxes).each(function() { | 
              288 | 
                              $(checkboxes).each(function() { | 
            
            
              | 283 | 
                               params.push('biblionumber=' + $(this).val()); | 
              289 | 
                                  params.push('biblionumber=' + $(this).val()); | 
            
            
              | 284 | 
                           });  | 
              290 | 
                              });  | 
            
            
              | 285 | 
                           var url = '/cgi-bin/koha/cataloguing/merge.pl?' + params.join('&'); | 
              291 | 
                              var url = '/cgi-bin/koha/cataloguing/merge.pl?' + params.join('&'); | 
            
            
              | 286 | 
                           location.href = url;  | 
              292 | 
                              location.href = url;  | 
            
            
              | 287 | 
                       }  | 
              293 | 
                          }  | 
            
            
              | 288 | 
                       return false;  | 
              294 | 
                          return false;  | 
            
        
          | 289 | 
                  }  | 
          295 | 
                  }  | 
        
        
          | 290 | 
           | 
          296 | 
           | 
        
        
          | 291 | 
              </script>  | 
          297 | 
              </script>  | 
        
            
              | 292 | 
              -   | 
               | 
               |