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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-475 / +519 lines)
Lines 46-544 Link Here
46
    <div class="container-fluid">
46
    <div class="container-fluid">
47
        <div class="row-fluid">
47
        <div class="row-fluid">
48
            <div class="span9">
48
            <div class="span9">
49
                <div id="catalogue_detail_biblio" class="maincontent">
50
49
51
                    <div id="bookcover">
50
                <abbr class="unapi-id" title="koha:biblionumber:[% biblionumber %]"><!-- unAPI --></abbr>
52
                    [% IF ( OPACLocalCoverImages ) %]
51
                [% IF ( ocoins ) # COinS / Openurl %]
53
                        <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
52
                    <span class="Z3988" title="[% ocoins %]"></span>
54
                    [% END %]
53
                [% END %]
55
                    [% IF ( OPACAmazonCoverImages ) %]
56
                        [% IF ( OPACURLOpenInNewWindow ) %]
57
                            <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link" target="_blank">
58
                        [% ELSE %]
59
                            <a href="http://www.amazon[% AmazonTld %]/dp/[% normalized_isbn %]">
60
                        [% END %]
61
                        [% IF ( using_https ) %]
62
                            <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
63
                        [% ELSE %]
64
                            <img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
65
                        [% END %]
66
                    [% END %]
67
68
                    [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
69
                        [% IF ( content_identifier_exists ) %]
70
                            [% IF ( using_https ) %]
71
                                <img src="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/[% SyndeticsCoverImageSize %].GIF&amp;client=[% SyndeticsClientCode %]&amp;type=xw10&amp;upc=[% normalized_upc %]&amp;oclc=[% normalized_oclc %]" alt="" class="thumbnail" />
72
                            [% ELSE %]
73
                                <img src="http://www.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/[% SyndeticsCoverImageSize %].GIF&amp;client=[% SyndeticsClientCode %]&amp;type=xw10&amp;upc=[% normalized_upc %]&amp;oclc=[% normalized_oclc %]" alt="" class="thumbnail" />
74
                            [% END %]
75
76
                        [% ELSE %]
77
                            <span class="no-image">No cover image available</span>
78
                        [% END %]
79
                    [% END %]
80
81
                    [% IF ( GoogleJackets ) %]
82
                        <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
83
                    [% END %]
84
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
85
                      [% coce_id = normalized_ean || normalized_isbn %]
86
                      <div style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
87
                    [% END %]
88
                    [% IF OpenLibraryCovers %]
89
                        <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div>
90
                    [% END %]
91
                    [% bt_id = ( normalized_upc || normalized_isbn ) %]
92
                    [% IF ( BakerTaylorEnabled && bt_id ) %]
93
                        [% IF BakerTaylorBookstoreURL %]
94
                            [% IF ( OPACURLOpenInNewWindow ) %]
95
                                <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]" target="_blank"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
96
                            [% ELSE %]
97
                                <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
98
                            [% END %]
99
                        [% ELSE %]
100
                            <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" />
101
                        [% END %]
102
                    [% END %]
103
                    </div><!-- / #bookcover -->
104
105
                    <abbr class="unapi-id" title="koha:biblionumber:[% biblionumber %]"><!-- unAPI --></abbr>
106
                    [% IF ( ocoins ) # COinS / Openurl %]
107
                        <span class="Z3988" title="[% ocoins %]"></span>
108
                    [% END %]
109
110
                    <div id="views">
111
                        <span class="view"><span id="Normalview">Normal view</span></span>
112
                        <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblionumber %]">MARC view</a></span>
113
                        [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblionumber %]">ISBD view</a></span>[% END %]
114
                    </div>
115
                    [% IF ( OPACXSLTDetailsDisplay ) %]
116
                        [% XSLTBloc %]
117
                    [% ELSE %]
118
                        <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
119
                        [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %]
120
121
                        <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
122
                            [
123
                            [% IF ( description ) %]
124
                                [% description %]
125
                            [% ELSE %]
126
                                [% itemtype %]
127
                            [% END %]
128
                            ] [% END %]
129
                            [% IF ( unititle ) %], [% unititle %][% END %]
130
                        </span>
131
132
                        [% IF ( MARCAUTHORS ) %]
133
                            <div class="results_summary">
134
                                <span class="label">Additional authors:</span>
135
                                [% IF OPACPopupAuthorsSearch %]
136
                                    <!-- Author search term selection modal -->
137
                                    <div id="authorSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="authorSearchLabel" aria-hidden="true">
138
                                        <div class="modal-header">
139
                                            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
140
                                            <h3 id="authorSearchLabel">Select the item(s) to search</h3>
141
                                        </div>
142
                                        <div class="modal-body">
143
                                            <input type="checkbox" onchange="checkAll(this, '#authorsList')" /> <b>All</b>
144
                                            <ul id="authorsList">
145
                                                [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
146
                                                    <li>
147
                                                        [% IF (MARCAUTHOR.authoritylink) %]
148
                                                            <input type="checkbox" name="checkbox"
149
                                                                id="author_[% loop.count %]"
150
                                                                onclick="makeAuthorRequest()"
151
                                                                value="an:[% MARCAUTHOR.authoritylink %]" />
152
                                                        [% ELSE %]
153
                                                            <input type="checkbox" name="checkbox"
154
                                                                id="author_[% loop.count %]"
155
                                                                onclick="makeAuthorRequest()"
156
                                                                value="au,wrdl:[% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% SUBFIELD.value |url %][% UNLESS (loop.last) %]+[% END %][% END %]" />
157
                                                        [% END %]
158
                                                        <label for="author_[% loop.count %]">
159
                                                            [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
160
                                                                [% SUBFIELD.value %]
161
                                                            [% END %]
162
                                                        </label>
163
                                                    </li>
164
                                                [% END # /FOREACH MARCAUTHORS %]
165
                                            </ul>
166
                                        </div>
167
                                        <div class="modal-footer">
168
                                            <a id="validAuthorSearch" href="#" class="btn btn-primary">Search</a>
169
                                            <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
170
                                        </div>
171
                                    </div>
172
                                [% END # /OPACPopupAuthorsSearch %]
173
174
                                [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
175
                                    [% authorsloop = loop %]
176
                                    [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
177
                                        [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
178
                                        [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
179
                                            <a role="button" data-toggle="modal" title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
180
                                            class="showauthors" data-count="[% authorsloop.count %]"
181
                                            href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]#authorSearch">[% MARCAUTHOR_SUBFIELDS_LOO.value %]</a>
182
                                        [% ELSE %]
183
                                            <a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
184
                                            class="showauthors" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]">[% MARCAUTHOR_SUBFIELDS_LOO.value %]</a>
185
                                        [% END %]
186
                                    [% END %]
187
                                    [% IF (MARCAUTHOR.authoritylink) %]
188
                                        <a class='authlink' href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCAUTHOR.authoritylink %]"><img style="vertical-align:middle" height="15" width="15" src="[% interface %]/[% theme %]/images/filefind.png"></a>
189
                                    [% END %]
190
                                    [% IF IDREF and MARCAUTHOR.unimarc3 %]
191
                                        <a href="/cgi-bin/koha/opac-idref.pl?unimarc3=[% MARCAUTHOR.unimarc3 %]" title="IdRef" rel="gb_page_center[600,500]">IdRef</a>
192
                                    [% END %]
193
                                    [% UNLESS ( loop.last ) %]|[% END %]
194
                                [% END # /FOREACH MARCAUTHORS %]
195
                            </div>
196
                        [% END # IF MARCAUTHORS %]
197
198
                        [% IF ( MARCSERIES ) %]
199
                            <span class="results_summary series"><span class="label">Series:</span>
200
                                [% FOREACH MARCSERIE IN MARCSERIES %]
201
                                    [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
202
                                        [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
203
                                            <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value %]</a>
204
                                        [% END %]
205
                                        [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
206
                                            . [% MARCSERIES_SUBFIELDS_LOO.volumenum %]
207
                                        [% END %]
208
                                    [% END %]
209
                                    [% UNLESS ( loop.last ) %]|[% END %]
210
                                [% END # / FOREACH MARCSERIES %]
211
                            </span>
212
                        [% END # /MARCSERIES %]
213
214
                        [% IF ( editionstatement ) %]
215
                            <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement %][% IF ( editionresponsibility ) %]/[% editionresponsibility %][% END %]</span>
216
                        [% END %]
217
                        [% IF ( publishercode ) %]
218
                            <span class="results_summary publisher"><span class="label">Published by :</span>
219
                                <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
220
                                    [% publishercode |html %]
221
                                </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %]
222
                            </span>
223
                        [% END %]
224
225
                        [% IF ( pages ) %]
226
                            <span class="results_summary physical"><span class="label">Physical details:</span> [% pages %] [% illus %] [% size %]</span>
227
                        [% END %]
228
54
229
                        [% IF ( MARCISBNS ) %]
55
                <div id="views">
230
                            <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
56
                    <span class="view"><span id="Normalview">Normal view</span></span>
231
                        [% ELSE %]
57
                    <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblionumber %]">MARC view</a></span>
232
                            [% IF ( normalized_isbn ) %]
58
                    [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblionumber %]">ISBD view</a></span>[% END %]
233
                                <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn %]</span>
59
                </div>
234
                            [% END %]
60
235
                        [% END %]
61
                <div id="catalogue_detail_biblio" class="maincontent row-fluid">
62
63
                    [% IF ( OPACLocalCoverImages || OPACAmazonCoverImages || ( SyndeticsEnabled && SyndeticsCoverImages ) || GoogleJackets || ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) || OpenLibraryCovers || ( BakerTaylorEnabled && bt_id && BakerTaylorBookstoreURL ) ) %]
64
65
                    <div class="span2">
66
67
                      <div id="bookcover">
68
                      [% IF ( OPACLocalCoverImages ) %]
69
                          <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
70
                      [% END %]
71
                      [% IF ( OPACAmazonCoverImages ) %]
72
                          [% IF ( OPACURLOpenInNewWindow ) %]
73
                              <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link" target="_blank">
74
                          [% ELSE %]
75
                              <a href="http://www.amazon[% AmazonTld %]/dp/[% normalized_isbn %]">
76
                          [% END %]
77
                          [% IF ( using_https ) %]
78
                              <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
79
                          [% ELSE %]
80
                              <img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
81
                          [% END %]
82
                      [% END %]
83
84
                      [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
85
                          [% IF ( content_identifier_exists ) %]
86
                              [% IF ( using_https ) %]
87
                                  <img src="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/[% SyndeticsCoverImageSize %].GIF&amp;client=[% SyndeticsClientCode %]&amp;type=xw10&amp;upc=[% normalized_upc %]&amp;oclc=[% normalized_oclc %]" alt="" class="thumbnail" />
88
                              [% ELSE %]
89
                                  <img src="http://www.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/[% SyndeticsCoverImageSize %].GIF&amp;client=[% SyndeticsClientCode %]&amp;type=xw10&amp;upc=[% normalized_upc %]&amp;oclc=[% normalized_oclc %]" alt="" class="thumbnail" />
90
                              [% END %]
236
91
237
                        [% IF ( issn ) %]
92
                          [% ELSE %]
238
                            <span class="results_summary issn"><span class="label">ISSN:</span>[% issn %]</span>
93
                              <span class="no-image">No cover image available</span>
239
                        [% END %]
94
                          [% END %]
95
                      [% END %]
96
97
                      [% IF ( GoogleJackets ) %]
98
                          <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
99
                      [% END %]
100
                      [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
101
                        [% coce_id = normalized_ean || normalized_isbn %]
102
                        <div style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
103
                      [% END %]
104
                      [% IF OpenLibraryCovers %]
105
                          <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div>
106
                      [% END %]
107
                      [% bt_id = ( normalized_upc || normalized_isbn ) %]
108
                      [% IF ( BakerTaylorEnabled && bt_id ) %]
109
                          [% IF BakerTaylorBookstoreURL %]
110
                              [% IF ( OPACURLOpenInNewWindow ) %]
111
                                  <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]" target="_blank"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
112
                              [% ELSE %]
113
                                  <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
114
                              [% END %]
115
                          [% ELSE %]
116
                              <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" />
117
                          [% END %]
118
                      [% END %]
240
119
241
                        [% IF ( collectiontitle ) %]
120
                      </div><!-- / #bookcover -->
242
                            <span class="results_summary collection"><span class="label">Collection: </span>
243
                                [% collectiontitle %]
244
                                [% IF ( collectionissn ) %], ISSN [% collectionissn %]    [% END %]
245
                                [% IF ( collectionvolume ) %]; [% collectionvolume %] [% END %]
246
121
247
                            </span>
122
                    </div><!-- / .span2 -->
248
                        [% END %]
249
123
250
                        [% IF ( unititles ) %]
251
                            <span class="results_summary unititle"><span class="label">Uniform titles:</span>
252
                                [% FOREACH unititle IN unititles %]
253
                                    [% unititle.unititle %] ;
254
                                [% END %]
255
                            </span>
256
                        [% END %]
257
124
258
                        [% IF ( MARCSUBJCTS ) %]
125
                    <div id="detail" class="span10">
259
                            <div class="results_summary subject">
126
                    [% ELSE %]
260
                                <span class="label">Subject(s):</span>
127
                    <div id="detail">
261
128
                    [% END %]
262
                                [% IF OPACPopupAuthorsSearch %]
263
                                    <!-- Search term selection modal -->
264
                                    <div id="subjectSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="subjectSearchLabel" aria-hidden="true">
265
                                        <div class="modal-header">
266
                                            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
267
                                            <h3 id="subjectSearchLabel">Select the term(s) to search</h3>
268
                                        </div>
269
                                        <div id="subjectsList" class="modal-body">
270
                                            <input type="checkbox" id="all_subjects" onchange="checkAll(this, '#subjectsList')" />
271
                                            <label for="all_subjects">
272
                                                <b>All</b>
273
                                            </label>
274
                                            [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
275
                                                [% subjectsloop = loop %]
276
                                                [% IF MARCSUBJCT.authoritylink %]
277
                                                    <ul id="subjectsList[% loop.count %]" data-authid="[% MARCSUBJCT.authoritylink %]">
278
                                                [% ELSE %]
279
                                                    <ul id="subjectsList[% loop.count %]">
280
                                                [% END %]
281
                                                [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
282
                                                    <li>
283
                                                        <input type="checkbox" onclick="makeSubjectRequest()" name="checkbox" id="subject_[% subjectsloop.count %]_[% loop.count %]" value="su,wrdl:[% SUBFIELD.value |url %]" />
284
                                                        <label for="subject_[% subjectsloop.count %]_[% loop.count %]">
285
                                                            [% SUBFIELD.value %]
286
                                                        </label>
287
                                                    </li>
288
                                                [% END %]
289
                                                </ul>
290
                                            [% END %]
291
                                        </div>
292
                                        <div class="modal-footer">
293
                                            <a href="#" id="validSubjectSearch" class="btn btn-primary">Search</a>
294
                                            <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
295
                                        </div>
296
                                    </div>
297
                                [% END # /OPACPopupAuthorsSearch%]
298
299
                                [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
300
                                    [% subjectsloop = loop %]
301
                                    [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
302
                                        [% SUBFIELD.separator %]
303
                                        [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
304
                                            <a role="button" data-toggle="modal" title="$[% SUBFIELD.code %] [% SUBFIELD.value %]" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN SUBFIELD.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]#subjectSearch" onclick="showSubjects(this, [% subjectsloop.count %], [% loop.count %]); return false;">[% SUBFIELD.value %]</a>
305
                                        [% ELSE %]
306
                                            <a title="$[% SUBFIELD.code %] [% SUBFIELD.value %]" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN SUBFIELD.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]">[% SUBFIELD.value %]</a>
307
                                        [% END %]
308
                                    [% END %]
309
                                    [% IF (MARCSUBJCT.authoritylink) %]
310
                                        <a class="authlink" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCSUBJCT.authoritylink %]"><img style="vertical-align:middle" height="15" width="15" src="[% interface %]/[% theme %]/images/filefind.png" /></a>
311
                                    [% END %]
312
                                    [% UNLESS ( loop.last ) %] | [% END %]
313
                                [% END # / FOREACH MARCSUBJCTS %]
314
                            </div>
315
                        [% ELSE # /IF MARCSUBJCTS %]
316
                            [% IF ( subjects ) %]<span class="results_summary"><span class="label">Subject(s):</span> [% FOREACH subject IN subjects %]<a href="/cgi-bin/koha/opac-search.pl?q=su:[% subject.subject |url %]">[% subject.subject %]</a> | [% END %]</span>[% END %]
317
                        [% END %]
318
129
319
                        [% IF ( copyrightdate ) %]
130
                      [% IF ( OPACXSLTDetailsDisplay ) %]
320
                            <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate %]</span>
131
                          [% XSLTBloc %]
321
                        [% END %]
132
                      [% ELSE %]
133
                          <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
134
                          [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %]
322
135
323
                        [% UNLESS ( item_level_itypes ) %]
136
                          <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
324
                            [% IF ( imgeurl ) %]
137
                              [
325
                                <img src="[% imageurl %]" alt="" />
138
                              [% IF ( description ) %]
326
                            [% END %]
139
                                  [% description %]
327
                            <span class="results_summary itemtype"><span class="label">Item type: </span>
140
                              [% ELSE %]
328
                                [% IF ( description ) %]
141
                                  [% itemtype %]
329
                                    [% description %]
142
                              [% END %]
330
                                [% ELSE %]
143
                              ] [% END %]
331
                                    [% itemtype %]
144
                              [% IF ( unititle ) %], [% unititle %][% END %]
332
                                [% END %]
145
                          </span>
333
                            </span>
146
334
                        [% END %]
147
                          [% IF ( MARCAUTHORS ) %]
148
                              <div class="results_summary">
149
                                  <span class="label">Additional authors:</span>
150
                                  [% IF OPACPopupAuthorsSearch %]
151
                                      <!-- Author search term selection modal -->
152
                                      <div id="authorSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="authorSearchLabel" aria-hidden="true">
153
                                          <div class="modal-header">
154
                                              <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
155
                                              <h3 id="authorSearchLabel">Select the item(s) to search</h3>
156
                                          </div>
157
                                          <div class="modal-body">
158
                                              <input type="checkbox" onchange="checkAll(this, '#authorsList')" /> <b>All</b>
159
                                              <ul id="authorsList">
160
                                                  [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
161
                                                      <li>
162
                                                          [% IF (MARCAUTHOR.authoritylink) %]
163
                                                              <input type="checkbox" name="checkbox"
164
                                                                  id="author_[% loop.count %]"
165
                                                                  onclick="makeAuthorRequest()"
166
                                                                  value="an:[% MARCAUTHOR.authoritylink %]" />
167
                                                          [% ELSE %]
168
                                                              <input type="checkbox" name="checkbox"
169
                                                                  id="author_[% loop.count %]"
170
                                                                  onclick="makeAuthorRequest()"
171
                                                                  value="au,wrdl:[% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% SUBFIELD.value |url %][% UNLESS (loop.last) %]+[% END %][% END %]" />
172
                                                          [% END %]
173
                                                          <label for="author_[% loop.count %]">
174
                                                              [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
175
                                                                  [% SUBFIELD.value %]
176
                                                              [% END %]
177
                                                          </label>
178
                                                      </li>
179
                                                  [% END # /FOREACH MARCAUTHORS %]
180
                                              </ul>
181
                                          </div>
182
                                          <div class="modal-footer">
183
                                              <a id="validAuthorSearch" href="#" class="btn btn-primary">Search</a>
184
                                              <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
185
                                          </div>
186
                                      </div>
187
                                  [% END # /OPACPopupAuthorsSearch %]
188
189
                                  [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
190
                                      [% authorsloop = loop %]
191
                                      [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
192
                                          [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
193
                                          [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
194
                                              <a role="button" data-toggle="modal" title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
195
                                              class="showauthors" data-count="[% authorsloop.count %]"
196
                                              href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]#authorSearch">[% MARCAUTHOR_SUBFIELDS_LOO.value %]</a>
197
                                          [% ELSE %]
198
                                              <a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
199
                                              class="showauthors" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]">[% MARCAUTHOR_SUBFIELDS_LOO.value %]</a>
200
                                          [% END %]
201
                                      [% END %]
202
                                      [% IF (MARCAUTHOR.authoritylink) %]
203
                                          <a class='authlink' href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCAUTHOR.authoritylink %]"><img style="vertical-align:middle" height="15" width="15" src="[% interface %]/[% theme %]/images/filefind.png"></a>
204
                                      [% END %]
205
                                      [% IF IDREF and MARCAUTHOR.unimarc3 %]
206
                                          <a href="/cgi-bin/koha/opac-idref.pl?unimarc3=[% MARCAUTHOR.unimarc3 %]" title="IdRef" rel="gb_page_center[600,500]">IdRef</a>
207
                                      [% END %]
208
                                      [% UNLESS ( loop.last ) %]|[% END %]
209
                                  [% END # /FOREACH MARCAUTHORS %]
210
                              </div>
211
                          [% END # IF MARCAUTHORS %]
212
213
                          [% IF ( MARCSERIES ) %]
214
                              <span class="results_summary series"><span class="label">Series:</span>
215
                                  [% FOREACH MARCSERIE IN MARCSERIES %]
216
                                      [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
217
                                          [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
218
                                              <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value %]</a>
219
                                          [% END %]
220
                                          [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
221
                                              . [% MARCSERIES_SUBFIELDS_LOO.volumenum %]
222
                                          [% END %]
223
                                      [% END %]
224
                                      [% UNLESS ( loop.last ) %]|[% END %]
225
                                  [% END # / FOREACH MARCSERIES %]
226
                              </span>
227
                          [% END # /MARCSERIES %]
228
229
                          [% IF ( editionstatement ) %]
230
                              <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement %][% IF ( editionresponsibility ) %]/[% editionresponsibility %][% END %]</span>
231
                          [% END %]
232
                          [% IF ( publishercode ) %]
233
                              <span class="results_summary publisher"><span class="label">Published by :</span>
234
                                  <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
235
                                      [% publishercode |html %]
236
                                  </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %]
237
                              </span>
238
                          [% END %]
239
240
                          [% IF ( pages ) %]
241
                              <span class="results_summary physical"><span class="label">Physical details:</span> [% pages %] [% illus %] [% size %]</span>
242
                          [% END %]
243
244
                          [% IF ( MARCISBNS ) %]
245
                              <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
246
                          [% ELSE %]
247
                              [% IF ( normalized_isbn ) %]
248
                                  <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn %]</span>
249
                              [% END %]
250
                          [% END %]
335
251
336
                        [% IF ( MARCURLS ) %]
252
                          [% IF ( issn ) %]
337
                            <div class="results_summary online_resources"><span class="label">Online resources:</span>
253
                              <span class="results_summary issn"><span class="label">ISSN:</span>[% issn %]</span>
338
                                <ul>
254
                          [% END %]
339
                                    [% FOREACH MARCurl IN MARCURLS %]
340
                                        <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]<br />[% END %]
341
342
                                        [% IF ( OPACURLOpenInNewWindow ) %]
343
                                            [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
344
                                                <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&amp;biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]" target="_blank">
345
                                            [% ELSE %]
346
                                                <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank">
347
                                            [% END %]
348
                                        [% ELSE %]
349
                                            [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
350
                                                <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&amp;biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]">
351
                                            [% ELSE %]
352
                                                <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">
353
                                            [% END %]
354
                                        [% END %]
355
255
356
                                        [% MARCurl.linktext %]</a>
256
                          [% IF ( collectiontitle ) %]
357
                                            [% IF ( MARCurl.notes ) %]
257
                              <span class="results_summary collection"><span class="label">Collection: </span>
358
                                                <ul>
258
                                  [% collectiontitle %]
359
                                                    [% FOREACH note IN MARCurl.notes %]
259
                                  [% IF ( collectionissn ) %], ISSN [% collectionissn %]    [% END %]
360
                                                        <li>[% note.note %]</li>
260
                                  [% IF ( collectionvolume ) %]; [% collectionvolume %] [% END %]
361
                                                    [% END %]
362
                                                </ul>
363
                                            [% END %]
364
                                        </li>
365
                                    [% END # /FOREACH MARCURLS %]
366
                                </ul>
367
                            </div>
368
                        [% END # / IF MARCURLS %]
369
                    [% END # / IF OPACXSLTDetailsDisplay %]
370
261
371
                    [% IF ( AuthorisedValueImages && authorised_value_images ) %]
262
                              </span>
372
                        <div class="authorised_value_images">
263
                          [% END %]
373
                            [% FOREACH authorised_value_image IN authorised_value_images %]
374
                                <img src="[% authorised_value_image.imageurl %]" alt="[% authorised_value_image.label %]" title="[% authorised_value_image.label %]" />
375
                            [% END %]
376
                        </div>
377
                    [% END # / AuthorisedValueImages && authorised_value_images %]
378
379
                    <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
380
                    [% IF ( LibraryThingForLibrariesID ) %]
381
                        [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
382
                            <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
383
                            <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
384
                            <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
385
                        [% END %]
386
                        <span class="results_summary">
387
                            <span class="label">Reviews from LibraryThing.com:</span>
388
                            <span style="display: block;" class="ltfl_reviews"></span>
389
                        </span>
390
                    [% END # / LibraryThingForLibrariesID %]
391
392
                    <!--This grabs all of the lists a bib record appears in -->
393
                    [% IF shelves.count %]
394
                        <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
395
                        [% FOREACH s IN shelves %]
396
                            <a href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=[% s.shelfnumber %]">[% s.shelfname %]</a>
397
                            [% IF ( loop.last ) %][% ELSE %]|[% END %]
398
                        [% END %]
399
                        </span>
400
                    [% END %]
401
264
402
                    [% IF ( TagsShowEnabled ) %]
265
                          [% IF ( unititles ) %]
403
                        <div class="results_summary tags">
266
                              <span class="results_summary unititle"><span class="label">Uniform titles:</span>
404
                        [% IF ( TagLoop ) %]
267
                                  [% FOREACH unititle IN unititles %]
405
                            <span class="label">Tags from this library:</span>
268
                                      [% unititle.unititle %] ;
406
                            <ul id="tagslist">
269
                                  [% END %]
407
                                [% FOREACH TagLoo IN TagLoop %]
270
                              </span>
408
                                    <li><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&amp;q=[% TagLoo.term |url %]">[% TagLoo.term |html %]</a> <span class="weight">([% TagLoo.weight_total %])</span>
271
                          [% END %]
409
                                    [% IF ( loop.last ) %][% ELSE %], [% END %]
272
410
                                    </li>
273
                          [% IF ( MARCSUBJCTS ) %]
411
                                [% END %]
274
                              <div class="results_summary subject">
412
                            </ul>
275
                                  <span class="label">Subject(s):</span>
413
                        [% ELSE %]
276
414
                            <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span>
277
                                  [% IF OPACPopupAuthorsSearch %]
415
                        [% END %]
278
                                      <!-- Search term selection modal -->
416
                        [% IF ( TagsInputEnabled ) %] <a class="tag_add" id="tag_add[% biblionumber %]" href="#">Add tag(s)</a> [% END %]
279
                                      <div id="subjectSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="subjectSearchLabel" aria-hidden="true">
417
                        </div>
280
                                          <div class="modal-header">
418
                    [% END # /IF TagsShowEnabled %]
281
                                              <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
419
282
                                              <h3 id="subjectSearchLabel">Select the term(s) to search</h3>
420
                    [% IF ( TagsInputEnabled ) %]
283
                                          </div>
421
                      <div class="results_summary tagsinput">
284
                                          <div id="subjectsList" class="modal-body">
422
                            [% IF ( loggedinusername ) %]
285
                                              <input type="checkbox" id="all_subjects" onchange="checkAll(this, '#subjectsList')" />
423
                                <form id="tagform[% biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
286
                                              <label for="all_subjects">
424
                                    <label for="newtag[% biblionumber %]">New tag(s), separated by a comma:</label>
287
                                                  <b>All</b>
425
                                    <input name="newtag[% biblionumber %]" id="newtag[% biblionumber %]" maxlength="100" type="text"/>
288
                                              </label>
426
                                    <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblionumber %]" type="submit" value="Add" />
289
                                              [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
427
                                    <a class="cancel_tag_add" id="cancel[% biblionumber %]" href="#">(done)</a>
290
                                                  [% subjectsloop = loop %]
428
                                </form>
291
                                                  [% IF MARCSUBJCT.authoritylink %]
429
                                <span id="newtag[% biblionumber %]_status" class="tagstatus" style="display:none;">
292
                                                      <ul id="subjectsList[% loop.count %]" data-authid="[% MARCSUBJCT.authoritylink %]">
430
                                    Tag status here.
293
                                                  [% ELSE %]
431
                                </span>
294
                                                      <ul id="subjectsList[% loop.count %]">
432
                            [% ELSE %]
295
                                                  [% END %]
433
                                <span id="login4tags">Log in to add tags.</span>
296
                                                  [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
434
                            [% END %]
297
                                                      <li>
435
                        </div>
298
                                                          <input type="checkbox" onclick="makeSubjectRequest()" name="checkbox" id="subject_[% subjectsloop.count %]_[% loop.count %]" value="su,wrdl:[% SUBFIELD.value |url %]" />
436
                    [% END # / IF TagsInputEnabled %]
299
                                                          <label for="subject_[% subjectsloop.count %]_[% loop.count %]">
300
                                                              [% SUBFIELD.value %]
301
                                                          </label>
302
                                                      </li>
303
                                                  [% END %]
304
                                                  </ul>
305
                                              [% END %]
306
                                          </div>
307
                                          <div class="modal-footer">
308
                                              <a href="#" id="validSubjectSearch" class="btn btn-primary">Search</a>
309
                                              <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
310
                                          </div>
311
                                      </div>
312
                                  [% END # /OPACPopupAuthorsSearch%]
313
314
                                  [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
315
                                      [% subjectsloop = loop %]
316
                                      [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
317
                                          [% SUBFIELD.separator %]
318
                                          [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
319
                                              <a role="button" data-toggle="modal" title="$[% SUBFIELD.code %] [% SUBFIELD.value %]" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN SUBFIELD.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]#subjectSearch" onclick="showSubjects(this, [% subjectsloop.count %], [% loop.count %]); return false;">[% SUBFIELD.value %]</a>
320
                                          [% ELSE %]
321
                                              <a title="$[% SUBFIELD.code %] [% SUBFIELD.value %]" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN SUBFIELD.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]">[% SUBFIELD.value %]</a>
322
                                          [% END %]
323
                                      [% END %]
324
                                      [% IF (MARCSUBJCT.authoritylink) %]
325
                                          <a class="authlink" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCSUBJCT.authoritylink %]"><img style="vertical-align:middle" height="15" width="15" src="[% interface %]/[% theme %]/images/filefind.png" /></a>
326
                                      [% END %]
327
                                      [% UNLESS ( loop.last ) %] | [% END %]
328
                                  [% END # / FOREACH MARCSUBJCTS %]
329
                              </div>
330
                          [% ELSE # /IF MARCSUBJCTS %]
331
                              [% IF ( subjects ) %]<span class="results_summary"><span class="label">Subject(s):</span> [% FOREACH subject IN subjects %]<a href="/cgi-bin/koha/opac-search.pl?q=su:[% subject.subject |url %]">[% subject.subject %]</a> | [% END %]</span>[% END %]
332
                          [% END %]
333
334
                          [% IF ( copyrightdate ) %]
335
                              <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate %]</span>
336
                          [% END %]
337
338
                          [% UNLESS ( item_level_itypes ) %]
339
                              [% IF ( imgeurl ) %]
340
                                  <img src="[% imageurl %]" alt="" />
341
                              [% END %]
342
                              <span class="results_summary itemtype"><span class="label">Item type: </span>
343
                                  [% IF ( description ) %]
344
                                      [% description %]
345
                                  [% ELSE %]
346
                                      [% itemtype %]
347
                                  [% END %]
348
                              </span>
349
                          [% END %]
350
351
                          [% IF ( MARCURLS ) %]
352
                              <div class="results_summary online_resources"><span class="label">Online resources:</span>
353
                                  <ul>
354
                                      [% FOREACH MARCurl IN MARCURLS %]
355
                                          <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]<br />[% END %]
356
357
                                          [% IF ( OPACURLOpenInNewWindow ) %]
358
                                              [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
359
                                                  <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&amp;biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]" target="_blank">
360
                                              [% ELSE %]
361
                                                  <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank">
362
                                              [% END %]
363
                                          [% ELSE %]
364
                                              [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
365
                                                  <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&amp;biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]">
366
                                              [% ELSE %]
367
                                                  <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">
368
                                              [% END %]
369
                                          [% END %]
437
370
438
                    [% IF ( SyndeticsEnabled ) %]
371
                                          [% MARCurl.linktext %]</a>
439
                        [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
372
                                              [% IF ( MARCurl.notes ) %]
440
                            <span class="results_summary">
373
                                                  <ul>
441
                                <span class="label">Series information:</span>
374
                                                      [% FOREACH note IN MARCurl.notes %]
442
                                [% IF ( using_https ) %]
375
                                                          <li>[% note.note %]</li>
443
                                    <a target="_blank" href="https://secure.syndetics.com/ffseries.aspx?isbn=[% normalized_isbn %]&amp;type=series&amp;num=1&amp;client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&amp;upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&amp;oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
376
                                                      [% END %]
444
                                [% ELSE %]
377
                                                  </ul>
445
                                    <a target="_blank" href="http://www.syndetics.com/ffseries.aspx?isbn=[% normalized_isbn %]&amp;type=series&amp;num=1&amp;client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&amp;upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&amp;oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
378
                                              [% END %]
446
                                [% END %]
379
                                          </li>
447
                            </span>
380
                                      [% END # /FOREACH MARCURLS %]
448
                        [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
381
                                  </ul>
449
                        [% IF ( SyndeticsAVPROFILEExists ) %]
382
                              </div>
450
                            <span class="results_summary">
383
                          [% END # / IF MARCURLS %]
451
                                <span class="label">Audiovisual profile:</span>
384
                      [% END # / IF OPACXSLTDetailsDisplay %]
452
                                [% IF ( using_https ) %]
385
453
                                    <a target="_blank" href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/avprofile.html&amp;client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&amp;upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&amp;oclc=[% normalized_oclc %][% END %]&amp;type=xw10">Click to open in new window</a>
386
                      [% IF ( AuthorisedValueImages && authorised_value_images ) %]
454
                                [% ELSE %]
387
                          <div class="authorised_value_images">
455
                                    <a target="_blank" href="http://www.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/avprofile.html&amp;client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&amp;upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&amp;oclc=[% normalized_oclc %][% END %]&amp;type=xw10">Click to open in new window</a>
388
                              [% FOREACH authorised_value_image IN authorised_value_images %]
456
                                [% END %]
389
                                  <img src="[% authorised_value_image.imageurl %]" alt="[% authorised_value_image.label %]" title="[% authorised_value_image.label %]" />
457
                            </span>
390
                              [% END %]
458
                        [% END # / IF SyndeticsAVPROFILEExists %]
391
                          </div>
459
392
                      [% END # / AuthorisedValueImages && authorised_value_images %]
460
                        [% IF ( SyndeticsFICTIONExists ) %]
393
461
                            <span class="results_summary">
394
                      <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
462
                            <span class="label">Fiction notes:</span>
395
                      [% IF ( LibraryThingForLibrariesID ) %]
463
                                [% IF ( using_https ) %]
396
                          [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
464
                                    <a target="_blank" href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/fiction.html&amp;client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&amp;upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&amp;oclc=[% normalized_oclc %][% END %]&amp;type=xw10">Click to open in new window</a>
397
                              <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
465
                                [% ELSE %]
398
                              <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
466
                                    <a target="_blank" href="http://www.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/fiction.html&amp;client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&amp;upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&amp;oclc=[% normalized_oclc %][% END %]&amp;type=xw10">Click to open in new window</a>
399
                              <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
467
                                [% END %]
400
                          [% END %]
468
                            </span>
401
                          <span class="results_summary">
469
                        [% END # / IF SyndeticsFICTIONExists %]
402
                              <span class="label">Reviews from LibraryThing.com:</span>
470
403
                              <span style="display: block;" class="ltfl_reviews"></span>
471
                        [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
404
                          </span>
472
                            <span class="results_summary">
405
                      [% END # / LibraryThingForLibrariesID %]
473
                                <span class="label">Awards:</span>
406
474
                                [% IF ( using_https ) %]
407
                      <!--This grabs all of the lists a bib record appears in -->
475
                                    <a target="_blank" href="https://secure.syndetics.com/ffawards.aspx?isbn=[% normalized_isbn %]&amp;type=awards&amp;client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&amp;upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&amp;oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
408
                      [% IF shelves.count %]
476
                                [% ELSE %]
409
                          <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
477
                                    <a target="_blank" href="http://www.syndetics.com/ffawards.aspx?isbn=[% normalized_isbn %]&amp;type=awards&amp;client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&amp;upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&amp;oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
410
                          [% FOREACH s IN shelves %]
478
                                [% END %]
411
                              <a href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=[% s.shelfnumber %]">[% s.shelfname %]</a>
479
                            </span>
412
                              [% IF ( loop.last ) %][% ELSE %]|[% END %]
480
                        [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
413
                          [% END %]
481
                    [% END # / IF SyndeticsEnabled%]
414
                          </span>
482
415
                      [% END %]
483
                    [% IF ( OpacStarRatings != 'disable' ) %]
416
484
                        <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
417
                      [% IF ( SyndeticsEnabled ) %]
485
                            <div class="results_summary ratings">
418
                          [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
486
419
                              <span class="results_summary">
487
                                [% FOREACH i  IN [ 1 2 3 4 5  ] %]
420
                                  <span class="label">Series information:</span>
488
                                    [% IF rating_avg == i && borrowernumber %]
421
                                  [% IF ( using_https ) %]
489
                                        <input class="auto-submit-star" type="radio" name="rating"  value="[% i %]"  checked="checked" />
422
                                      <a target="_blank" href="https://secure.syndetics.com/ffseries.aspx?isbn=[% normalized_isbn %]&amp;type=series&amp;num=1&amp;client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&amp;upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&amp;oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
490
                                    [% ELSIF rating_avg == i %]
423
                                  [% ELSE %]
491
                                        <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" disabled="disabled" />
424
                                      <a target="_blank" href="http://www.syndetics.com/ffseries.aspx?isbn=[% normalized_isbn %]&amp;type=series&amp;num=1&amp;client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&amp;upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&amp;oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
492
                                    [% ELSIF borrowernumber  %]
425
                                  [% END %]
493
                                        <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" />
426
                              </span>
494
                                    [% ELSE   %]
427
                          [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
495
                                        <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" disabled="disabled" />
428
                          [% IF ( SyndeticsAVPROFILEExists ) %]
496
                                    [% END %]
429
                              <span class="results_summary">
497
                                [% END %]
430
                                  <span class="label">Audiovisual profile:</span>
431
                                  [% IF ( using_https ) %]
432
                                      <a target="_blank" href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/avprofile.html&amp;client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&amp;upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&amp;oclc=[% normalized_oclc %][% END %]&amp;type=xw10">Click to open in new window</a>
433
                                  [% ELSE %]
434
                                      <a target="_blank" href="http://www.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/avprofile.html&amp;client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&amp;upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&amp;oclc=[% normalized_oclc %][% END %]&amp;type=xw10">Click to open in new window</a>
435
                                  [% END %]
436
                              </span>
437
                          [% END # / IF SyndeticsAVPROFILEExists %]
438
439
                          [% IF ( SyndeticsFICTIONExists ) %]
440
                              <span class="results_summary">
441
                              <span class="label">Fiction notes:</span>
442
                                  [% IF ( using_https ) %]
443
                                      <a target="_blank" href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/fiction.html&amp;client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&amp;upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&amp;oclc=[% normalized_oclc %][% END %]&amp;type=xw10">Click to open in new window</a>
444
                                  [% ELSE %]
445
                                      <a target="_blank" href="http://www.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/fiction.html&amp;client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&amp;upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&amp;oclc=[% normalized_oclc %][% END %]&amp;type=xw10">Click to open in new window</a>
446
                                  [% END %]
447
                              </span>
448
                          [% END # / IF SyndeticsFICTIONExists %]
449
450
                          [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
451
                              <span class="results_summary">
452
                                  <span class="label">Awards:</span>
453
                                  [% IF ( using_https ) %]
454
                                      <a target="_blank" href="https://secure.syndetics.com/ffawards.aspx?isbn=[% normalized_isbn %]&amp;type=awards&amp;client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&amp;upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&amp;oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
455
                                  [% ELSE %]
456
                                      <a target="_blank" href="http://www.syndetics.com/ffawards.aspx?isbn=[% normalized_isbn %]&amp;type=awards&amp;client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&amp;upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&amp;oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
457
                                  [% END %]
458
                              </span>
459
                          [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
460
                      [% END # / IF SyndeticsEnabled%]
461
462
                      [% IF ( BakerTaylorContentURL ) %]
463
                          <span class="results_summary">
464
                          <span class="label">Enhanced content: </span>
465
                                [% IF ( OPACURLOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
466
                          </span>
467
                      [% END # / IF BakerTaylorContentURL %]
468
469
                      [% IF ( NovelistSelectProfile ) %]
470
                          [% IF ( NovelistSelectView == 'above') %]
471
                              <span class="results_summary">
472
                              <span class="label">Novelist Select: </span>
473
                              <div data-novelist-novelistselect=[% normalized_isbn %]></div>
474
                              </span>
475
                          [% END %]
476
                      [% END # / IF NovelistSelectProfile %]
477
478
                      [% IF ( Babeltheque ) %]
479
                          <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/>
480
                          <div id="BW_notes"></div>
481
                          <div id="BW_critiques"></div>
482
                          <div id="BW_critiques_pro"></div>
483
                          <div id="BW_citations"></div>
484
                      [% END # / IF Babeltheque%]
485
486
                      [% IF ( TagsShowEnabled ) %]
487
                          <div class="results_summary tags">
488
                          [% IF ( TagLoop ) %]
489
                              <span class="label">Tags from this library:</span>
490
                              <ul id="tagslist">
491
                                  [% FOREACH TagLoo IN TagLoop %]
492
                                      <li><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&amp;q=[% TagLoo.term |url %]">[% TagLoo.term |html %]</a> <span class="weight">([% TagLoo.weight_total %])</span>
493
                                      [% IF ( loop.last ) %][% ELSE %], [% END %]
494
                                      </li>
495
                                  [% END %]
496
                              </ul>
497
                          [% ELSE %]
498
                              <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span>
499
                          [% END %]
500
                          [% IF ( TagsInputEnabled ) %] <a class="tag_add" id="tag_add[% biblionumber %]" href="#">Add tag(s)</a> [% END %]
501
                          </div>
502
                      [% END # /IF TagsShowEnabled %]
503
504
                      [% IF ( TagsInputEnabled ) %]
505
                        <div class="results_summary tagsinput">
506
                              [% IF ( loggedinusername ) %]
507
                                  <form id="tagform[% biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
508
                                      <label for="newtag[% biblionumber %]">New tag(s), separated by a comma:</label>
509
                                      <input name="newtag[% biblionumber %]" id="newtag[% biblionumber %]" maxlength="100" type="text"/>
510
                                      <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblionumber %]" type="submit" value="Add" />
511
                                      <a class="cancel_tag_add" id="cancel[% biblionumber %]" href="#">(done)</a>
512
                                  </form>
513
                                  <span id="newtag[% biblionumber %]_status" class="tagstatus" style="display:none;">
514
                                      Tag status here.
515
                                  </span>
516
                              [% ELSE %]
517
                                  <span id="login4tags">Log in to add tags.</span>
518
                              [% END %]
519
                          </div>
520
                      [% END # / IF TagsInputEnabled %]
521
522
                      [% IF ( OpacStarRatings != 'disable' ) %]
523
                          <form id="ratings" method="post" action="/cgi-bin/koha/opac-ratings.pl">
524
                              <div class="results_summary ratings">
525
526
                                  [% FOREACH i  IN [ 1 2 3 4 5  ] %]
527
                                      [% IF rating_avg == i && borrowernumber %]
528
                                          <input class="auto-submit-star" type="radio" name="rating"  value="[% i %]"  checked="checked" />
529
                                      [% ELSIF rating_avg == i %]
530
                                          <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" disabled="disabled" />
531
                                      [% ELSIF borrowernumber  %]
532
                                          <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" />
533
                                      [% ELSE   %]
534
                                          <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" disabled="disabled" />
535
                                      [% END %]
536
                                  [% END %]
498
537
499
                                <!-- define some hidden vars for ratings -->
538
                                  <!-- define some hidden vars for ratings -->
500
539
501
                                <input  type="hidden" name='biblionumber'  value="[% biblionumber %]" />
540
                                  <input  type="hidden" name='biblionumber'  value="[% biblionumber %]" />
502
                                <input  type="hidden" name='rating_value' id='rating_value' value="[% rating_value %]" />
541
                                  <input  type="hidden" name='rating_value' id='rating_value' value="[% rating_value %]" />
503
                                <input  type="hidden" name='rating_total' id='rating_total' value="[% rating_total %]" />
542
                                  <input  type="hidden" name='rating_total' id='rating_total' value="[% rating_total %]" />
504
                                <input  type="hidden" name='rating_avg_int' id='rating_avg_int' value="[% rating_avg_int %]" />
543
                                  <input  type="hidden" name='rating_avg_int' id='rating_avg_int' value="[% rating_avg_int %]" />
505
544
506
                                [% UNLESS ( rating_readonly ) %]&nbsp;  <input name="rate_button" type="submit" value="Rate me" />[% END %]&nbsp;
545
                                  [% UNLESS ( rating_readonly ) %]&nbsp;  <input name="rate_button" type="submit" value="Rate me" />[% END %]&nbsp;
507
546
508
                                [% IF ( rating_value ) %]
547
                                  [% IF ( rating_value ) %]
509
                                    <span id="rating_value_text">your rating: [% rating_value %], </span>
548
                                      <span id="rating_value_text">your rating: [% rating_value %], </span>
510
                                [% ELSE %]
549
                                  [% ELSE %]
511
                                    <span id="rating_value_text"></span>
550
                                      <span id="rating_value_text"></span>
512
                                [% END %]
551
                                  [% END %]
513
552
514
                                <span id="rating_text">average rating: [% rating_avg_int %] ([% rating_total %] votes)</span>
553
                                  <span id="rating_text">average rating: [% rating_avg_int %] ([% rating_total %] votes)</span>
515
                            </div>
554
                              </div>
516
                        </form>
555
                          </form>
517
                    [% END # / IF OpacStarRatings != 'disable' %]
556
                      [% END # / IF OpacStarRatings != 'disable' %]
518
519
                    [% IF ( BakerTaylorContentURL ) %]
520
                        <span class="results_summary">
521
                        <span class="label">Enhanced content: </span>
522
                              [% IF ( OPACURLOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
523
                        </span>
524
                    [% END # / IF BakerTaylorContentURL %]
525
526
                    [% IF ( NovelistSelectProfile ) %]
527
                        [% IF ( NovelistSelectView == 'above') %]
528
                            <span class="results_summary">
529
                            <span class="label">Novelist Select: </span>
530
                            <div data-novelist-novelistselect=[% normalized_isbn %]></div>
531
                            </span>
532
                        [% END %]
533
                    [% END # / IF NovelistSelectProfile %]
534
557
535
                    [% IF ( Babeltheque ) %]
558
                      </div> <!-- / #detail -->
536
                        <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/>
537
                        <div id="BW_notes"></div>
538
                        <div id="BW_critiques"></div>
539
                        <div id="BW_critiques_pro"></div>
540
                        <div id="BW_citations"></div>
541
                    [% END # / IF Babeltheque%]
542
559
543
                </div> <!-- / #catalogue_detail_biblio -->
560
                </div> <!-- / #catalogue_detail_biblio -->
544
561
Lines 1343-1350 Link Here
1343
    </script>
1360
    </script>
1344
    <script type="text/javascript">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
1361
    <script type="text/javascript">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
1345
[% END %]
1362
[% END %]
1346
[% IF ( OpacStarRatings != 'disable' ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %]
1363
[% IF ( OpacStarRatings != 'disable' ) %]
1347
1364
  <script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>
1365
  <script type="text/javascript">
1366
  $(document).ready(function() {
1367
    // Move rating block up the details. We can't always rely on particular fields being present.
1368
    var summaryDiv = $('.results_summary.summary');
1369
    var seriesDiv = $('.results_summary.series');
1370
    var typeDiv = $('.results_summary.type');
1371
    var authorDivs = $('h5.author'); // could be multiple
1372
    var ratingsDiv = $('#ratings');
1373
    if (summaryDiv.length === 1) {
1374
      ratingsDiv = ratingsDiv.detach();
1375
      ratingsDiv.insertBefore(summaryDiv);
1376
    } else if (seriesDiv.length === 1) {
1377
      ratingsDiv = ratingsDiv.detach();
1378
      ratingsDiv.css({'marginBottom': '1.5em'});
1379
      ratingsDiv.insertAfter(seriesDiv);
1380
    } else if (typeDiv.length === 1) {
1381
      ratingsDiv = ratingsDiv.detach();
1382
      ratingsDiv.css({'marginBottom': '1.5em'});
1383
      ratingsDiv.insertAfter(typeDiv);
1384
    } else if (authorDivs.length > 0) {
1385
      ratingsDiv = ratingsDiv.detach();
1386
      ratingsDiv.css({'marginBottom': '1.5em'});
1387
      ratingsDiv.insertAfter(authorDivs.last());
1388
    }
1389
  });
1390
  </script>
1391
[% END %]
1348
[% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script>[% END %]
1392
[% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script>[% END %]
1349
1393
1350
<script type="text/javascript">
1394
<script type="text/javascript">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-90 / +91 lines)
Lines 268-273 Link Here
268
        </span>
268
        </span>
269
        </xsl:if>
269
        </xsl:if>
270
270
271
        <!-- Summary -->
272
        <xsl:for-each select="marc:datafield[@tag=520]">
273
        <span class="results_summary summary"><span class="label">
274
        <xsl:choose>
275
          <xsl:when test="@ind1=0"><xsl:text>Subject: </xsl:text></xsl:when>
276
          <xsl:when test="@ind1=1"><xsl:text>Review: </xsl:text></xsl:when>
277
          <xsl:when test="@ind1=2"><xsl:text>Scope and content: </xsl:text></xsl:when>
278
          <xsl:when test="@ind1=3"><xsl:text>Abstract: </xsl:text></xsl:when>
279
          <xsl:when test="@ind1=4"><xsl:text>Content advice: </xsl:text></xsl:when>
280
          <xsl:otherwise><xsl:text>Summary: </xsl:text></xsl:otherwise>
281
        </xsl:choose>
282
        </span>
283
        <xsl:call-template name="subfieldSelect">
284
          <xsl:with-param name="codes">abcu</xsl:with-param>
285
        </xsl:call-template>
286
        </span>
287
        </xsl:for-each>
288
289
        <!-- 773 -->
290
        <xsl:if test="marc:datafield[@tag=773]">
291
        <xsl:for-each select="marc:datafield[@tag=773]">
292
        <xsl:if test="@ind1 !=1">
293
        <span class="results_summary in"><span class="label">
294
        <xsl:choose>
295
        <xsl:when test="@ind2=' '">
296
            In:
297
        </xsl:when>
298
        <xsl:when test="@ind2=8">
299
            <xsl:if test="marc:subfield[@code='i']">
300
                <xsl:value-of select="marc:subfield[@code='i']"/>
301
            </xsl:if>
302
        </xsl:when>
303
        </xsl:choose>
304
        </span>
305
                <xsl:variable name="f773">
306
                    <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
307
                        <xsl:with-param name="codes">a_t</xsl:with-param>
308
                    </xsl:call-template></xsl:with-param></xsl:call-template>
309
                </xsl:variable>
310
            <xsl:choose>
311
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
312
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
313
                        <xsl:value-of select="translate($f773, '()', '')"/>
314
                    </a>
315
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
316
                </xsl:when>
317
                <xsl:when test="marc:subfield[@code='0']">
318
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="marc:subfield[@code='0']"/></xsl:attribute>
319
                        <xsl:value-of select="$f773"/>
320
                    </a>
321
                </xsl:when>
322
                <xsl:otherwise>
323
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="translate($f773, '()', '')"/></xsl:attribute>
324
                        <xsl:value-of select="$f773"/>
325
                    </a>
326
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
327
                </xsl:otherwise>
328
            </xsl:choose>
329
        </span>
330
331
        <xsl:if test="marc:subfield[@code='n']">
332
            <span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
333
        </xsl:if>
334
335
        </xsl:if>
336
        </xsl:for-each>
337
        </xsl:if>
338
339
        <xsl:for-each select="marc:datafield[@tag=511]">
340
            <span class="results_summary perf_note">
341
                <span class="label">
342
                    <xsl:if test="@ind1=1"><xsl:text>Cast: </xsl:text></xsl:if>
343
                </span>
344
                <xsl:call-template name="subfieldSelect">
345
                    <xsl:with-param name="codes">a</xsl:with-param>
346
                </xsl:call-template>
347
            </span>
348
        </xsl:for-each>
349
350
        <xsl:if test="marc:datafield[@tag=502]">
351
            <span class="results_summary diss_note">
352
                <span class="label">Dissertation note: </span>
353
                <xsl:for-each select="marc:datafield[@tag=502]">
354
                    <xsl:call-template name="subfieldSelect">
355
                        <xsl:with-param name="codes">abcdgo</xsl:with-param>
356
                    </xsl:call-template>
357
                </xsl:for-each>
358
                <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise></xsl:choose>
359
            </span>
360
        </xsl:if>
361
271
        <!-- Analytics -->
362
        <!-- Analytics -->
272
        <xsl:if test="$leader7='s'">
363
        <xsl:if test="$leader7='s'">
273
        <span class="results_summary analytics"><span class="label">Analytics: </span>
364
        <span class="results_summary analytics"><span class="label">Analytics: </span>
Lines 964-1059 Link Here
964
            </span>
1055
            </span>
965
        </xsl:if>
1056
        </xsl:if>
966
1057
967
        <!-- 773 -->
968
        <xsl:if test="marc:datafield[@tag=773]">
969
        <xsl:for-each select="marc:datafield[@tag=773]">
970
        <xsl:if test="@ind1 !=1">
971
        <span class="results_summary in"><span class="label">
972
        <xsl:choose>
973
        <xsl:when test="@ind2=' '">
974
            In:
975
        </xsl:when>
976
        <xsl:when test="@ind2=8">
977
            <xsl:if test="marc:subfield[@code='i']">
978
                <xsl:value-of select="marc:subfield[@code='i']"/>
979
            </xsl:if>
980
        </xsl:when>
981
        </xsl:choose>
982
        </span>
983
                <xsl:variable name="f773">
984
                    <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
985
                        <xsl:with-param name="codes">a_t</xsl:with-param>
986
                    </xsl:call-template></xsl:with-param></xsl:call-template>
987
                </xsl:variable>
988
            <xsl:choose>
989
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
990
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
991
                        <xsl:value-of select="translate($f773, '()', '')"/>
992
                    </a>
993
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
994
                </xsl:when>
995
                <xsl:when test="marc:subfield[@code='0']">
996
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="marc:subfield[@code='0']"/></xsl:attribute>
997
                        <xsl:value-of select="$f773"/>
998
                    </a>
999
                </xsl:when>
1000
                <xsl:otherwise>
1001
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="translate($f773, '()', '')"/></xsl:attribute>
1002
                        <xsl:value-of select="$f773"/>
1003
                    </a>
1004
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
1005
                </xsl:otherwise>
1006
            </xsl:choose>
1007
        </span>
1008
1009
        <xsl:if test="marc:subfield[@code='n']">
1010
            <span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
1011
        </xsl:if>
1012
1013
        </xsl:if>
1014
        </xsl:for-each>
1015
        </xsl:if>
1016
1017
        <xsl:for-each select="marc:datafield[@tag=511]">
1018
            <span class="results_summary perf_note">
1019
                <span class="label">
1020
                    <xsl:if test="@ind1=1"><xsl:text>Cast: </xsl:text></xsl:if>
1021
                </span>
1022
                <xsl:call-template name="subfieldSelect">
1023
                    <xsl:with-param name="codes">a</xsl:with-param>
1024
                </xsl:call-template>
1025
            </span>
1026
        </xsl:for-each>
1027
1028
        <xsl:if test="marc:datafield[@tag=502]">
1029
            <span class="results_summary diss_note">
1030
                <span class="label">Dissertation note: </span>
1031
                <xsl:for-each select="marc:datafield[@tag=502]">
1032
                    <xsl:call-template name="subfieldSelect">
1033
                        <xsl:with-param name="codes">abcdgo</xsl:with-param>
1034
                    </xsl:call-template>
1035
                </xsl:for-each>
1036
                <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise></xsl:choose>
1037
            </span>
1038
        </xsl:if>
1039
1040
        <xsl:for-each select="marc:datafield[@tag=520]">
1041
        <span class="results_summary summary"><span class="label">
1042
        <xsl:choose>
1043
          <xsl:when test="@ind1=0"><xsl:text>Subject: </xsl:text></xsl:when>
1044
          <xsl:when test="@ind1=1"><xsl:text>Review: </xsl:text></xsl:when>
1045
          <xsl:when test="@ind1=2"><xsl:text>Scope and content: </xsl:text></xsl:when>
1046
          <xsl:when test="@ind1=3"><xsl:text>Abstract: </xsl:text></xsl:when>
1047
          <xsl:when test="@ind1=4"><xsl:text>Content advice: </xsl:text></xsl:when>
1048
          <xsl:otherwise><xsl:text>Summary: </xsl:text></xsl:otherwise>
1049
        </xsl:choose>
1050
        </span>
1051
        <xsl:call-template name="subfieldSelect">
1052
          <xsl:with-param name="codes">abcu</xsl:with-param>
1053
        </xsl:call-template>
1054
        </span>
1055
        </xsl:for-each>
1056
1057
        <!-- 866 textual holdings -->
1058
        <!-- 866 textual holdings -->
1058
        <xsl:if test="marc:datafield[@tag=866]">
1059
        <xsl:if test="marc:datafield[@tag=866]">
1059
            <span class="results_summary holdings_note"><span class="label">Holdings note: </span>
1060
            <span class="results_summary holdings_note"><span class="label">Holdings note: </span>
(-)a/koha-tmpl/opac-tmpl/bootstrap/less/opac.less (-9 / +29 lines)
Lines 689-699 th { Link Here
689
    .border-radius-all(3px);
689
    .border-radius-all(3px);
690
}
690
}
691
691
692
#bookcover .no-image {
693
    margin-right : 10px;
694
    margin-bottom : 10px;
695
}
696
697
td.overdue {
692
td.overdue {
698
    color : #cc3333;
693
    color : #cc3333;
699
}
694
}
Lines 1036-1041 div.rows { Link Here
1036
    padding-left : 23px;
1031
    padding-left : 23px;
1037
}
1032
}
1038
1033
1034
#catalogue_detail_biblio .author {
1035
    font-size: 114.3%;
1036
}
1037
1039
.results_summary {
1038
.results_summary {
1040
    display: block;
1039
    display: block;
1041
    font-size : 85%;
1040
    font-size : 85%;
Lines 1050-1055 div.rows { Link Here
1050
    &.tagstatus {
1049
    &.tagstatus {
1051
        display: inline;
1050
        display: inline;
1052
    }
1051
    }
1052
    &.type,
1053
    &.series {
1054
      display: inline-block;
1055
      margin-right: 1em;
1056
      font-size: 100%;
1057
1058
      .label {
1059
        font-size: 100%;
1060
      }
1061
    }
1062
    &.summary {
1063
      font-size: 100%;
1064
      margin-bottom: 1.5em;
1065
1066
      .label {
1067
        font-size: 100%;
1068
      }
1069
    }
1053
    .label {
1070
    .label {
1054
        color: #202020;
1071
        color: #202020;
1055
    }
1072
    }
Lines 1058-1063 div.rows { Link Here
1058
    }
1075
    }
1059
}
1076
}
1060
1077
1078
#ratings {
1079
  margin-bottom: 0;
1080
}
1081
1061
#views {
1082
#views {
1062
    border-bottom : 1px solid #D6D6D6;
1083
    border-bottom : 1px solid #D6D6D6;
1063
    margin-bottom : .5em;
1084
    margin-bottom : .5em;
Lines 1118-1132 span#Normalview { Link Here
1118
}
1139
}
1119
1140
1120
#bookcover {
1141
#bookcover {
1121
    float : left;
1122
    margin : 0;
1142
    margin : 0;
1123
    padding : 0;
1143
    padding : 0;
1144
    text-align: center;
1124
    .no-image {
1145
    .no-image {
1125
        margin-right : 10px;
1146
        margin: 0 auto 1em;
1126
        margin-bottom : 10px;
1127
    }
1147
    }
1128
    img {
1148
    img {
1129
        margin : 0 1em 1em 0;
1149
        margin : 10px 0 1em 0;
1130
    }
1150
    }
1131
}
1151
}
1132
1152
(-)a/koha-tmpl/opac-tmpl/bootstrap/less/responsive.less (-2 / +1 lines)
Lines 462-465 Link Here
462
    #ulactioncontainer {
462
    #ulactioncontainer {
463
        min-width : 0;
463
        min-width : 0;
464
    }
464
    }
465
}
465
}
466
- 

Return to bug 15269