https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38096
Pedro Amorim <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #192592|0 |1 is obsolete| | --- Comment #40 from Pedro Amorim <[email protected]> --- Created attachment 192816 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=192816&action=edit Bug 38096: Staff: Display 857 to detail and results pages This work DRYs the 856 display logic to renderMARCOnlineResourceField. This was previously written in detail and results pages. Once this single function exists, 857 can also make use of it to be displayed using the same logic/features already present for 856. 1) If testing k-t-d, add the test data for test plan (otherwise prep instructions below): updatedatabase 2) Force reindex of this biblio by saving it, visit the biblio: <staff_url>/cgi-bin/koha/catalogue/detail.pl?biblionumber=76 3) Click "Edit" -> "Edit record" -> "Save" 4) Open the following URL's, preferably on 4 different browser tabs (we're using biblio 76 for this test): <staff_url>/cgi-bin/koha/catalogue/search.pl?q=music (first record [76] is the one we're testing) <staff_url>/cgi-bin/koha/catalogue/detail.pl?biblionumber=76 <opac_url>/cgi-bin/koha/opac-search.pl?idx=&q=music (first record [76] is the one we're testing) <opac_url>/cgi-bin/koha/opac-detail.pl?biblionumber=76 5) Verify that on all pages there are 3 instances of 856 (Online resources) and 3 instances of 857 (Online archive resources) with their respective link labels and URLs. 6) Click on the "Koha community no protocol" link for 856 and 857, notice the 'http://' protocol is added. 7) Change the values of OPACDisplay856uAsImage + Display856uAsImage and refresh the respective page. Verify it works as expected (respects the system preference). Note: This only applies for 856, not 857 (out of scope here). 8) Change the value of OPACURLOpenInNewWindow and click on the links before and after. Verify they respect the system preference. If not on k-t-d and updatedatabase not available: perl /kohadevbox/koha/installer/data/mysql/updatedatabase.pl or koha-shell -c "perl /kohadevbox/koha/installer/data/mysql/updatedatabase.pl" <instance_name> If CLI not available (preparation on UI): A) Add field 857 to the 'Default' framework B) Edit the field: <staff_url>/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&tagfield=857&frameworkcode= C) Check the 'Editor' checkbox for subfields q, u and z (Add these if not there already) D) Edit the record in question, visit: <staff_url>/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=76 E) Click 'Settings' dropdown and pick 'Default' framework. F) Add MARC data that corresponds to the following: 3 instances of 856 as below. 3 instances of 857 as below. <datafield tag="856" ind1="4" ind2="2"> <subfield code="z">Koha community no protocol</subfield> <subfield code="u">koha-community.org/</subfield> </datafield> <datafield tag="856" ind1="4" ind2="2"> <subfield code="z">Koha community with protocol</subfield> <subfield code="u">https://koha-community.org/</subfield> </datafield> <datafield tag="856" ind1="4" ind2="2"> <subfield code="z">Koha logo image</subfield> <subfield code="q">jpeg</subfield> <subfield code="u">https://koha-community.org/files/2013/09/cropped-kohabanner3.jpg</subfield> </datafield> <datafield tag="857" ind1="4" ind2="2"> <subfield code="z">Koha community no protocol</subfield> <subfield code="u">koha-community.org/</subfield> </datafield> <datafield tag="857" ind1="4" ind2="2"> <subfield code="z">Koha community with protocol</subfield> <subfield code="u">https://koha-community.org/</subfield> </datafield> <datafield tag="857" ind1="4" ind2="2"> <subfield code="z">KohaCon 2024 logo image</subfield> <subfield code="q">jpeg</subfield> <subfield code="u">https://2024.kohacon.org/wp-content/uploads/2024/01/kohacon24_fr_verticale_vert_noir.png</subfield> </datafield> G) At this point you're ready to start the original test plan from step 4) Signed-off-by: Caroline Cyr La Rose <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
