Bugzilla – Attachment 126323 Details for
Bug 27817
Enhance display of title information throughout acquisitions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27817: Use biblio-title include in some acquisitions pages
Bug-27817-Use-biblio-title-include-in-some-acquisi.patch (text/plain), 5.81 KB, created by
Owen Leonard
on 2021-10-15 12:09:26 UTC
(
hide
)
Description:
Bug 27817: Use biblio-title include in some acquisitions pages
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2021-10-15 12:09:26 UTC
Size:
5.81 KB
patch
obsolete
>From ef2fcf41f0a5b9d9f2e94b927febcbdcd84bd6f6 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 29 Mar 2021 14:57:22 +0000 >Subject: [PATCH] Bug 27817: Use biblio-title include in some acquisitions > pages > >This patch adds the use of the biblio-title include in acquisitions >templates which get the right data from their corresponding scripts. > >To test, apply the patch and test these Acquisitions pages to confirm >that titles with 245$b, 245$h, etc, show all the correct information. > >- Acquisitions -> Vendor -> Basket >- Acquisitions -> Vendor -> Uncertain prices >- Acquisitions -> Invoices -> Invoice >- Acquisitions -> Invoices -> Invoice -> View an invoice which has an > already-received bibliographic record. > - Go to receipt page -> Already received. > -- The "Pending orders" table is unmodified because I wasn't sure > how to use the biblio-title include in an AJAX DataTable. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt | 6 +++--- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt | 2 +- > .../intranet-tmpl/prog/en/modules/acqui/orderreceive.tt | 6 +++++- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt | 3 ++- > .../intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt | 2 +- > 5 files changed, 12 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >index a63dd515e3..413e8ce65e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >@@ -521,9 +521,9 @@ > <td> > <p> > [% IF ( books_loo.order_received ) %] <span class="order-received">(received)</span>[% END %] >- [%- IF books_loo.title %] >- <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% books_loo.biblionumber | uri %]">[% books_loo.title | html %]</a>[% IF books_loo.author %] by [% books_loo.author | html %][% END -%] >- [%- ELSE -%] >+ [% IF books_loo.title %] >+ [% INCLUDE 'biblio-title.inc' biblio=books_loo link = 1 %] [% IF books_loo.author %] by [% books_loo.author | html %][% END %] >+ [% ELSE %] > <em>Deleted bibliographic record, can't find title</em><br /> > [%- END %] > <br /> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt >index ce0a059b87..18220847df 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt >@@ -364,7 +364,7 @@ > <tr> > <td> > [% IF order.biblionumber %] >- <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber | uri %]">[% order.title | html %]</a> >+ [% INCLUDE 'biblio-title.inc' biblio=order link = 1 %] > [% IF ( order.author ) %] > <br /><em>by</em> [% order.author | html %] > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >index 1a19ca32ef..dc1a88903b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >@@ -53,7 +53,11 @@ > > <fieldset class="rows"> > <legend>Catalog details</legend> >- <ol><li><span class="label">Title: </span><span class="title">[% order.biblio.title | html %]</span></li> >+ <ol> >+ <li> >+ <span class="label">Title: </span> >+ [% INCLUDE 'biblio-title.inc' biblio=order.biblio link = 1 %] >+ </li> > <li> <span class="label">Author: </span> > [% order.biblio.author | html %]</li> > <li><span class="label">Copyright: </span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt >index b92a4291cc..b940ab716a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt >@@ -228,7 +228,8 @@ > 0 > [% END %] > </td> >- <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber | uri %]">[% order.title | html %]</a> >+ <td> >+ [% INCLUDE 'biblio-title.inc' biblio=order link = 1 %] > [% IF ( order.author ) %] / [% order.author | html %][% END %] > [% IF ( order.isbn ) %] - [% order.isbn | html %][% END %] > [% IF ( order.publishercode ) %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt >index b40e3c27a0..284cc9d570 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt >@@ -115,7 +115,7 @@ > [% uncertainpriceorder.basketname | html %] > </td> > <td> >- <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% uncertainpriceorder.biblionumber | uri %]">[% uncertainpriceorder.title | html %]</a> >+ [% INCLUDE 'biblio-title.inc' biblio=uncertainpriceorder link = 1 %] > [% IF ( uncertainpriceorder.author ) %] <em>by</em> [% uncertainpriceorder.author | html %][% END %] > [% IF ( uncertainpriceorder.publishercode ) %] > <br /><em>Publisher:</em> [% uncertainpriceorder.publishercode | html %] >-- >2.20.1
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 27817
:
118969
|
126323
|
130899
|
130900
|
130901
|
139517
|
139564
|
139679
|
140734