Bug 34199: Add full title information to subscription detail page
Show the full title information, including part_name and part_number on the subscription detail page. To test: * Add a subscription linked to a record with 245$abnp set * Verify only 245$ab will show up on the subscription detail page * Apply patch * Verify that the full title information shows up on the detail page Signed-off-by: Sam Lau <samalau@gmail.com> Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
b770b691e6
commit
4b588121e4
2 changed files with 10 additions and 8 deletions
|
@ -7,6 +7,7 @@
|
|||
[% USE Price %]
|
||||
[% USE TablesSettings %]
|
||||
[% SET footerjs = 1 %]
|
||||
[%- PROCESS 'html_helpers.inc' -%]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Details for subscription #[% subscriptionid | html %] › Serials › Koha</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
|
@ -42,7 +43,7 @@
|
|||
[% INCLUDE 'serials-toolbar.inc' %]
|
||||
[% INCLUDE 'mana/mana-comment-status.inc' %]
|
||||
|
||||
<h1>Subscription for [% bibliotitle | html %] [% bibliosubtitle | html %] [% IF closed %](closed)[% END %]</h1>
|
||||
<h1>Subscription for [% INCLUDE 'biblio-title.inc' biblio=subscription.biblio link = 0 %] [% IF closed %](closed)[% END %]</h1>
|
||||
|
||||
[% IF ( abouttoexpire ) %]
|
||||
[% UNLESS closed %]
|
||||
|
@ -102,7 +103,10 @@
|
|||
<li><span class="label">Subscription ID: </span>[% subscriptionid | html %]</li>
|
||||
<li><span class="label">Librarian identity:</span> [% librarian | html %]</li>
|
||||
<li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% aqbooksellerid | uri %]">[% aqbooksellername | html %]</a></li>
|
||||
<li><span class="label">Biblio:</span> <a href="[% PROCESS biblio_a_href biblionumber => bibnum %]">[% bibliotitle | html %] [% bibliosubtitle | html %]</a> <em>([% bibnum | html %])</em></li>
|
||||
<li>
|
||||
<span class="label">Bibliographic record:</span>
|
||||
[%- INCLUDE 'biblio-title.inc' biblio=subscription.biblio link = 1 -%] <em>([% subscription.biblionumber | html %])</em>
|
||||
</li>
|
||||
[% IF ( OPACBaseURL ) %]
|
||||
<li>
|
||||
<span class="label">OPAC view:</span>
|
||||
|
|
|
@ -36,8 +36,9 @@ use Koha::SharedContent;
|
|||
my $query = CGI->new;
|
||||
my $op = $query->param('op') || q{};
|
||||
my $issueconfirmed = $query->param('issueconfirmed');
|
||||
my $dbh = C4::Context->dbh;
|
||||
my $dbh = C4::Context->dbh;
|
||||
my $subscriptionid = $query->param('subscriptionid');
|
||||
my $subscription = Koha::Subscriptions->find( $subscriptionid );
|
||||
|
||||
if ( $op and $op eq "close" ) {
|
||||
C4::Serials::CloseSubscription( $subscriptionid );
|
||||
|
@ -124,13 +125,9 @@ my @irregular_issues = split /;/, $subs->{irregularity};
|
|||
my $frequency = C4::Serials::Frequency::GetSubscriptionFrequency($subs->{periodicity});
|
||||
my $numberpattern = C4::Serials::Numberpattern::GetSubscriptionNumberpattern($subs->{numberpattern});
|
||||
|
||||
my $subscription_object = Koha::Subscriptions->find( $subscriptionid );
|
||||
$template->param(
|
||||
available_additional_fields => Koha::AdditionalFields->search( { tablename => 'subscription' } ),
|
||||
additional_field_values => {
|
||||
map { $_->field->name => $_->value }
|
||||
$subscription_object->additional_field_values->as_list
|
||||
},
|
||||
additional_field_values => { map { $_->field->name => $_->value } $subscription->additional_field_values->as_list },
|
||||
);
|
||||
|
||||
# FIXME Do we want to hide canceled orders?
|
||||
|
@ -151,6 +148,7 @@ while ( my $o = $orders->next ) {
|
|||
}
|
||||
|
||||
$template->param(
|
||||
subscription => $subscription,
|
||||
subscriptionid => $subscriptionid,
|
||||
serialslist => \@serialslist,
|
||||
hasRouting => $hasRouting,
|
||||
|
|
Loading…
Reference in a new issue