View | Details | Raw Unified | Return to bug 32633
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt (-71 / +73 lines)
Lines 49-132 Link Here
49
<h1>Authority search results</h1>
49
<h1>Authority search results</h1>
50
50
51
<div id="merge_in_progress"></div>
51
<div id="merge_in_progress"></div>
52
[% IF ( total ) %]
52
<div class="page-section">
53
<div class="pages">[% pagination_bar | $raw %]</div>
53
    [% IF ( total ) %]
54
54
    <div class="pages">[% pagination_bar | $raw %]</div>
55
<p id="authorities_searchresultlist_current_page_info">
55
    
56
  Results [% from | html %] to [% to | html %] of [% total | html %]
56
    <p id="authorities_searchresultlist_current_page_info">
57
</p>
57
      Results [% from | html %] to [% to | html %] of [% total | html %]
58
58
    </p>
59
<div id="authorities_searchresultlist_results" class="page-section">
59
    
60
  <table>
60
    <div id="authorities_searchresultlist_results">
61
      <tr>
61
      <table>
62
        <th>Summary</th>
62
          <tr>
63
        <th>Heading type</th>
63
            <th>Summary</th>
64
        [% UNLESS ( isEDITORS ) %]
64
            <th>Heading type</th>
65
          <th>Used in</th>
65
            [% UNLESS ( isEDITORS ) %]
66
              <th>Used in</th>
67
            [% END %]
68
            [% IF Koha.Preference('ShowHeadingUse') %]
69
              <th class="heading_use">Heading use</th>
70
            [% END %]
71
            [% IF ( CAN_user_editauthorities ) %]
72
              <th>&nbsp;</th>
73
            [% END %]
74
          </tr>
75
        [% FOREACH resul IN result %]
76
        <tr data-authid="[% resul.authid | html %]">
77
          <td>
78
            [% IF resul.html %]
79
              [% resul.html | $raw %]
80
            [% ELSE %]
81
              [% PROCESS authresult summary=resul.summary authid=resul.authid %]
82
            [% END %]
83
          </td>
84
          <td>[% resul.authtype | html %]</td>
85
        [% UNLESS ( resul.isEDITORS ) %]
86
          <td>
87
          [% IF resul.used > 0 %]
88
              <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&amp;op=do_search&amp;idx=an,phr&amp;q=[% resul.authid | uri %]" class="button">[% resul.used | html %] record(s)</a>
89
          [% ELSE %]
90
              0 records
91
          [% END %]
92
          </td>
66
        [% END %]
93
        [% END %]
67
        [% IF Koha.Preference('ShowHeadingUse') %]
94
        [% IF Koha.Preference('ShowHeadingUse') %]
68
          <th class="heading_use">Heading use</th>
95
            <td class="heading_use"><ul class="usefor">
96
                <li>[% IF resul.main %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Main/Added Entry</li>
97
                <li>[% IF resul.subject %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Subject</li>
98
                <li>[% IF resul.series %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Series Title</li>
99
            </ul></td>
69
        [% END %]
100
        [% END %]
70
        [% IF ( CAN_user_editauthorities ) %]
101
        [% IF ( CAN_user_editauthorities ) %]
71
          <th>&nbsp;</th>
102
          <td>
103
          <div class="btn-group dropup">
104
            <a class="btn btn-default btn-xs dropdown-toggle" id="authactions[% resul.authid | html %]" role="button" data-toggle="dropdown" href="#">
105
            Actions <b class="caret"></b></a>
106
            <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authactions[% resul.authid | html %]">
107
              <li><a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid | uri %]"><i class="fa fa-pencil"></i> Edit</a></li>
108
              <li><a class="merge_auth" href="#merge"><i class="fa fa-compress"></i> Merge</a></li>
109
              [% UNLESS ( resul.used ) %]
110
                <li><a onclick='return confirm_deletion("[% resul.authid | html %]")'><i class="fa fa-trash"></i> Delete</a></li>
111
              [% END %]
112
              <li class="authority_preview">
113
                <a data-authid="[% resul.authid | html %]" href="/cgi-bin/koha/authorities/detail.pl?authid=[% resul.authid | uri %]"><i class="fa fa-eye"></i> MARC preview</a>
114
              </li>
115
            </ul>
116
          </div>
117
          </td>
72
        [% END %]
118
        [% END %]
73
      </tr>
119
        </tr>
74
    [% FOREACH resul IN result %]
75
    <tr data-authid="[% resul.authid | html %]">
76
      <td>
77
        [% IF resul.html %]
78
          [% resul.html | $raw %]
79
        [% ELSE %]
80
          [% PROCESS authresult summary=resul.summary authid=resul.authid %]
81
        [% END %]
120
        [% END %]
82
      </td>
121
      </table>
83
      <td>[% resul.authtype | html %]</td>
122
    </div>
84
    [% UNLESS ( resul.isEDITORS ) %]
123
    
85
      <td>
124
    [% INCLUDE 'authority-detail-modal.inc' %]
86
      [% IF resul.used > 0 %]
125
    
87
          <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&amp;op=do_search&amp;idx=an,phr&amp;q=[% resul.authid | uri %]" class="button">[% resul.used | html %] record(s)</a>
126
    <div class="pages">[% pagination_bar | $raw %]</div>
88
      [% ELSE %]
127
    
89
          0 records
128
    [% ELSE %]
90
      [% END %]
129
      No results found
91
      </td>
92
    [% END %]
93
    [% IF Koha.Preference('ShowHeadingUse') %]
94
        <td class="heading_use"><ul class="usefor">
95
            <li>[% IF resul.main %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Main/Added Entry</li>
96
            <li>[% IF resul.subject %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Subject</li>
97
            <li>[% IF resul.series %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Series Title</li>
98
        </ul></td>
99
    [% END %]
100
    [% IF ( CAN_user_editauthorities ) %]
101
      <td>
102
      <div class="btn-group dropup">
103
        <a class="btn btn-default btn-xs dropdown-toggle" id="authactions[% resul.authid | html %]" role="button" data-toggle="dropdown" href="#">
104
        Actions <b class="caret"></b></a>
105
        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authactions[% resul.authid | html %]">
106
          <li><a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid | uri %]"><i class="fa fa-pencil"></i> Edit</a></li>
107
          <li><a class="merge_auth" href="#merge"><i class="fa fa-compress"></i> Merge</a></li>
108
          [% UNLESS ( resul.used ) %]
109
            <li><a onclick='return confirm_deletion("[% resul.authid | html %]")'><i class="fa fa-trash"></i> Delete</a></li>
110
          [% END %]
111
          <li class="authority_preview">
112
            <a data-authid="[% resul.authid | html %]" href="/cgi-bin/koha/authorities/detail.pl?authid=[% resul.authid | uri %]"><i class="fa fa-eye"></i> MARC preview</a>
113
          </li>
114
        </ul>
115
      </div>
116
      </td>
117
    [% END %]
130
    [% END %]
118
    </tr>
131
</div> <!-- /.page-section -->
119
    [% END %]
120
  </table>
121
</div>
122
123
[% INCLUDE 'authority-detail-modal.inc' %]
124
125
<div class="pages">[% pagination_bar | $raw %]</div>
126
127
[% ELSE %]
128
  No results found
129
[% END %]
130
</div>
132
</div>
131
</div>
133
</div>
132
134
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt (-85 / +88 lines)
Lines 95-194 Link Here
95
95
96
                [% IF ( total ) %]
96
                [% IF ( total ) %]
97
                    <h2>Records found in the catalog</h2>
97
                    <h2>Records found in the catalog</h2>
98
                    <div class="page-section">
98
                    <div>
99
                    <div>
99
                        [% total | html %] result(s) found in catalog,
100
                        [% total | html %] result(s) found in catalog,
100
                        <a href="#searchresult-breeding">[% breeding_count | html %] result(s) found in reservoir</a>
101
                        <a href="#searchresult-breeding">[% breeding_count | html %] result(s) found in reservoir</a>
101
                    </div>
102
                    </div>
102
                    <div class="pages">[% pagination_bar | $raw %]</div>
103
                    <div class="pages">[% pagination_bar | $raw %]</div>
103
                    <div class="searchresults page-section">
104
                        <div class="searchresults">
104
                        <table>
105
                            <table>
105
                            <tr>
106
                                <th>&nbsp;</th>
107
                                <th>Title</th>
108
                                <th>Location</th>
109
                                <th>&nbsp;</th>
110
                            </tr>
111
                            [% FOREACH resultsloo IN resultsloop %]
112
                                <tr>
106
                                <tr>
113
                                    <td><input type="checkbox" class="selection" id="bib[% resultsloo.biblionumber | html %]" name="biblionumber" value="[% resultsloo.biblionumber | html %]" /></td>
107
                                    <th>&nbsp;</th>
114
                                    <td>
108
                                    <th>Title</th>
115
                                        <p>
109
                                    <th>Location</th>
116
                                            [% INCLUDE 'biblio-title.inc' biblio=resultsloo link = 1 %]
110
                                    <th>&nbsp;</th>
117
                                        </p>
111
                                </tr>
118
                                        [% IF ( resultsloo.summary ) %]
112
                                [% FOREACH resultsloo IN resultsloop %]
119
                                            <p>[% resultsloo.summary | html %]</p>
113
                                    <tr>
120
                                        [% ELSE %]
114
                                        <td><input type="checkbox" class="selection" id="bib[% resultsloo.biblionumber | html %]" name="biblionumber" value="[% resultsloo.biblionumber | html %]" /></td>
115
                                        <td>
121
                                            <p>
116
                                            <p>
122
                                                [% IF ( resultsloo.author ) %]
117
                                                [% INCLUDE 'biblio-title.inc' biblio=resultsloo link = 1 %]
123
                                                    [% resultsloo.author | html %]
124
                                                [% ELSE %]
125
                                                    &nbsp;
126
                                                [% END %]
127
                                                [% IF ( resultsloo.isbn ) %] - [% resultsloo.isbn | html %] [% END %]
128
                                                [% IF ( resultsloo.publicationyear ) %] - [% resultsloo.publicationyear | html %][% END %]
129
                                                [% IF ( resultsloo.publishercode ) %]- [% resultsloo.publishercode | html %][% END %]
130
                                                [% IF ( resultsloo.copyrightdate ) %] - [% resultsloo.copyrightdate | html %][% END %]
131
                                                [% IF ( resultsloo.edition ) %]<span>Edition: </span>[% resultsloo.edition | html %][% END %]
132
                                                [% IF ( resultsloo.place ) %] ; [% resultsloo.place | html %][% END %]
133
                                                [% IF ( resultsloo.pages ) %] - [% resultsloo.pages | html %][% END %]
134
                                                [% IF ( resultsloo.item('size') ) %] ; [% resultsloo.item('size') | html %][% END %]
135
                                                [% IF ( resultsloo.timestamp ) %] <em>(modified on [% resultsloo.timestamp | html %])</em>[% END %]
136
                                            </p>
118
                                            </p>
137
                                        [% END %]
119
                                            [% IF ( resultsloo.summary ) %]
138
                                    </td>
120
                                                <p>[% resultsloo.summary | html %]</p>
139
                                    <td>
121
                                            [% ELSE %]
140
                                        [% IF ( resultsloo.available_items_loop ) %]
122
                                                <p>
141
                                            <span class="available">
123
                                                    [% IF ( resultsloo.author ) %]
142
                                                [% FOREACH items_loo IN resultsloo.available_items_loop %]
124
                                                        [% resultsloo.author | html %]
143
                                                    [% items_loo.count | html %] [% items_loo.branchname | html %]
125
                                                    [% ELSE %]
144
                                                    [% IF ( items_loo.location ) %]<span class="shelvingloc">[% items_loo.location | html %]</span>[% END %]
126
                                                        &nbsp;
145
                                                    [% IF ( items_loo.itemcallnumber ) %][% items_loo.itemcallnumber | html %][% END %]
146
                                                    [% IF ( items_loo.classification ) %]
147
                                                        <a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:[% items_loo.classification |url %]">
148
                                                            [% items_loo.classification | html %]
149
                                                        </a>
150
                                                    [% END %]
127
                                                    [% END %]
151
                                                    <br />
128
                                                    [% IF ( resultsloo.isbn ) %] - [% resultsloo.isbn | html %] [% END %]
152
                                                [% END %]
129
                                                    [% IF ( resultsloo.publicationyear ) %] - [% resultsloo.publicationyear | html %][% END %]
153
                                            </span>
130
                                                    [% IF ( resultsloo.publishercode ) %]- [% resultsloo.publishercode | html %][% END %]
154
                                        [% END %]
131
                                                    [% IF ( resultsloo.copyrightdate ) %] - [% resultsloo.copyrightdate | html %][% END %]
155
                                        <span class="unavailable">
132
                                                    [% IF ( resultsloo.edition ) %]<span>Edition: </span>[% resultsloo.edition | html %][% END %]
156
                                            [% IF ( resultsloo.onloancount ) %] <span>Checked out ([% resultsloo.onloancount | html %])</span>,<br /> [% END %]
133
                                                    [% IF ( resultsloo.place ) %] ; [% resultsloo.place | html %][% END %]
157
                                            [% IF ( resultsloo.withdrawncount ) %] <span>Withdrawn ([% resultsloo.withdrawncount | html %])</span>,<br /> [% END %]
134
                                                    [% IF ( resultsloo.pages ) %] - [% resultsloo.pages | html %][% END %]
158
                                            [% IF ( resultsloo.itemlostcount ) %] <span>Lost ([% resultsloo.itemlostcount | html %])</span><br />[% END %]
135
                                                    [% IF ( resultsloo.item('size') ) %] ; [% resultsloo.item('size') | html %][% END %]
159
                                            [% IF ( resultsloo.recalledcount ) %] <span>Waiting to fill recall ([% resultsloo.recalled | html %])</span>[% END %]
136
                                                    [% IF ( resultsloo.timestamp ) %] <em>(modified on [% resultsloo.timestamp | html %])</em>[% END %]
160
                                            [% IF ( resultsloo.onholdcount ) %] <span>Waiting on hold ([% resultsloo.onholdcount | html %])</span>[% END %]
137
                                                </p>
161
                                        </span>
162
                                        <span class="notforloan">
163
                                            [% IF ( resultsloo.other_items_loop ) %]
164
                                                [% FOREACH items_loo IN resultsloo.other_items_loop %]
165
                                                    [% IF ( items_loo.notforloan ) %][% items_loo.notforloan | html %] ([% items_loo.count | html %])<br />[% END %]
166
                                                [% END %]
167
                                            [% END %]
138
                                            [% END %]
168
                                        </span>
139
                                        </td>
169
                                    </td>
140
                                        <td>
170
                                    <td>
141
                                            [% IF ( resultsloo.available_items_loop ) %]
171
                                        <div class="dropup">
142
                                                <span class="available">
172
                                            <a class="btn btn-default btn-xs dropdown-toggle" id="cataloguesearchactions[% resultsloo.biblionumber | html %]" role="button" data-toggle="dropdown" href="#">
143
                                                    [% FOREACH items_loo IN resultsloo.available_items_loop %]
173
                                                Actions <b class="caret"></b>
144
                                                        [% items_loo.count | html %] [% items_loo.branchname | html %]
174
                                            </a>
145
                                                        [% IF ( items_loo.location ) %]<span class="shelvingloc">[% items_loo.location | html %]</span>[% END %]
175
                                            <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="cataloguesearchactions[% resultsloo.biblionumber | html %]">
146
                                                        [% IF ( items_loo.itemcallnumber ) %][% items_loo.itemcallnumber | html %][% END %]
176
                                                <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>
147
                                                        [% IF ( items_loo.classification ) %]
177
                                                <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=[% resultsloo.biblionumber | uri %]" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li>
148
                                                            <a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:[% items_loo.classification |url %]">
178
                                                [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
149
                                                                [% items_loo.classification | html %]
179
                                                    <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% resultsloo.biblionumber | uri %]"><i class="fa fa-pencil"></i> Edit record</a></li>
150
                                                            </a>
180
                                                [% END %]
151
                                                        [% END %]
181
                                                [% IF ( CAN_user_editcatalogue_edit_items ) %]
152
                                                        <br />
182
                                                    <li><a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% resultsloo.biblionumber | uri %]"><i class="fa fa-plus"></i> Add/Edit items</a></li>
153
                                                    [% END %]
154
                                                </span>
155
                                            [% END %]
156
                                            <span class="unavailable">
157
                                                [% IF ( resultsloo.onloancount ) %] <span>Checked out ([% resultsloo.onloancount | html %])</span>,<br /> [% END %]
158
                                                [% IF ( resultsloo.withdrawncount ) %] <span>Withdrawn ([% resultsloo.withdrawncount | html %])</span>,<br /> [% END %]
159
                                                [% IF ( resultsloo.itemlostcount ) %] <span>Lost ([% resultsloo.itemlostcount | html %])</span><br />[% END %]
160
                                                [% IF ( resultsloo.recalledcount ) %] <span>Waiting to fill recall ([% resultsloo.recalled | html %])</span>[% END %]
161
                                                [% IF ( resultsloo.onholdcount ) %] <span>Waiting on hold ([% resultsloo.onholdcount | html %])</span>[% END %]
162
                                            </span>
163
                                            <span class="notforloan">
164
                                                [% IF ( resultsloo.other_items_loop ) %]
165
                                                    [% FOREACH items_loo IN resultsloo.other_items_loop %]
166
                                                        [% IF ( items_loo.notforloan ) %][% items_loo.notforloan | html %] ([% items_loo.count | html %])<br />[% END %]
167
                                                    [% END %]
183
                                                [% END %]
168
                                                [% END %]
184
                                            </ul>
169
                                            </span>
185
                                        </div> <!-- /.dropup -->
170
                                        </td>
186
                                    </td>
171
                                        <td>
187
                                </tr>
172
                                            <div class="dropup">
188
                            [% END # /FOREACH resultsloo %]
173
                                                <a class="btn btn-default btn-xs dropdown-toggle" id="cataloguesearchactions[% resultsloo.biblionumber | html %]" role="button" data-toggle="dropdown" href="#">
189
                        </table>
174
                                                    Actions <b class="caret"></b>
190
                        <div class="pages">[% pagination_bar | $raw %]</div>
175
                                                </a>
191
                    </div> <!-- /.searchresults -->
176
                                                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="cataloguesearchactions[% resultsloo.biblionumber | html %]">
177
                                                    <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>
178
                                                    <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=[% resultsloo.biblionumber | uri %]" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li>
179
                                                    [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
180
                                                        <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% resultsloo.biblionumber | uri %]"><i class="fa fa-pencil"></i> Edit record</a></li>
181
                                                    [% END %]
182
                                                    [% IF ( CAN_user_editcatalogue_edit_items ) %]
183
                                                        <li><a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% resultsloo.biblionumber | uri %]"><i class="fa fa-plus"></i> Add/Edit items</a></li>
184
                                                    [% END %]
185
                                                </ul>
186
                                            </div> <!-- /.dropup -->
187
                                        </td>
188
                                    </tr>
189
                                [% END # /FOREACH resultsloo %]
190
                            </table>
191
                            <div class="pages">[% pagination_bar | $raw %]</div>
192
                        </div> <!-- /.searchresults -->
193
                    </div> <!-- /.page-section -->
192
                [% ELSE # IF total %]
194
                [% ELSE # IF total %]
193
                    [% IF ( query ) %]
195
                    [% IF ( query ) %]
194
                        [% IF ( error ) %]
196
                        [% IF ( error ) %]
Lines 204-211 Link Here
204
206
205
                [% IF ( query ) %]
207
                [% IF ( query ) %]
206
208
207
                    <div id="searchresult-breeding" class="page-section">
209
                    <div id="searchresult-breeding">
208
                        <h2>Records found in the reservoir</h2>
210
                        <h2>Records found in the reservoir</h2>
211
                        <div class="page-section">
209
                        [% IF ( breeding_loop ) %]
212
                        [% IF ( breeding_loop ) %]
210
                            <table id="reservoir-table">
213
                            <table id="reservoir-table">
211
                                <thead>
214
                                <thead>
Lines 247-252 Link Here
247
                        [% ELSE %]
250
                        [% ELSE %]
248
                            <h3 id="searchresult-breeding">No results found</h3>
251
                            <h3 id="searchresult-breeding">No results found</h3>
249
                        [% END # /IF breeding_loop %]
252
                        [% END # /IF breeding_loop %]
253
                        </div>
250
                    </div>
254
                    </div>
251
                [% END # /IF query %]
255
                [% END # /IF query %]
252
256
253
- 

Return to bug 32633