Bugzilla – Attachment 163485 Details for
Bug 35616
Add a 'source' field to Koha::Tickets to denote the path taken to report the ticket
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35616: Update catalog concerns to set/filter on source
Bug-35616-Update-catalog-concerns-to-setfilter-on-.patch (text/plain), 3.21 KB, created by
Victor Grousset/tuxayo
on 2024-03-20 01:53:54 UTC
(
hide
)
Description:
Bug 35616: Update catalog concerns to set/filter on source
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2024-03-20 01:53:54 UTC
Size:
3.21 KB
patch
obsolete
>From bb9bcbf5fd367d9b537c93aae8edbe93a2330430 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 20 Dec 2023 14:52:10 +0000 >Subject: [PATCH] Bug 35616: Update catalog concerns to set/filter on source > >This patch updates the catalog concerns feature to respect the new >'source' field in the API. We both set the source for new ticket >submissions and use it for filtering in the corresponding display >tables. > >To test: >1) Nothing should noticably change here.. follow the test plan for bug > 31028 and confirm all continues to work as described there. > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 1 + > .../intranet-tmpl/prog/en/modules/cataloguing/concerns.tt | 3 ++- > koha-tmpl/intranet-tmpl/prog/js/modals/add_catalog_concern.js | 1 + > koha-tmpl/opac-tmpl/bootstrap/js/modals/catalog_concern.js | 1 + > 4 files changed, 5 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index 993f67fdcb..730b07455d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -1379,6 +1379,7 @@ > return; > } > }, >+ source: 'catalog', > biblio_id: [% biblionumber | uri %] > }; > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt >index c7b23e8204..f16e5f2609 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt >@@ -90,7 +90,8 @@ > } else { > return; > } >- } >+ }, >+ source: 'catalog' > }; > > var tickets_url = '/api/v1/tickets'; >diff --git a/koha-tmpl/intranet-tmpl/prog/js/modals/add_catalog_concern.js b/koha-tmpl/intranet-tmpl/prog/js/modals/add_catalog_concern.js >index 10c0b3b2e9..d7db5f6a3b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/modals/add_catalog_concern.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/modals/add_catalog_concern.js >@@ -17,6 +17,7 @@ $(document).ready(function() { > let reporter_id = $('#concern_reporter').val(); > > let params = { >+ source: 'catalog', > title: concern_title, > body: concern_body, > biblio_id: biblio_id, >diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/modals/catalog_concern.js b/koha-tmpl/opac-tmpl/bootstrap/js/modals/catalog_concern.js >index 5e3a4d77b4..e9c791e9de 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/js/modals/catalog_concern.js >+++ b/koha-tmpl/opac-tmpl/bootstrap/js/modals/catalog_concern.js >@@ -35,6 +35,7 @@ $(document).ready(function() { > let reporter_id = $('#concern_reporter').val(); > > params = { >+ source: 'catalog', > title: concern_title, > body: concern_body, > biblio_id: biblio_id, >-- >2.44.0
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 35616
:
160118
|
160119
|
160120
|
160121
|
160127
|
160128
|
160129
|
160130
|
160143
|
160144
|
160145
|
160146
|
160164
|
160165
|
160166
|
160167
|
163482
|
163483
|
163484
| 163485 |
163486