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

(-)a/catalogue/detail.pl (-1 / +1 lines)
Lines 102-108 my $showallitems = $query->param('showallitems'); Link Here
102
my $marcflavour  = C4::Context->preference("marcflavour");
102
my $marcflavour  = C4::Context->preference("marcflavour");
103
103
104
# XSLT processing of some stuff
104
# XSLT processing of some stuff
105
my $xslfile = C4::Context->preference('XSLTDetailsDisplay');
105
my $xslfile = C4::Context->preference('XSLTDetailsDisplay') || "default";
106
my $lang   = $xslfile ? C4::Languages::getlanguage()  : undef;
106
my $lang   = $xslfile ? C4::Languages::getlanguage()  : undef;
107
my $sysxml = $xslfile ? C4::XSLT::get_xslt_sysprefs() : undef;
107
my $sysxml = $xslfile ? C4::XSLT::get_xslt_sysprefs() : undef;
108
108
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref (-1 / +1 lines)
Lines 76-82 Staff Client: Link Here
76
            - 'Display details in the staff client using XSLT stylesheet at: '
76
            - 'Display details in the staff client using XSLT stylesheet at: '
77
            - pref: XSLTDetailsDisplay
77
            - pref: XSLTDetailsDisplay
78
              class: file
78
              class: file
79
            - '<br />Options:<ul><li><a href="#" class="set_syspref" data-syspref="XSLTDetailsDisplay" data-value="">Leave empty</a> for "no xslt"</li><li>enter "<a href="#" class="set_syspref" data-syspref="XSLTDetailsDisplay" data-value="default">default</a>" for the default one</li><li>put a path to define a xslt file</li><li>put an URL for an external specific stylesheet.</li></ul>{langcode} will be replaced with current interface language'
79
            - '<br />Options:<ul><li>enter "<a href="#" class="set_syspref" data-syspref="XSLTDetailsDisplay" data-value="default">default</a>" for the default one</li><li>put a path to define a xslt file</li><li>put an URL for an external specific stylesheet.</li></ul>{langcode} will be replaced with current interface language'
80
        -
80
        -
81
            - pref: DisplayIconsXSLT
81
            - pref: DisplayIconsXSLT
82
              choices:
82
              choices:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-161 / +2 lines)
Lines 69-92 Link Here
69
    [% END %]
69
    [% END %]
70
70
71
    [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled ) %]
71
    [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled ) %]
72
        [% IF ( XSLTDetailsDisplay ) %]
72
        <div class="yui-gc">
73
            <div class="yui-gc">
74
            <div id="catalogue_detail_biblio" class="yui-u first">
73
            <div id="catalogue_detail_biblio" class="yui-u first">
75
        [% ELSE %]
76
            <div class="yui-gb">
77
            <div id="catalogue_detail_biblio" class="yui-u first">
78
        [% END %]
79
    [% ELSE %]
74
    [% ELSE %]
80
        [% IF ( XSLTDetailsDisplay ) %]
75
        <div class="yui-g">
81
            <div class="yui-g">
82
            <div id="catalogue_detail_biblio">
76
            <div id="catalogue_detail_biblio">
83
        [% ELSE %]
84
            <div class="yui-g">
85
            <div id="catalogue_detail_biblio" class="yui-u first">
86
        [% END %]
87
    [% END %]
77
    [% END %]
88
78
89
    [% IF ( XSLTDetailsDisplay ) %]
90
        [% XSLTBloc | $raw %]
79
        [% XSLTBloc | $raw %]
91
80
92
        [% IF shelves.count %]
81
        [% IF shelves.count %]
Lines 148-300 Link Here
148
        </a></div>
137
        </a></div>
149
        [% END %]
138
        [% END %]
150
        [% END %]
139
        [% END %]
151
    [% ELSE %]
152
153
    <h3>[% title | html %]</h3>
154
    [% FOREACH subtitl IN subtitle %]
155
    	<h4>[% subtitl.subfield | html %]</h4>
156
    [% END %]
157
            [% UNLESS ( item_level_itypes ) %]<img src="[% imageurl | html %]" alt="[% translated_description | html %]" title="[% translated_description | html %]">[% END %]
158
            [% IF ( unititle ) %]<p>[% unititle | html %]</p>[% END %]
159
            [% IF ( author ) %]<p>By <a href="/cgi-bin/koha/catalogue/search.pl?q=au:[% author |url %]">[% author | html %]</a></p>[% END %]
160
        <ul>
161
        [% IF ( MARCAUTHORS ) %]
162
            <li><strong>Additional authors:</strong><ul>
163
            [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
164
                <li>[% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% MARCAUTHOR_SUBFIELDS_LOO.separator | html %]<a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code | html %] [% MARCAUTHOR_SUBFIELDS_LOO.value |url %]" href="/cgi-bin/koha/catalogue/search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit | html %]:[% link_loo.link |url %][% END %]">[% MARCAUTHOR_SUBFIELDS_LOO.value | html %]</a>[% END %]</li>
165
                [% END %]
166
167
        </ul>
168
            </li>
169
        [% END %]
170
[% IF ( MARCSERIES ) %]
171
		<li><strong>Series: </strong><ul>[% FOREACH MARCSERIE IN MARCSERIES %]
172
		<li>[% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %] [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]<a href="/cgi-bin/koha/catalogue/search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value | html %]</a>[% END %][% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]. [% MARCSERIES_SUBFIELDS_LOO.volumenum | html %][% END %][% END %]</li> 
173
		[% END %]
174
		</ul>
175
		</li>
176
[% END %]
177
        [% IF ( publishercode ) %]
178
    <li><strong>Published by:</strong>
179
        <a href="/cgi-bin/koha/catalogue/search.pl?q=pb:[% publishercode |url %]">
180
            [% publishercode | html %]
181
        </a> [% IF ( place ) %]([% place | html %])[% END %] [% IF ( publicationyear ) %], [% publicationyear | html %][% END %] [% IF ( editionstatement ) %][% editionstatement | html %][% END %] [% IF ( editionresponsibility ) %][% editionresponsibility | html %][% END %]
182
    </li>
183
    [% END %]
184
        <li><strong>Description:</strong>
185
                [% IF ( pages ) %] [% END %][% pages | html %] [% IF ( illus ) %][% illus | html %][% END %]
186
                [% IF ( size ) %][% size | html %][% END %]
187
        </li>
188
[% IF ( MARCURLS ) %]<li>
189
    
190
    <strong>Online resources:</strong>
191
    <ul>    [% FOREACH MARCurl IN MARCURLS %]
192
		<li>[% IF ( MARCurl.part ) %][% MARCurl.part | html %]
193
			<br />[% END %] 
194
		<!-- here you might do a tmpl_if name="toc" and use greybox or equivalent for table of contents -->
195
        <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]">[% MARCurl.linktext | html %]</a>
196
			[% IF ( MARCurl.notes ) %]<ul>[% FOREACH note IN MARCurl.notes %]<li>[% note.note | html %]</li>[% END %]</ul>[% END %]</li>
197
            [% END %]</ul>
198
</li>
199
    [% END %]
200
201
    [% IF ( OPACBaseURL ) %]
202
        <li><strong>OPAC view:</strong>
203
        <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | uri %]" target="_blank">Open in new window</a>
204
        </li>
205
    [% END %]
206
        <li id="catalogue_detail_marc_preview">
207
            <strong>MARC Preview:</strong>
208
            <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber | uri %]" title="MARC" rel="gb_page_center[600,500]">Show</a>
209
        </li>
210
        </ul>
211
        </div>
212
       
213
    [% IF ( AmazonCoverImages  || LocalCoverImages ) %]
214
        <div class="yui-u" id="bookcoverimg">
215
        [% IF ( LocalCoverImages ) %]
216
            <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
217
        [% END %]
218
        [% IF ( AmazonCoverImages ) %]
219
            <div id="amazon-bookcoverimg">
220
            <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
221
            <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
222
            </a>
223
        </div>
224
        [% END %]
225
        </div>
226
    [% END %]
227
        
228
        <div class="yui-u" style="margin-top: 1em;">
229
        <ul>
230
        [% IF ( MARCISBNS ) %]
231
            <li><strong>ISBN:</strong><ul>[% FOREACH MARCISBN IN MARCISBNS %]<li>[% MARCISBN | html %]</li>[% END %]</ul></li>
232
        [% ELSE %]
233
            [% IF ( normalized_isbn ) %]
234
                <li><strong>ISBN:</strong> [% normalized_isbn | html %]</li>
235
            [% END %]
236
        [% END %]
237
        [% IF ( issn ) %]
238
            <li><strong>ISSN:</strong>[% issn | html %]</li>
239
        [% END %]
240
        [% IF ( collectiontitle ) %]
241
            <li><strong>Collection: </strong>
242
                [% collectiontitle | html %] [% IF ( collectionvolume ) %], [% collectionvolume | html %][% END %][% IF ( collectionissn ) %] (<strong>ISSN:</strong> [% collectionissn | html %])[% END %]
243
            </li>
244
        [% END %]
245
        [% IF ( MARCSUBJCTS ) %]
246
            <li><strong>Subjects:</strong> 
247
            <ul>
248
                [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
249
                <li>[% FOREACH MARCSUBJECT_SUBFIELDS_LOO IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %] [% MARCSUBJECT_SUBFIELDS_LOO.separator | html %] <a title="‡[% MARCSUBJECT_SUBFIELDS_LOO.code | html %] [% MARCSUBJECT_SUBFIELDS_LOO.value | html %]" href="/cgi-bin/koha/catalogue/search.pl?q=[% FOREACH link_loo IN MARCSUBJECT_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit | html %]:[% link_loo.link |url %][% END %]">[% MARCSUBJECT_SUBFIELDS_LOO.value | html %]</a>[% END %]</li>
250
                [% END %]
251
                </ul>
252
            </li>
253
        [% END %]
254
        [% IF ( copyrightdate ) %]
255
            <li><strong>Copyright:</strong> [% copyrightdate | html %]</li>
256
        [% END %]
257
     
258
        [% IF ( classification ) %]
259
            <li><strong>Classification:</strong> [% subclass | html %][% classification | html %]</li>
260
        [% END %]
261
        [% IF ( dewey ) %]
262
            <li><strong>Dewey:</strong> [% dewey | html %]</li>
263
        [% END %]
264
        [% IF ( urlS ) %]
265
            <li><strong>URL:</strong>
266
                [% FOREACH url IN urlS %]
267
                    <a href="[% url.url | url %]">[% url.url | html %]</a>
268
                [% END %]
269
            </li>
270
        [% END %]
271
        <!--This grabs all of the lists a bib record appears in -->
272
        [% IF shelves.count %]
273
            <li><strong>Lists that include this title: </strong>
274
            <ul>
275
            [% FOREACH s IN shelves %]
276
                <li><a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a></li>
277
            [% END %]
278
            </ul>
279
            </li>
280
        [% END %]
281
        [% IF ( TagsEnabled &&  TagsShowOnDetail &&  TagLoop ) %]
282
                <li><strong>Tags:</strong>
283
                    <ul id="tagslist">
284
                    [% FOREACH TagLoo IN TagLoop %]
285
                        <li>
286
                        [% IF ( CAN_user_tools_moderate_tags ) %]
287
                        <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
288
                        [% ELSE %]
289
                        [% TagLoo.term | html %]
290
                        [% END %]
291
                        <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]</li>
292
                    [% END %]
293
                    </ul></li>
294
        [% END %]
295
            [% IF ( holdcount ) %]<li><strong>Holds:</strong> <span class="number_box"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a></span></li>[% ELSE %][% END %]
296
        </ul>
297
		[% END %]
298
140
299
</div>
141
</div>
300
</div>
142
</div>
301
- 

Return to bug 21891