From 2e95e7d5a873ba428d94c1a6d3b668f0c0821fa6 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 28 Oct 2025 17:34:50 +0000 Subject: [PATCH] Bug 41006: Update shelving location style in some contexts Bug 40606 removed the italic style from the .shelvingloc class because the information was moved into its own column on the bibliographic detail holdings table. This doesn't work for several locations in Koha where the shelving location is not displayed separately from the call number. This patch adds some specificity to the .shelvingloc class so that it is italic unless it is the direct descendant of a table cell. Everywhere else it should be in italics. The patch also makes corrections to the checkin and transfer pages so that shelving location is correctly displayed. To test, apply the patch and rebuild the staff interface CSS. - Check each instance of the .shelvingloc class. - Places where the information appears in a table without italics: - Acquisitions -> Vendor -> Receive order -> Receive a new shipment -> Receive - Circuation -> Transfers - Circulation -> Check in - Reports -> Most-circulated items - Bibligraphic detail holdings table - Cataloging -> Inventory - Places where the information should appear in italics: - Cart - Catalog search results - Tools -> Tags -> Click a tag to see tagged records - Lists -> List contents Sponsored-by: Athens County Public Libraries Signed-off-by: David Nind --- koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 5 +++++ .../intranet-tmpl/prog/en/modules/circ/branchtransfers.tt | 4 +++- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index d9ad8218cb..83fd3cde72 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1851,6 +1851,11 @@ i { // style for shelving location in catalogsearch .shelvingloc { display: block; + font-style: italic; +} + +td > .shelvingloc { + font-style: normal; } // style for bundled detail in catalogsearch diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt index 56dd990169..e545de2834 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt @@ -273,7 +273,9 @@ >[% trsfitemloo.item.barcode | html %] - [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => trsfitemloo.item.location ) | html %] + + [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => trsfitemloo.item.location ) | html %] + [% trsfitemloo.item.itemcallnumber | html %] [% ItemTypes.GetDescription( trsfitemloo.item.effective_itemtype ) | html %] [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => trsfitemloo.item.ccode ) | html %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index eb71cb8dbc..c15b168d83 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -1383,7 +1383,7 @@ [%- END -%] - [% checkin.item_location | html %] + [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => checkin.item.location ) | html %] [% checkin.item.itemcallnumber | html %] [% checkin.item.dateaccessioned | $KohaDates %] -- 2.39.5