Bugzilla – Attachment 165155 Details for
Bug 35994
New acquisition status method to see if biblio record is still in acquisition
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35994: Show acq_status on catalogue/detail
Bug-35994-Show-acqstatus-on-cataloguedetail.patch (text/plain), 2.29 KB, created by
Marcel de Rooy
on 2024-04-19 07:40:29 UTC
(
hide
)
Description:
Bug 35994: Show acq_status on catalogue/detail
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-04-19 07:40:29 UTC
Size:
2.29 KB
patch
obsolete
>From 5c8fcdb6ce39d6ed7db0eb834d7ec0fd4abb1782 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 22 Feb 2024 13:52:41 +0000 >Subject: [PATCH] Bug 35994: Show acq_status on catalogue/detail >Content-Type: text/plain; charset=utf-8 > >Test plan: >Based on the described criteria, check a few biblio records. >Look at Acquisitions tab on the intranet detail page. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > catalogue/detail.pl | 3 ++- > .../prog/en/modules/catalogue/detail.tt | 13 +++++++++++++ > 2 files changed, 15 insertions(+), 1 deletion(-) > >diff --git a/catalogue/detail.pl b/catalogue/detail.pl >index f3ae21949f..28a37c0a4a 100755 >--- a/catalogue/detail.pl >+++ b/catalogue/detail.pl >@@ -293,7 +293,8 @@ if ( C4::Context->preference('AcquisitionDetails') ) { > ); # GetHistory sorted by aqbooksellerid, but does it make sense? > > $template->param( >- orders => $orders, >+ orders => $orders, >+ acq_status => $biblio->acq_status, > ); > } > >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 22521ee41f..8133fd9f34 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -38,6 +38,17 @@ > [% INCLUDE 'doc-head-close.inc' %] > </head> > >+[% BLOCK acq_status %] >+ <span title="The status 'Unlinked' means: no linked orders. Cancelled means that all orders are cancelled. Processing implies any active or new order lines. Status 'Acquired' implies any completely received lines (with remaining lines cancelled)."><b> >+ [% SWITCH myvar %] >+ [% CASE 'unlinked' %]Unlinked >+ [% CASE 'acquired' %]Acquired >+ [% CASE 'processing' %]Processing >+ [% CASE 'cancelled' %]Cancelled >+ [% END %] >+ </b></span> >+[% END %] >+ > <body id="catalog_detail" class="catalog"> > > [% WRAPPER 'header.inc' %] >@@ -470,6 +481,8 @@ > > [% IF Koha.Preference('AcquisitionDetails') %] > <div role="tabpanel" class="tab-pane" id="acq_details"> >+ <p>This bibliographic record has acquisition status: [% PROCESS acq_status myvar=acq_status %] >+ </p> > [% IF orders.count %] > <table id="orders"> > <thead> >-- >2.30.2
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 35994
:
162334
|
162335
|
165154
|
165155
|
165224
|
165225
|
166510
|
166537
|
166538
|
166539