The advanced cataloging editor uses a cookie to set the user's preference for whether to use the advanced cataloging editor by default. This process should use the newer cookie library, js-cookie.
Created attachment 117154 [details] [review] Bug 24623: Phase out jquery.cookie.js: Advanced MARC editor This patch changes cookie handling in the MARC editor templates so that the js-cookie plugin is used instead of jquery.cookie. To test, apply the patch and go to Cataloging. - Search for a title using the cataloging search in the header search form. - In the search results, choose "Edit record" from the "Actions" menu. - By default you should be taken to the "basic" MARC editor. - From the "Settings" menu button, choose "Switch to advanced editor." - Return to the cataloging home page and perform another search. - Now when you choose "Edit record" you should be taken directly to the advanced editor. - In the advanced editor, choose "Switch to basic editor" from the "Settings" menu. - The basic editor should now be saved as the default. - Test also with "Edit record" links in catalog search results.
Created attachment 117191 [details] [review] Bug 24623: Phase out jquery.cookie.js: Advanced MARC editor This patch changes cookie handling in the MARC editor templates so that the js-cookie plugin is used instead of jquery.cookie. To test, apply the patch and go to Cataloging. - Search for a title using the cataloging search in the header search form. - In the search results, choose "Edit record" from the "Actions" menu. - By default you should be taken to the "basic" MARC editor. - From the "Settings" menu button, choose "Switch to advanced editor." - Return to the cataloging home page and perform another search. - Now when you choose "Edit record" you should be taken directly to the advanced editor. - In the advanced editor, choose "Switch to basic editor" from the "Settings" menu. - The basic editor should now be saved as the default. - Test also with "Edit record" links in catalog search results. Signed-off-by: David Nind <david@davidnind.com>
Created attachment 117420 [details] [review] Bug 24623: Phase out jquery.cookie.js: Advanced MARC editor This patch changes cookie handling in the MARC editor templates so that the js-cookie plugin is used instead of jquery.cookie. To test, apply the patch and go to Cataloging. - Search for a title using the cataloging search in the header search form. - In the search results, choose "Edit record" from the "Actions" menu. - By default you should be taken to the "basic" MARC editor. - From the "Settings" menu button, choose "Switch to advanced editor." - Return to the cataloging home page and perform another search. - Now when you choose "Edit record" you should be taken directly to the advanced editor. - In the advanced editor, choose "Switch to basic editor" from the "Settings" menu. - The basic editor should now be saved as the default. - Test also with "Edit record" links in catalog search results. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Pushed to master for 21.05, thanks to everybody involved!
Enhancement not pushed to 20.11.x