Bugzilla – Attachment 29202 Details for
Bug 12469
Add more information to the ILS-DI results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12469 - add due dates to the ILSDI interface
Bug-12469---add-due-dates-to-the-ILSDI-interface.patch (text/plain), 2.21 KB, created by
Robin Sheat
on 2014-06-24 23:57:46 UTC
(
hide
)
Description:
Bug 12469 - add due dates to the ILSDI interface
Filename:
MIME Type:
Creator:
Robin Sheat
Created:
2014-06-24 23:57:46 UTC
Size:
2.21 KB
patch
obsolete
>From aef18a5321335567bacb0e627cbd1feb0a195086 Mon Sep 17 00:00:00 2001 >From: Robin Sheat <robin@catalyst.net.nz> >Date: Wed, 25 Jun 2014 11:40:45 +1200 >Subject: [PATCH] Bug 12469 - add due dates to the ILSDI interface > >This adds the dlf:dateavailable field to ILSDI item availability >information if an item is currently checked out. > >Test plan: >* Hit the ILSDI GetAvailability URL for an issued item >* See that it now has the return date >--- > C4/ILSDI/Services.pm | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm >index 22474a8..6cca3b9 100644 >--- a/C4/ILSDI/Services.pm >+++ b/C4/ILSDI/Services.pm >@@ -115,7 +115,6 @@ sub GetAvailability { > foreach my $id ( split( / /, $cgi->param('id') ) ) { > if ( $cgi->param('id_type') eq "item" ) { > my ( $biblionumber, $status, $msg, $location ) = _availability($id); >- > $out .= " <dlf:record>\n"; > $out .= " <dlf:bibliographic id=\"" . ( $biblionumber || $id ) . "\" />\n"; > $out .= " <dlf:items>\n"; >@@ -125,6 +124,7 @@ sub GetAvailability { > $out .= " <dlf:availabilitystatus>" . $status . "</dlf:availabilitystatus>\n"; > if ($msg) { $out .= " <dlf:availabilitymsg>" . $msg . "</dlf:availabilitymsg>\n"; } > if ($location) { $out .= " <dlf:location>" . $location . "</dlf:location>\n"; } >+ if ($duedate) { $out .= " <dlf:dateavailable>" . $duedate . "</dlf:dateavailable>\n"; } > $out .= " </dlf:simpleavailability>\n"; > $out .= " </dlf:item>\n"; > $out .= " </dlf:items>\n"; >@@ -782,7 +782,10 @@ sub _availability { > if ( $item->{'notforloan'} ) { > return ( $biblionumber, 'not available', 'Not for loan', $location ); > } elsif ( $item->{'onloan'} ) { >- return ( $biblionumber, 'not available', 'Checked out', $location ); >+ return ( >+ $biblionumber, 'not available', 'Checked out', >+ $location, $item->{'onloan'} >+ ); > } elsif ( $item->{'itemlost'} ) { > return ( $biblionumber, 'not available', 'Item lost', $location ); > } elsif ( $item->{'wthdrawn'} ) { >-- >1.8.3.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 12469
:
29183
|
29201
|
29202
|
97955
|
97956
|
97957
|
97958