diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 0c35a5e585..e0bfde7776 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -320,7 +320,6 @@ sub buildKohaItemsNamespace { for my $item (@items) { my $status; my $substatus = ''; -<<<<<<< HEAD if ($item->has_pending_hold) { $status = 'Pending hold'; @@ -343,13 +342,12 @@ sub buildKohaItemsNamespace { elsif ($item->onloan) { $status = "Checked out"; } - elsif ( $item->notforloan > 0 ) { + elsif ( $item->notforloan ) { $status = "reallynotforloan"; $substatus = $descs{$item->{notforloan}} || ''; $substatus = $substatus->{opac_description} if $substatus; } - elsif ( $item->notforloan && $item->notforloan > 0 - || exists $itemtypes->{ $item->effective_itemtype } + elsif ( exists $itemtypes->{ $item->effective_itemtype } && $itemtypes->{ $item->effective_itemtype }->{notforloan} == 1 ) { $status = "reference"; diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss index eabc76a272..70a67f633f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss +++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss @@ -2445,6 +2445,14 @@ button { color: #990033; } +.ItemSummary .LabelCallNumber::before { + content: "["; +} + +.ItemSummary .CallNumber::after { + content: "]"; +} + .waiting, .intransit, .notforloan, diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index c4061cda99..c403a4675c 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -1233,8 +1233,8 @@ - - Items available for loan: + + Items available for loan: @@ -1243,7 +1243,8 @@ - [Call number: ] + Call number: + ( @@ -1261,10 +1262,11 @@ - + - [Call number: ] + Call number: + ( @@ -1280,10 +1282,11 @@ - + - [Call number: ] + Call number: + ( @@ -1306,17 +1309,18 @@ - - Items available for reference: + + Items available for reference: - + - [Call number: ] + Call number: + ( @@ -1329,12 +1333,6 @@ - - -
-
-
- : @@ -1345,12 +1343,22 @@
- - [Call number: ] - ( - - ) - . , + + + + + + + + Call number: + + + + ( + + ) + . , +
@@ -1419,7 +1427,12 @@
- + + + Call number: + + + . ,
@@ -1432,7 +1445,12 @@ - + + + Call number: + + + . ,