@@ -, +, @@
the patron's opac checkout summary
1) INTRANET
1) Edit an item and add something in the "h" subfield, ie: "volume #42"
2) Check out the item to a patron
3) In the patron page, both at the bottom of the page or in the "Check out" tab, you should see the enumchron concatenated with the title
2) OPAC
1) Search for the same patron you used earlier
2) In the "your summary" tab, you should see the enumchron in the Title
3) INTRANET
1) Check in the item you just borrowed
2) At check in, the enumchron should also appear in the Title.
---
C4/Reserves.pm | 1 +
circ/returns.pl | 1 +
koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js | 12 +++++-
.../prog/en/modules/circ/circulation.tt | 46 +++++++++++-----------
.../intranet-tmpl/prog/en/modules/circ/returns.tt | 2 +-
.../opac-tmpl/bootstrap/en/modules/opac-user.tt | 3 +-
svc/checkouts | 3 +-
7 files changed, 41 insertions(+), 27 deletions(-)
--- a/C4/Reserves.pm
+++ a/C4/Reserves.pm
@@ -368,6 +368,7 @@ sub GetReservesFromItemnumber {
$r->get_column('branchcode'),
$r->reserve_id(),
$r->waitingdate(),
+ $r->get_column('expirationdate'),
);
}
--- a/circ/returns.pl
+++ a/circ/returns.pl
@@ -594,6 +594,7 @@ foreach ( sort { $a <=> $b } keys %returneditems ) {
$ri{itemtitle} = $biblio->{'title'};
$ri{itemauthor} = $biblio->{'author'};
$ri{itemcallnumber} = $biblio->{'itemcallnumber'};
+ $ri{enumchron} = $item->{'enumchron'};
$ri{dateaccessioned} = $item->{dateaccessioned};
$ri{itemtype} = $biblio->{'itemtype'};
$ri{itemnote} = $biblio->{'itemnotes'};
--- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js
+++ a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js
@@ -227,7 +227,11 @@ $(document).ready(function() {
title += " " + value.subfield;
});
- title += "";
+ if ( oObj.enumchron ) {
+ title += "" + " " + oObj.enumchron + "";
+ } else {
+ title += "";
+ }
if ( oObj.author ) {
title += " " + BY.replace( "_AUTHOR_", " " + oObj.author );
@@ -499,7 +503,11 @@ $(document).ready(function() {
title += " " + value.subfield;
});
- title += "";
+ if ( oObj.enumchron ) {
+ title += "" + " " + oObj.enumchron + "";
+ } else {
+ title += "";
+ }
if ( oObj.author ) {
title += " " + BY.replace( "_AUTHOR_", " " + oObj.author );
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
@@ -800,28 +800,30 @@ No patron matched [% message %]
- [% IF WaitingHolds.count %]
-
-
Holds waiting:
- [% FOREACH w IN WaitingHolds %]
-
- -
- [% w.biblio.title | html %]
- ([% ItemTypes.GetDescription( w.item.effective_itemtype ) %]),
- [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
- [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber %]] [% END %]
- Hold placed on [% w.reservedate | $KohaDates %].
-
-
- [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %][% ELSE %][% END %]
- [% SET waiting_expires_on = w.waiting_expires_on %]
- Waiting at [% w.branch.branchname | html %] [% IF waiting_expires_on %] until [% waiting_expires_on | $KohaDates %] [% END %]
-
-
-
- [% END %]
-
- [% END %]
+ [% IF ( WaitingReserveLoop ) %]
+
+
Holds waiting:
+ [% FOREACH WaitingReserveLoo IN WaitingReserveLoop %]
+
+ -
+ [% WaitingReserveLoo.title | html %]
+ ([% WaitingReserveLoo.itemtype %])
+ [% IF ( WaitingReserveLoo.enumchron ) %] [% WaitingReserveLoo.enumchron %][% END %],
+ [% IF ( WaitingReserveLoo.author ) %]
by [% WaitingReserveLoo.author | html %][% END %]
+ [% IF ( WaitingReserveLoo.itemcallnumber ) %][[% WaitingReserveLoo.itemcallnumber %]] [% END %]
+ Hold placed on [% WaitingReserveLoo.reservedate %].
+
+
+ [% IF ( WaitingReserveLoo.waitingat ) %]
+ [% IF ( WaitingReserveLoo.waitinghere ) %][% ELSE %][% END %]
+ Waiting at [% WaitingReserveLoo.waitingat | html %] [% IF WaitingReserveLoo.expiratedate %] until [% WaitingReserveLoo.expirationdate | $KohaDates %] [% END %]
+
+ [% END %]
+
+
+ [% END %]
+
+ [% END %]
[% IF ( notes ) %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
@@ -614,7 +614,7 @@ $(document).ready(function () {
[% END %]
- [% riloo.itemtitle |html %] |
+ [% riloo.itemtitle |html %][% IF ( riloo.enumchron ) %]
[% riloo.enumchron %][% END %]
[% riloo.itemauthor %] |
[% riloo.barcode %] |
[% Branches.GetName( riloo.homebranch ) %] |
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
@@ -193,6 +193,7 @@
[% ISSUE.title |html %] [% FOREACH subtitl IN ISSUE.subtitle %] [% subtitl.subfield %][% END %]
+ [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron %][% END %]
[% ISSUE.author %]
|
[% IF ( ISSUE.overdue ) %]
@@ -353,7 +354,7 @@
- [% i.item.biblio.title %]
+ [% i.item.biblio.title %][% IF ( i.item.enumchron ) %] [% i.item.enumchron %][% END %]
|
--- a/svc/checkouts
+++ a/svc/checkouts
@@ -97,7 +97,7 @@ my $sql = '
itemlost,
damaged,
location,
-
+ items.enumchron,
DATEDIFF( issuedate, CURRENT_DATE() ) AS not_issued_today
FROM issues
LEFT JOIN items USING ( itemnumber )
@@ -173,6 +173,7 @@ while ( my $c = $sth->fetchrow_hashref() ) {
date_due_overdue => $c->{date_due_overdue} ? JSON::true : JSON::false,
timestamp => $c->{timestamp},
onsite_checkout => $c->{onsite_checkout},
+ enumchron => $c->{'enumchron'},
renewals_count => $renewals_count,
renewals_allowed => $renewals_allowed,
renewals_remaining => $renewals_remaining,
--