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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-title.inc (-5 / +6 lines)
Lines 1-3 Link Here
1
[%- USE To -%]
1
[%- IF link && ! biblio %][% link = 0 %][% END %]
2
[%- IF link && ! biblio %][% link = 0 %][% END %]
2
[%- IF ( link ) -%]
3
[%- IF ( link ) -%]
3
    <a href="[%- PROCESS biblio_a_href biblionumber => biblio.biblionumber -%]" class="title">
4
    <a href="[%- PROCESS biblio_a_href biblionumber => biblio.biblionumber -%]" class="title">
Lines 8-30 Link Here
8
[%- ELSIF !biblio.title -%]
9
[%- ELSIF !biblio.title -%]
9
    <span class="biblio-no-title">No title</span>
10
    <span class="biblio-no-title">No title</span>
10
[%- ELSE -%]
11
[%- ELSE -%]
11
    <span class="biblio-title">[% biblio.title | html %]</span>
12
    <span class="biblio-title">[% biblio.title | html | $To %]</span>
12
[%- END -%]
13
[%- END -%]
13
[%- IF ( biblio.medium ) -%]
14
[%- IF ( biblio.medium ) -%]
14
    <span class="biblio-medium">[%- biblio.medium | html -%]</span>
15
    <span class="biblio-medium">[%- biblio.medium | html | $To -%]</span>
15
[%- END -%]
16
[%- END -%]
16
[%- FOREACH subtitle IN biblio.subtitle.split(' \\| ') -%][%- IF Koha.Preference('marcflavour')=='UNIMARC' -%],[%- END -%]
17
[%- FOREACH subtitle IN biblio.subtitle.split(' \\| ') -%][%- IF Koha.Preference('marcflavour')=='UNIMARC' -%],[%- END -%]
17
    <span class="subtitle">[%- subtitle | html -%]</span>
18
    <span class="subtitle">[%- subtitle | html | $To -%]</span>
18
[%- END -%]
19
[%- END -%]
19
[%- part_numbers = biblio.part_number.split(' \\| ') -%]
20
[%- part_numbers = biblio.part_number.split(' \\| ') -%]
20
[%- part_names = biblio.part_name.split(' \\| ') -%]
21
[%- part_names = biblio.part_name.split(' \\| ') -%]
21
[%- i = 0 -%]
22
[%- i = 0 -%]
22
[%- WHILE ( part_numbers.$i.defined || part_names.$i.defined ) -%]
23
[%- WHILE ( part_numbers.$i.defined || part_names.$i.defined ) -%]
23
    [%- IF ( part_numbers.$i.defined ) -%]
24
    [%- IF ( part_numbers.$i.defined ) -%]
24
        <span class="part-number">[%- part_numbers.$i | html -%]</span>
25
        <span class="part-number">[%- part_numbers.$i | html | $To -%]</span>
25
    [%- END -%]
26
    [%- END -%]
26
    [%- IF ( part_names.$i.defined ) -%]
27
    [%- IF ( part_names.$i.defined ) -%]
27
        <span class="part-name">[%- part_names.$i | html -%]</span>
28
        <span class="part-name">[%- part_names.$i | html | $To -%]</span>
28
    [%- END -%]
29
    [%- END -%]
29
    [%- i = i + 1 -%]
30
    [%- i = i + 1 -%]
30
[%- END -%]
31
[%- END -%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc (-7 / +6 lines)
Lines 13-32 Link Here
13
  "[% FILTER escape_quotes ~%]
13
  "[% FILTER escape_quotes ~%]
14
    <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber | uri %]" title="Go to record detail page">[% INCLUDE 'biblio-title.inc' | trim | collapse %]</a>[% IF ( Koha.Preference( 'marcflavour' ) == 'UNIMARC' && biblio.author ) %] by[% END %] [% biblio.author | html %]
14
    <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber | uri %]" title="Go to record detail page">[% INCLUDE 'biblio-title.inc' | trim | collapse %]</a>[% IF ( Koha.Preference( 'marcflavour' ) == 'UNIMARC' && biblio.author ) %] by[% END %] [% biblio.author | html %]
15
  [%~ END %]",
15
  [%~ END %]",
16
  "[% (biblioitem.publicationyear || biblio.copyrightdate) | html %]",
16
  "[% (biblioitem.publicationyear || biblio.copyrightdate) | html | $To %]",
17
  "[% biblioitem.publishercode | html | $To %]",
17
  "[% biblioitem.publishercode | html | $To %]",
18
  "[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]",
18
  "[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html | $To %]",
19
  "[% FILTER escape_quotes ~%]
19
  "[% FILTER escape_quotes ~%]
20
    <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]#item[% item.itemnumber | uri %]" title="Go to item details">[% item.barcode | html %]</a>
20
    <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]#item[% item.itemnumber | uri %]" title="Go to item details">[% item.barcode | html | $To %]</a>
21
  [%~ END %]",
21
  [%~ END %]",
22
  "[% item.itemnumber | html %]",
22
  "[% item.itemnumber | html %]",
23
  "[% item.enumchron | html %]",
23
  "[% item.enumchron | html | $To %]",
24
  "[% item.itemcallnumber | html %]",
24
  "[% item.itemcallnumber | html | $To %]",
25
  "[% Branches.GetName(item.homebranch) | html %]",
25
  "[% Branches.GetName(item.homebranch) | html %]",
26
  "[% Branches.GetName(item.holdingbranch) | html %]",
26
  "[% Branches.GetName(item.holdingbranch) | html %]",
27
  "[% AuthorisedValues.GetDescriptionByKohaField( frameworkcode => biblio.frameworkcode, kohafield => 'items.location', authorised_value => item.location) | html %]",
27
  "[% AuthorisedValues.GetDescriptionByKohaField( frameworkcode => biblio.frameworkcode, kohafield => 'items.location', authorised_value => item.location) | html %]",
28
  "[% ItemTypes.GetDescription(item.itype) | html %]",
28
  "[% ItemTypes.GetDescription(item.itype) | html %]",
29
  "[% item.stocknumber | html %]",
29
  "[% item.stocknumber | html  | $To %]",
30
  "[% AuthorisedValues.GetDescriptionByKohaField( frameworkcode => biblio.frameworkcode, kohafield => 'items.notforloan', authorised_value => item.notforloan) | html %]",
30
  "[% AuthorisedValues.GetDescriptionByKohaField( frameworkcode => biblio.frameworkcode, kohafield => 'items.notforloan', authorised_value => item.notforloan) | html %]",
31
  "[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) || "" | html %]",
31
  "[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) || "" | html %]",
32
  "[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) || "" | html %]",
32
  "[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) || "" | html %]",
33
- 

Return to bug 37998