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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-6 / +5 lines)
Lines 1872-1889 Link Here
1872
                $('#move_hold_biblio_confirm').prop('disabled' , true );
1872
                $('#move_hold_biblio_confirm').prop('disabled' , true );
1873
1873
1874
                let biblioID = $("#biblio_id").val();
1874
                let biblioID = $("#biblio_id").val();
1875
                let apiUrl = `/api/v1/items?q={"biblio_id":"${encodeURIComponent(biblioID)}"}`;
1875
                let apiUrl = `/api/v1/biblios?q={"biblio_id":"${encodeURIComponent(biblioID)}"}`;
1876
                $.ajax({
1876
                $.ajax({
1877
                    url: apiUrl,
1877
                    url: apiUrl,
1878
                    method: "GET",
1878
                    method: "GET",
1879
                    dataType: "json",
1879
                    dataType: "json",
1880
                    headers: {
1881
                        'Accept': 'application/json'
1882
                    },
1880
                    success: function (data) {
1883
                    success: function (data) {
1881
                        if (data.length > 0) {
1884
                        if (data.length > 0) {
1882
                            const unique_data = data.filter((item, index, self) =>
1883
                                index === self.findIndex(t => t.biblio_id === item.biblio_id)
1884
                            );
1885
                            let resultHtml = "";
1885
                            let resultHtml = "";
1886
                            $.each(unique_data, function (index, item) {
1886
                            $.each(data, function (index, item) {
1887
                                resultHtml += `
1887
                                resultHtml += `
1888
                                    <div class="alert alert-success">
1888
                                    <div class="alert alert-success">
1889
                                        <strong>Biblionumber:</strong> ${item.biblio_id} <br>
1889
                                        <strong>Biblionumber:</strong> ${item.biblio_id} <br>
1890
- 

Return to bug 31698