Bugzilla – Attachment 95879 Details for
Bug 18355
Add 'permanent location' alongside 'shelving location' when located on cart
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18355: Display permanent location with cart location
Bug-18355-Display-permanent-location-with-cart-loc.patch (text/plain), 2.84 KB, created by
Marcel de Rooy
on 2019-11-29 11:18:20 UTC
(
hide
)
Description:
Bug 18355: Display permanent location with cart location
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2019-11-29 11:18:20 UTC
Size:
2.84 KB
patch
obsolete
>From a09408146da7be1d2bdf51ab06adb1653827c1ba Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 1 Oct 2018 11:23:48 -0300 >Subject: [PATCH] Bug 18355: Display permanent location with cart location >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 17 ++++++++++++++++- > 1 file changed, 16 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index daa9c20bee..c221982dd9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -266,7 +266,22 @@ > <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td> > <td class="homebranch"> > [% Branches.GetName(item.homebranch) | html %] >- <span class="shelvingloc">[% item.location | html %]</span> >+ <span class="shelvingloc"> >+ [%# 1 - If permanent location is defined %] >+ [%# a - display the description if available, display the code if not %] >+ [%# b - display the current location in parens %] >+ [%# 2 - If permanent location is not defined, but location is defined %] >+ [%# a - display the current location description if available, display the code if not %] >+ [%# 3 - If neither are defined, show nothing %] >+ [% IF item.permanent_location %] >+ [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) | html %] >+ [% IF item.location AND item.location != item.permanent_location %] >+ ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %]) >+ [% END %] >+ [% ELSIF item.location %] >+ [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) | html %] >+ [% END %] >+ </span> > </td> > [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %] > <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td> >-- >2.11.0
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 18355
:
61978
|
61981
|
61984
|
62999
|
66432
|
66514
|
78584
|
78908
|
78913
|
79684
|
79717
|
79786
|
80153
|
83665
|
95775
| 95879 |
95880