[Koha-bugs] [Bug 12469] Add more information to the ILS-DI results
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Feb 8 04:58:03 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12469
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |david at davidnind.com
--- Comment #12 from David Nind <david at davidnind.com> ---
I don't really understand anything about ILS-DI, but from working through the
tests:
1) Showing the branch and call number works fine
2) Running the tests (prove t/db_dependent/ILSDI_Services.t): the tests pass,
but there is one warning:
root at a08c360ba7cc:koha(bz12469)$ prove t/db_dependent/ILSDI_Services.t
t/db_dependent/ILSDI_Services.t .. 6/10 Use of uninitialized value $charge in
numeric gt (>) at /kohadevbox/koha/C4/Circulation.pm line 2978.
t/db_dependent/ILSDI_Services.t .. ok
All tests successful.
Files=1, Tests=10, 9 wallclock secs ( 0.03 usr 0.00 sys + 7.59 cusr 1.12
csys = 8.74 CPU)
Result: PASS
3) Adding due dates: this seems to only show the current date and time - for a
record with 2 items, I checked one out (item 22 - due date 26 February 2020)
and the other was available (item 21); with the URL
cgi-bin/koha/ilsdi.pl?service=GetAvailability&id=21+22&id_type=item I get this
result returned as XML - availability status is 'available' and 'dateavailable'
is the same for both:
<dlf:collection xmlns:dlf="http://diglib.org/ilsdi/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://diglib.org/ilsdi/1.1
http://diglib.org/architectures/ilsdi/schemas/1.1/dlfexpanded.xsd">
<dlf:record>
<dlf:bibliographic id="7"/>
<dlf:items>
<dlf:item id="21">
<dlf:simpleavailability>
<dlf:identifier>21</dlf:identifier>
<dlf:availabilitystatus>available</dlf:availabilitystatus>
<dlf:location>Fairview</dlf:location>
<dlf:callnumber>947.084/1092 B</dlf:callnumber>
<dlf:dateavailable>2020-02-08T03:36:40</dlf:dateavailable>
</dlf:simpleavailability>
</dlf:item>
</dlf:items>
</dlf:record>
<dlf:record>
<dlf:bibliographic id="7"/>
<dlf:items>
<dlf:item id="22">
<dlf:simpleavailability>
<dlf:identifier>22</dlf:identifier>
<dlf:availabilitystatus>available</dlf:availabilitystatus>
<dlf:location>Centerville</dlf:location>
<dlf:callnumber>947.084/1092 B</dlf:callnumber>
<dlf:dateavailable>2020-02-08T03:36:40</dlf:dateavailable>
</dlf:simpleavailability>
</dlf:item>
</dlf:items>
</dlf:record>
</dlf:collection>
If this is what is expected I'm happy to it off.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list