From ef92ad31bffc80c308e9ed693b9de88391603b05 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 20 Sep 2017 13:21:27 +0000 Subject: [PATCH] Bug 19348: Title column in item search is too narrow This patch adds IDs to the item search results table header so that columns can be targeted by CSS or JS. The CSS for the item search page has been modified to give the title column a minimum width. To test, apply the patch and clear your browser cache if necessary. Perform an item search and confirm that the title column stays at a reasonable width. Signed-off-by: Dominic Pichette Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/css/itemsearchform.css | 4 +++ .../prog/en/modules/catalogue/itemsearch.tt | 26 +++++++++---------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/itemsearchform.css b/koha-tmpl/intranet-tmpl/prog/css/itemsearchform.css index 8edc94102d..d94c5109b0 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/itemsearchform.css +++ b/koha-tmpl/intranet-tmpl/prog/css/itemsearchform.css @@ -42,3 +42,7 @@ th select { width: 100%; font-weight: normal; } + +th#items_title { + min-width: 12em; +} \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt index 5588242c71..5e02cc40c7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt @@ -239,19 +239,19 @@ function submitForm($form) { var tr = '' + ' ' - + ' ' + _("Title") + '' - + ' ' + _("Publication date") + '' - + ' ' + _("Publisher") + '' - + ' ' + _("Collection") + '' - + ' ' + _("Barcode") + '' - + ' ' + _("Call number") + '' - + ' ' + _("Home library") + '' - + ' ' + _("Current location") + '' - + ' ' + _("Shelving location") + '' - + ' ' + _("Inventory number") + '' - + ' ' + _("Status") + '' - + ' ' + _("Checkouts") + '' - + ' ' + + ' ' + _("Title") + '' + + ' ' + _("Publication date") + '' + + ' ' + _("Publisher") + '' + + ' ' + _("Collection") + '' + + ' ' + _("Barcode") + '' + + ' ' + _("Call number") + '' + + ' ' + _("Home library") + '' + + ' ' + _("Current location") + '' + + ' ' + _("Shelving location") + '' + + ' ' + _("Inventory number") + '' + + ' ' + _("Status") + '' + + ' ' + _("Checkouts") + '' + + ' ' + ' ' var table = '' + '' -- 2.39.5