Bugzilla – Attachment 62616 Details for
Bug 18466
No article requests breaks the opac-user-views block
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18466: article requests box outline in opac
Bug-18466-article-requests-box-outline-in-opac.patch (text/plain), 14.22 KB, created by
Jonathan Druart
on 2017-04-24 16:35:03 UTC
(
hide
)
Description:
Bug 18466: article requests box outline in opac
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-04-24 16:35:03 UTC
Size:
14.22 KB
patch
obsolete
>From 57e5a150abe9890841df7ac9968fb18e379d1eec Mon Sep 17 00:00:00 2001 >From: phette23 <phette23@gmail.com> >Date: Thu, 20 Apr 2017 17:15:57 -0700 >Subject: [PATCH] Bug 18466: article requests box outline in opac >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >To test: >1) apply patch >2) ensure ArticleRequests is set to Enable >3) sign in as a user with no article requests on the OPAC side >4) click the 'article requests' tab & see the box & message > >Sponsored-By: California College of the Arts > >Signed-off-by: Marc Véron <veron@veron.ch> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../opac-tmpl/bootstrap/en/modules/opac-user.tt | 166 +++++++++++---------- > 1 file changed, 86 insertions(+), 80 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >index a715178..e724b18 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >@@ -727,100 +727,106 @@ Using this account is not recommended because some parts of Koha will not functi > </div> <!-- / #opac-user-holds --> > [% END # / #RESERVES.count %] > >- [% IF Koha.Preference('ArticleRequests') && borrower.article_requests_current.count %] >+ [% IF Koha.Preference('ArticleRequests') %] > <div id="opac-user-article-requests"> >- <table id="article-requests-table" class="table table-bordered table-striped"> >- <caption>Article requests <span class="count">([% borrower.article_requests_current.count %] total)</span></caption> >- <thead> >- <tr> >- <th class="anti-the article-request-record-title">Record title</th> >- <th class="psort article-request-created-on">Placed on</th> >- <th class="anti-the article-request-title">Title</th> >- <th class="article-request-author">Author</th> >- <th class="article-request-volume">Volume</th> >- <th class="article-request-issue">Issue</th> >- <th class="article-request-date">Date</th> >- <th class="article-request-pages">Pages</th> >- <th class="article-request-chapters">Chapters</th> >- <th class="article-request-patron-notes">Notes</th> >- <th class="article-request-status">Status</th> >- <th class="article-request-branchcode">Pickup library</th> >- <th class="nosort article-request-cancel"> </th> >- </tr> >- </thead> >+ [% IF borrower.article_requests_current.count %] >+ <table id="article-requests-table" class="table table-bordered table-striped"> >+ <caption>Article requests <span class="count">([% borrower.article_requests_current.count %] total)</span></caption> >+ <thead> >+ <tr> >+ <th class="anti-the article-request-record-title">Record title</th> >+ <th class="psort article-request-created-on">Placed on</th> >+ <th class="anti-the article-request-title">Title</th> >+ <th class="article-request-author">Author</th> >+ <th class="article-request-volume">Volume</th> >+ <th class="article-request-issue">Issue</th> >+ <th class="article-request-date">Date</th> >+ <th class="article-request-pages">Pages</th> >+ <th class="article-request-chapters">Chapters</th> >+ <th class="article-request-patron-notes">Notes</th> >+ <th class="article-request-status">Status</th> >+ <th class="article-request-branchcode">Pickup library</th> >+ <th class="nosort article-request-cancel"> </th> >+ </tr> >+ </thead> > >- <tbody> >- [% FOREACH ar IN borrower.article_requests_current %] >- <td class="article-request-record-title"> >- <a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber %]"> >- [% ar.biblio.title %] >- [% ar.item.enumchron %] >- </a> >- [% ar.biblio.author %] >- [% IF ar.itemnumber %] <i>(only [% ar.item.barcode %])</i>[% END %] >- </td> >+ <tbody> >+ [% FOREACH ar IN borrower.article_requests_current %] >+ <td class="article-request-record-title"> >+ <a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber %]"> >+ [% ar.biblio.title %] >+ [% ar.item.enumchron %] >+ </a> >+ [% ar.biblio.author %] >+ [% IF ar.itemnumber %] <i>(only [% ar.item.barcode %])</i>[% END %] >+ </td> > >- <td class="article-request-created_on"> >- [% ar.created_on | $KohaDates %] >- </td> >+ <td class="article-request-created_on"> >+ [% ar.created_on | $KohaDates %] >+ </td> > >- <td class="article-request-title"> >- [% ar.title %] >- </td> >+ <td class="article-request-title"> >+ [% ar.title %] >+ </td> > >- <td class="article-request-author"> >- [% ar.author %] >- </td> >+ <td class="article-request-author"> >+ [% ar.author %] >+ </td> > >- <td class="article-request-volume"> >- [% ar.volume %] >- </td> >+ <td class="article-request-volume"> >+ [% ar.volume %] >+ </td> > >- <td class="article-request-issue"> >- [% ar.issue %] >- </td> >+ <td class="article-request-issue"> >+ [% ar.issue %] >+ </td> > >- <td class="article-request-date"> >- [% ar.date %] >- </td> >+ <td class="article-request-date"> >+ [% ar.date %] >+ </td> > >- <td class="article-request-pages"> >- [% ar.pages %] >- </td> >+ <td class="article-request-pages"> >+ [% ar.pages %] >+ </td> > >- <td class="article-request-chapters"> >- [% ar.chapters %] >- </td> >+ <td class="article-request-chapters"> >+ [% ar.chapters %] >+ </td> > >- <td class="article-request-patron-notes"> >- [% ar.patron_notes %] >- </td> >+ <td class="article-request-patron-notes"> >+ [% ar.patron_notes %] >+ </td> > >- <td class="article-request-status"> >- [% IF ar.status == 'PENDING' %] >- Pending >- [% ELSIF ar.status == 'PROCESSING' %] >- Processing >- [% ELSIF ar.status == 'COMPLETED' %] >- Completed >- [% ELSIF ar.status == 'CANCELED' %] >- Canceled >- [% END %] >- </td> >+ <td class="article-request-status"> >+ [% IF ar.status == 'PENDING' %] >+ Pending >+ [% ELSIF ar.status == 'PROCESSING' %] >+ Processing >+ [% ELSIF ar.status == 'COMPLETED' %] >+ Completed >+ [% ELSIF ar.status == 'CANCELED' %] >+ Canceled >+ [% END %] >+ </td> > >- <td class="article-request-branchcode"> >- [% ar.branch.branchname %] >- </td> >+ <td class="article-request-branchcode"> >+ [% ar.branch.branchname %] >+ </td> > >- <td class="article-request-cancel"> >- <span class="tdlabel">Cancel:</span> >- <a class="btn btn-mini btn-danger" href="opac-article-request-cancel.pl?id=[% ar.id %]" onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);"><i class="icon-remove icon-white"></i> Cancel</a> >- <!-- TODO: replace MSG_CONFIRM_DELETE_HOLD with correct message --> >- </td> >- </tr> >- [% END %] >- </tbody> >- </table> >+ <td class="article-request-cancel"> >+ <span class="tdlabel">Cancel:</span> >+ <a class="btn btn-mini btn-danger" href="opac-article-request-cancel.pl?id=[% ar.id %]" onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);"><i class="icon-remove icon-white"></i> Cancel</a> >+ <!-- TODO: replace MSG_CONFIRM_DELETE_HOLD with correct message --> >+ </td> >+ </tr> >+ [% END %] >+ </tbody> >+ </table> >+ [% ELSE %] >+ <table class="table table-bordered table-striped"> >+ <tr><td>You have no article requests currently.</td></tr> >+ </table> >+ [% END # IF article_requests_current.count %] > </div> <!-- / #opac-user-article-requests --> > [% END %] > >-- >2.9.3
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 18466
:
62508
|
62509
|
62563
| 62616