View | Details | Raw Unified | Return to bug 10549
Collapse All | Expand All

(-)a/C4/ILSDI/Services.pm (-2 / +2 lines)
Lines 60-66 hashref that will be printed by XML::Simple in opac/ilsdi.pl Link Here
60
		noattr => 1, 
60
		noattr => 1, 
61
		noescape => 1,
61
		noescape => 1,
62
		nosort => 1,
62
		nosort => 1,
63
		xmldecl => '<?xml version="1.0" encoding="ISO-8859-1" ?>', 
63
                xmldecl => '<?xml version="1.0" encoding="UTF-8" ?>',
64
		RootName => 'LookupPatron', 
64
		RootName => 'LookupPatron', 
65
		SuppressEmpty => 1);
65
		SuppressEmpty => 1);
66
66
Lines 105-111 availability Link Here
105
sub GetAvailability {
105
sub GetAvailability {
106
    my ($cgi) = @_;
106
    my ($cgi) = @_;
107
107
108
    my $out = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n";
108
    my $out = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n";
109
    $out .= "<dlf:collection\n";
109
    $out .= "<dlf:collection\n";
110
    $out .= "  xmlns:dlf=\"http://diglib.org/ilsdi/1.1\"\n";
110
    $out .= "  xmlns:dlf=\"http://diglib.org/ilsdi/1.1\"\n";
111
    $out .= "  xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n";
111
    $out .= "  xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n";
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/ilsdi.tt (-12 / +11 lines)
Lines 41-47 Link Here
41
                    ilsdi.pl?service=GetAvailability&amp;id=1+2+99999&amp;id_type=item
41
                    ilsdi.pl?service=GetAvailability&amp;id=1+2+99999&amp;id_type=item
42
                </a>
42
                </a>
43
                <h4>Example response</h4>
43
                <h4>Example response</h4>
44
<pre>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
44
<pre>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
45
&lt;dlf:collection
45
&lt;dlf:collection
46
  xmlns:dlf="http://diglib.org/ilsdi/1.1"
46
  xmlns:dlf="http://diglib.org/ilsdi/1.1"
47
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
47
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Lines 114-120 Link Here
114
                    ilsdi.pl?service=GetRecords&amp;id=1+2+99999
114
                    ilsdi.pl?service=GetRecords&amp;id=1+2+99999
115
                </a>
115
                </a>
116
                <h4>Example response</h4>
116
                <h4>Example response</h4>
117
<pre>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
117
<pre>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
118
&lt;GetRecords&gt;
118
&lt;GetRecords&gt;
119
  &lt;record&gt;
119
  &lt;record&gt;
120
    &lt;biblioitemnumber&gt;1&lt;/biblioitemnumber&gt;
120
    &lt;biblioitemnumber&gt;1&lt;/biblioitemnumber&gt;
Lines 376-382 Link Here
376
                    ilsdi.pl?service=LookupPatron&amp;id=815&amp;id_type=cardnumber
376
                    ilsdi.pl?service=LookupPatron&amp;id=815&amp;id_type=cardnumber
377
                </a>
377
                </a>
378
                <h4>Example response</h4>
378
                <h4>Example response</h4>
379
<pre>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
379
<pre>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
380
&lt;LookupPatron&gt;
380
&lt;LookupPatron&gt;
381
  &lt;id&gt;419&lt;/id&gt;
381
  &lt;id&gt;419&lt;/id&gt;
382
&lt;/LookupPatron&gt;</pre>
382
&lt;/LookupPatron&gt;</pre>
Lines 397-403 Link Here
397
                    ilsdi.pl?service=AuthenticatePatron&amp;username=john9&amp;password=soul
397
                    ilsdi.pl?service=AuthenticatePatron&amp;username=john9&amp;password=soul
398
                </a>
398
                </a>
399
                <h4>Example Response</h4>
399
                <h4>Example Response</h4>
400
<pre>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
400
<pre>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
401
&lt;AuthenticatePatron&gt;
401
&lt;AuthenticatePatron&gt;
402
  &lt;id&gt;419&lt;/id&gt;
402
  &lt;id&gt;419&lt;/id&gt;
403
&lt;/AuthenticatePatron&gt;</pre>
403
&lt;/AuthenticatePatron&gt;</pre>
Lines 427-433 Link Here
427
                    ilsdi.pl?service=GetPatronInfo&amp;patron_id=1&amp;show_contact=0&amp;show_loans=1
427
                    ilsdi.pl?service=GetPatronInfo&amp;patron_id=1&amp;show_contact=0&amp;show_loans=1
428
                </a>
428
                </a>
429
                <h4>Example response</h4>
429
                <h4>Example response</h4>
430
<pre>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
430
<pre>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
431
&lt;GetPatronInfo&gt;
431
&lt;GetPatronInfo&gt;
432
  &lt;category_type&gt;A&lt;/category_type&gt;
432
  &lt;category_type&gt;A&lt;/category_type&gt;
433
  &lt;categorycode&gt;ADUEXT&lt;/categorycode&gt;
433
  &lt;categorycode&gt;ADUEXT&lt;/categorycode&gt;
Lines 546-552 Link Here
546
                    ilsdi.pl?service=GetPatronStatus&amp;patron_id=1
546
                    ilsdi.pl?service=GetPatronStatus&amp;patron_id=1
547
                </a>
547
                </a>
548
                <h4>Example Response</h4>
548
                <h4>Example Response</h4>
549
<pre>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
549
<pre>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
550
&lt;GetPatronStatus&gt;
550
&lt;GetPatronStatus&gt;
551
  &lt;expiry&gt;2010-03-04&lt;/expiry&gt;
551
  &lt;expiry&gt;2010-03-04&lt;/expiry&gt;
552
  &lt;status&gt;0&lt;/status&gt;
552
  &lt;status&gt;0&lt;/status&gt;
Lines 569-575 Link Here
569
                    ilsdi.pl?service=GetServices&amp;patron_id=1&amp;item_id=1
569
                    ilsdi.pl?service=GetServices&amp;patron_id=1&amp;item_id=1
570
                </a>
570
                </a>
571
                <h4>Example response</h4>
571
                <h4>Example response</h4>
572
<pre>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
572
<pre>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
573
&lt;GetServices&gt;
573
&lt;GetServices&gt;
574
  &lt;AvailableFor&gt;title level hold&lt;/AvailableFor&gt;
574
  &lt;AvailableFor&gt;title level hold&lt;/AvailableFor&gt;
575
  &lt;AvailableFor&gt;item level hold&lt;/AvailableFor&gt;
575
  &lt;AvailableFor&gt;item level hold&lt;/AvailableFor&gt;
Lines 593-599 Link Here
593
                    ilsdi.pl?service=RenewLoan&amp;patron_id=1&amp;item_id=1
593
                    ilsdi.pl?service=RenewLoan&amp;patron_id=1&amp;item_id=1
594
                </a>
594
                </a>
595
                <h4>Example response</h4>
595
                <h4>Example response</h4>
596
<pre>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
596
<pre>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
597
&lt;RenewLoan&gt;
597
&lt;RenewLoan&gt;
598
  &lt;success&gt;0&lt;/success&gt;
598
  &lt;success&gt;0&lt;/success&gt;
599
  &lt;renewals&gt;5&lt;/renewals&gt;
599
  &lt;renewals&gt;5&lt;/renewals&gt;
Lines 624-630 Link Here
624
                    ilsdi.pl?service=HoldTitle&amp;patron_id=1&amp;bib_id=1&amp;request_location=127.0.0.1
624
                    ilsdi.pl?service=HoldTitle&amp;patron_id=1&amp;bib_id=1&amp;request_location=127.0.0.1
625
                </a>
625
                </a>
626
                <h4>Example response</h4>
626
                <h4>Example response</h4>
627
<pre>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
627
<pre>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
628
&lt;HoldTitle&gt;
628
&lt;HoldTitle&gt;
629
  &lt;title&gt;(les) galères de l'Orfèvre&lt;/title&gt;
629
  &lt;title&gt;(les) galères de l'Orfèvre&lt;/title&gt;
630
  &lt;date_available&gt;2009-05-11&lt;/date_available&gt;
630
  &lt;date_available&gt;2009-05-11&lt;/date_available&gt;
Lines 655-661 Link Here
655
                    ilsdi.pl?service=HoldItem&amp;patron_id=1&amp;bib_id=1&amp;item_id=1
655
                    ilsdi.pl?service=HoldItem&amp;patron_id=1&amp;bib_id=1&amp;item_id=1
656
                </a>
656
                </a>
657
                <h4>Example response</h4>
657
                <h4>Example response</h4>
658
<pre>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
658
<pre>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
659
&lt;HoldTitle&gt;
659
&lt;HoldTitle&gt;
660
  &lt;title&gt;(les) galères de l'Orfèvre&lt;/title&gt;
660
  &lt;title&gt;(les) galères de l'Orfèvre&lt;/title&gt;
661
  &lt;date_available&gt;2009-05-11&lt;/date_available&gt;
661
  &lt;date_available&gt;2009-05-11&lt;/date_available&gt;
Lines 678-684 Link Here
678
                    ilsdi.pl?service=CancelHold&amp;patron_id=1&amp;item_id=1
678
                    ilsdi.pl?service=CancelHold&amp;patron_id=1&amp;item_id=1
679
                </a>
679
                </a>
680
                <h4>Example response</h4>
680
                <h4>Example response</h4>
681
<pre>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
681
<pre>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
682
&lt;CancelHold&gt;
682
&lt;CancelHold&gt;
683
  &lt;message&gt;Canceled&lt;/message&gt;
683
  &lt;message&gt;Canceled&lt;/message&gt;
684
&lt;/CancelHold&gt;</pre>
684
&lt;/CancelHold&gt;</pre>
685
- 

Return to bug 10549