Bugzilla – Attachment 15844 Details for
Bug 9456
Add callnumber column to the cart
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9456 - Add callnumber column to the cart - Add monospacing and padding for callnumbers
Bug-9456---Add-callnumber-column-to-the-cart---Add.patch (text/plain), 2.97 KB, created by
Kyle M Hall (khall)
on 2013-03-04 13:56:48 UTC
(
hide
)
Description:
Bug 9456 - Add callnumber column to the cart - Add monospacing and padding for callnumbers
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-03-04 13:56:48 UTC
Size:
2.97 KB
patch
obsolete
>From 687a9588888ac71f446d9ad1a26af804fe06cc67 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 4 Mar 2013 08:22:43 -0500 >Subject: [PATCH] Bug 9456 - Add callnumber column to the cart - Add monospacing and padding for callnumbers > >--- > .../intranet-tmpl/prog/en/css/staff-global.css | 5 +++++ > .../intranet-tmpl/prog/en/modules/basket/basket.tt | 19 ++++++++++++++++++- > 2 files changed, 23 insertions(+), 1 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >index 83b4238..5c945a7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >+++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >@@ -2556,3 +2556,8 @@ button.closebtn{padding:0;cursor:pointer;background:transparent;border:0;-webkit > .nowrap { > white-space: nowrap; > } >+ >+.monospace { >+ font-family : monaco, courier; >+ font : bold !important; >+} >\ No newline at end of file >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >index b7ea133..10bd184 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >@@ -350,6 +350,23 @@ function placeHold () { > > [% END %] > >+[% SET max_callnumber_length = 0 %] >+[% SET max_branchname_length = 0 %] >+[% SET max_locdescription_length = 0 %] >+[% FOREACH b IN BIBLIO_RESULTS %] >+ [% FOREACH i IN b.ITEM_RESULTS %] >+ [% IF i.itemcallnumber.length() > max_callnumber_length %] >+ [% SET max_callnumber_length = i.itemcallnumber.length() %] >+ [% END %] >+ [% IF i.branchname.length() > max_branchname_length %] >+ [% SET max_branchname_length = i.branchname.length() %] >+ [% END %] >+ [% IF i.location_description.length() > max_locdescription_length %] >+ [% SET max_locdescription_length = i.location_description.length() %] >+ [% END %] >+ [% END %] >+[% END %] >+ > </p> > <table id="itemst"> > <thead><tr> >@@ -385,7 +402,7 @@ function placeHold () { > <td> > [% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %] > [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %] >- <div><span class="nowrap"><strong>[% ITEM_RESULT.itemcallnumber %]</strong> [% ITEM_RESULT.branchname %] <span class="shelvingloc inline">[% ITEM_RESULT.location_description %]</span></span></div> >+ <div><span class="nowrap monospace">[% String.new( ITEM_RESULT.itemcallnumber ).left( max_callnumber_length ).replace(' ', ' ') %] [% String.new( ITEM_RESULT.branchname ).left( max_branchname_length ).replace(' ', ' ') %] <span class="shelvingloc inline">[% String.new( ITEM_RESULT.location_description ).left( max_locdescription_length ).replace(' ', ' ') %]</span></span></div> > [% END %] > [% ELSE %] > This record has no items. >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9456
:
14779
|
14780
|
14782
|
14783
|
14861
|
14903
|
14904
|
15542
|
15544
|
15727
|
15728
|
15759
|
15760
|
15813
|
15844
|
15845
|
15846
|
15847
|
15848
|
15937
|
15938
|
15941
|
15943
|
15944
|
15949
|
15950
|
16630
|
16631
|
16734
|
17994
|
17995
|
17996
|
17997
|
19123
|
19124
|
19125
|
19126
|
19146
|
19844
|
19845
|
19846
|
19847
|
19848
|
19849
|
20341
|
20385
|
20386
|
20387
|
20388
|
20389
|
20390