Bugzilla – Attachment 65514 Details for
Bug 17277
Current Location column in Holdings table showing empty under OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17277: Always display location and *branch item info - opac detail
Bug-17277-Always-display-location-and-branch-item-.patch (text/plain), 9.21 KB, created by
Tomás Cohen Arazi (tcohen)
on 2017-08-04 19:25:36 UTC
(
hide
)
Description:
Bug 17277: Always display location and *branch item info - opac detail
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2017-08-04 19:25:36 UTC
Size:
9.21 KB
patch
obsolete
>From 26e0585045cfb32162db46d03eaf59ac876189a2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 12 Jul 2017 09:32:24 -0300 >Subject: [PATCH] Bug 17277: Always display location and *branch item info - > opac detail > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../opac-tmpl/bootstrap/en/modules/opac-detail.tt | 87 ++++++++++------------ > 1 file changed, 39 insertions(+), 48 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index d95dc8c3eb..bf5e43f398 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -1182,13 +1182,11 @@ > <thead> > <tr> > [% IF ( item_level_itypes ) %]<th id="item_itemtype" class="itype">Item type</th>[% END %] >- [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' || singleBranchMode ) %] >+ [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %] > <th id="item_current_location" class="item_location">Current location</th> > [% END %] >- [% UNLESS ( singleBranchMode ) %] >- [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %] >- <th id="item_home_location" class="item_location">Home library</th> >- [% END %] >+ [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %] >+ <th id="item_home_location" class="item_location">Home library</th> > [% END %] > [% IF ( itemdata_ccode ) %]<th id="item_ccode" class="collection">Collection</th>[% END %] > <th id="item_callnumber" class="call_no">Call number</th> >@@ -1224,54 +1222,49 @@ > [% ITEM_RESULT.description %] > </td> > [% END %] >- [% UNLESS singleBranchMode %] >- [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %] >- <td class="location" property="seller"> >- <link property="itemOffered" href="#record" /> >- <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut"> >- <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title=""> >- [% IF ( ITEM_RESULT.branchurl ) %] >- <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a> >- [% ELSE %] >- <span>[% ITEM_RESULT.branchname %]</span> >- [% END %] >- </span> >- <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info %]</div> >- >- [% IF ( OpacLocationBranchToDisplayShelving == 'holding' || OpacLocationBranchToDisplayShelving == 'both' ) %] >- <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span> >+ [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %] >+ <td class="location" property="seller"> >+ <link property="itemOffered" href="#record" /> >+ <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut"> >+ <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title=""> >+ [% IF ( ITEM_RESULT.branchurl ) %] >+ <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a> >+ [% ELSE %] >+ <span>[% ITEM_RESULT.branchname %]</span> > [% END %] >+ </span> >+ <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info %]</div> > >- </td> >- [% END %] >+ [% IF ( OpacLocationBranchToDisplayShelving == 'holding' || OpacLocationBranchToDisplayShelving == 'both' ) %] >+ <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span> >+ [% END %] > >- [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %] >- <td class="location" property="seller"> >- <link property="itemOffered" href="#record" /> >- <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut"> >- <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title=""> >- [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %] >- [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %] >- [% IF ( home_branch_url ) %] >- <a href="[% home_branch_url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) %]</a> >- [% ELSE %] >- <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span> >- [% END %] >+ </td> >+ [% END %] >+ >+ [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %] >+ <td class="location" property="seller"> >+ <link property="itemOffered" href="#record" /> >+ <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut"> >+ <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title=""> >+ [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %] >+ [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %] >+ [% IF ( home_branch_url ) %] >+ <a href="[% home_branch_url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) %]</a> > [% ELSE %] > <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span> > [% END %] >- </span> >- <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info %]</div> >- >- [% IF ( OpacLocationBranchToDisplayShelving == 'home' || OpacLocationBranchToDisplayShelving == 'both' ) %] >- <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span> >+ [% ELSE %] >+ <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span> > [% END %] >+ </span> >+ <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info %]</div> > >- </td> >- [% END %] >+ [% IF ( OpacLocationBranchToDisplayShelving == 'home' || OpacLocationBranchToDisplayShelving == 'both' ) %] >+ <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span> >+ [% END %] > >- [% ELSE %] >- <td class="location"><span class="shelvingloc">[% ITEM_RESULT.location_description %]</span></td> >+ </td> > [% END %] > > [% IF ( itemdata_ccode ) %] >@@ -1481,10 +1474,8 @@ > $(".holdingst").dataTable($.extend(true, {}, dataTablesDefaults, { > "aoColumns": [ > [% IF ( item_level_itypes ) %]null,[% END %] >- [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' || singleBranchMode ) %]null,[% END %] >- [% UNLESS ( singleBranchMode ) %] >- [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]null,[% END %] >- [% END %] >+ [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]null,[% END %] >+ [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]null,[% END %] > [% IF ( itemdata_ccode ) %]null,[% END %] > null, > [% IF ( itemdata_enumchron ) %]null,[% END %] >-- >2.13.4
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 17277
:
55333
|
57410
|
65008
|
65499
| 65514