when a serial is received, its serialseq info is automatically copied into it's item.enumchron field when that newly created item is displayed in the staff details page both its enumchron and serialseq values are displayed together. the bug is - both values are identical creating a duplication of info (pic attached) the solution is to only display one of the two fields
Created attachment 20792 [details] pic
Created attachment 20793 [details] [review] Bug 10825 - detail.tt displays duplicated enumchron values for serial items
Created attachment 20794 [details] pic, after applied patch
Comment on attachment 20793 [details] [review] Bug 10825 - detail.tt displays duplicated enumchron values for serial items hmm, this patch looks buggy - i will test and resumbit...
Created attachment 21110 [details] [review] Bug 10825 - detail.tt displays duplicated enumchron values for serial items
Created attachment 21120 [details] [review] Bug 10825 - detail.tt displays duplicated enumchron values for serial items
Hi Mason, I am sorry, but I can't reproduce the wrong display. I am wondering where the date and serialseq should be pulled from? Can you please clarify?
(In reply to Katrin Fischer from comment #7) > Hi Mason, > > I am sorry, but I can't reproduce the wrong display. I am wondering where > the date and serialseq should be pulled from? Can you please clarify? Hi Cait, as far as I understand, the problem arises only for serials items received through the Serials module. Mason tells me that both items.enumchron and serial.serialseq are displayed, hence the duplication. I hope this helps.
Hi Bob, thx for the comment :) I had tested with items created in serials, but I just couldn't make both fields show up :(
I am actually seeing this bug - will get test data that can replicate to test the patch. Liz
I suspect there is a combination of system preferences that makes this bug manifest. Among the possibilities are XSLT vs Normal display, Separate holdings vs unified holdings, and possibly others. This patch only addresses one of the possibilities - will submit follow up for second case. Cheers, Liz
I have seen this, but I would like to note that not always are items.enumchron and serial.serialseq the same thing - I think we actually had someone make it show both a little while back because of just that. I thought I had a bug suggestion a way to break this in to two columns or style it so we can hide one if want but I can't find that bug. I do not vote to removing one altogether though. Nicole
Created attachment 26224 [details] [review] [SIGNED OFF] Bug 10825 - detail.tt displays duplicated enumchron values for serial items TEST PLAN --------- 1) Find a data point that displays like the picture on this bug report. 2) Apply the patch 3) Refresh the screen 4) Does it look like the second picture now with the duplication removed? 5) Run koha qa test tools I did attempt with default and blank for the XSLT system preferences for the staff client. This does go against Nicole's comment #12. Counter patch to follow. Signed-off-by: Paola Rossi <paola.rossi@cineca.it> Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Created attachment 26225 [details] [review] Bug 10825 - detail.tt displays duplicated enumchron values for serial items TEST PLAN --------- 1) Find a data point that displays like the picture on this bug report. 2) Apply the patch 3) Refresh the screen 4) Does it look like the second picture now with the duplication removed? 5) Run koha qa test tools I did attempt with default and blank for the XSLT system preferences for the staff client. This accounts for Nicole's comment #12.
Hm, I'm a bit confused. This bug has two patches, both with Mason as the author. Both batches are uploaded by Mark, but one has a signed off line from Mark and one does not. Mark: Did you mean to sign off both of these, but forgot to add the signoff to the second one? Should it be marked "Signed off"?
Magnus, the first one does not account for Nicole's comment #12. However, since I do not know the validity of the suggestion, I coded a counter-patch which does account for it as noted in comment #14. You apply one or the other -- not both. The first patch will only put out enumchron if enumchron is defined, and if it is not defined, then it will consider putting out serialseq. The second patch will put out both enumchron and serialseq if they are different. And it will only put them out if they are defined. Hope this clears that up.
In order to find one try select biblionumber,serialseq from serial and then use one of those biblionumbers in the http://STAFF/cgi-bin/koha/catalogue/detail.pl?biblionumber=### URL. select serial.biblionumber as bibno,biblioitems.biblioitemnumber as bibino,items.itemnumber as itemno,items.dateaccessioned,items.enumchron,serialseq from serial,biblioitems,items,serialitems where serial.serialid=serialitems.serialid and serialitems.itemnumber=items.itemnumber and serial.biblionumber=biblioitems.biblionumber and biblioitems.biblioitemnumber=items.biblioitemnumber order by biblioitems.biblionumber;
Useful information for testing 1) Log into staff client, note library branch. 2) Change branch to one that has serials. 3) Click 'Serials'. 4) Click 'Submit' button for lots of results. 5) Choose one that has received items, click the title. 6) Click 'Serial collection' in the left panel. 7) Check an edit box, and click the 'Edit serials' button. 8) Manually edit the "Numbered" as needed. 9) Click 'Home' 10) Click 'Serials' 11) Click 'Submit' button for lots of results. 12) For the item modified (or just viewed), note the ISSN number. Use it to find the biblio number.
This will solve the duplicate problem after the styling issue is dealt with. Hence, I have made this depend on 10823.
(In reply to M. Tompsett from comment #16) > Magnus, the first one does not account for Nicole's comment #12. However, > since I do not know the validity of the suggestion, I coded a counter-patch > which does account for it as noted in comment #14. > > You apply one or the other -- not both. > > The first patch will only put out enumchron if enumchron is defined, and if > it is not defined, then it will consider putting out serialseq. > > The second patch will put out both enumchron and serialseq if they are > different. And it will only put them out if they are defined. > > Hope this clears that up. Mark's patch sounds better than my patch, lets use that one... i will mark my patch 'obsolete'
Created attachment 27090 [details] [review] Bug 10825 - detail.tt displays duplicated enumchron values for serial items TEST PLAN --------- 1) Find a data point that displays like the picture on this bug report. 2) Apply the patch 3) Refresh the screen 4) Does it look like the second picture now with the duplication removed? 5) Run koha qa test tools I did attempt with default and blank for the XSLT system preferences for the staff client. This accounts for Nicole's comment #12. Signed-off-by: Mason James <mtj@kohaaloha.com>
Mark you might need to update the 'author' of your patch.. you patch still has my name on it
(In reply to Mason James from comment #22) > Mark you might need to update the 'author' of your patch.. > > you patch still has my name on it i've tested Mark's patch, it looks good and works as expected thanks Mark! :)
Created attachment 27100 [details] [review] Bug 10825 - detail.tt displays duplicated enumchron values for serial items TEST PLAN --------- 1) Find a data point that displays like the picture on this bug report. -- in MySQL: SELECT items.biblionumber,items.enumchron,serial.serialseq FROM items,serial,serialitems WHERE items.itemnumber=serilaitems.itemnumber AND serialitems.serialid=serial.serialid; 2) Apply the patch 3) Refresh the screen 4) Does it look like the second picture now with the duplication removed? 5) Run koha qa test tools I did attempt with default and blank for the XSLT system preferences for the staff client. This accounts for Nicole's comment #12. Signed-off-by: Mason James <mtj@kohaaloha.com>
Created attachment 27101 [details] [review] [SIGNED OFF] Bug 10825 - detail.tt displays duplicated enumchron values for serial items TEST PLAN --------- 1) Find a data point that displays like the picture on this bug report. -- in MySQL: SELECT items.biblionumber,items.enumchron,serial.serialseq FROM items,serial,serialitems WHERE items.itemnumber=serilaitems.itemnumber AND serialitems.serialid=serial.serialid; 2) Apply the patch 3) Refresh the screen 4) Does it look like the second picture now with the duplication removed? 5) Run koha qa test tools I did attempt with default and blank for the XSLT system preferences for the staff client. This accounts for Nicole's comment #12. Signed-off-by: Mason James <mtj@kohaaloha.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Considering that both you and I tested it, Mason, and it was initially your patch. I'm not concerned about the author. I'm concerned about getting patches into Koha to improve it. We have two independent folk saying the patch is good. QA'ing seems the next logical step.
I am not totally sure why we'd want to display both there or why they might be different, but the patch just ensures that only one shows when both are the same - so this seems a harmless improvement.
Created attachment 27119 [details] [review] [PASSED QA] Bug 10825 - detail.tt displays duplicated enumchron values for serial items TEST PLAN --------- 1) Find a data point that displays like the picture on this bug report. -- in MySQL: SELECT items.biblionumber,items.enumchron,serial.serialseq FROM items,serial,serialitems WHERE items.itemnumber=serilaitems.itemnumber AND serialitems.serialid=serial.serialid; 2) Apply the patch 3) Refresh the screen 4) Does it look like the second picture now with the duplication removed? 5) Run koha qa test tools I did attempt with default and blank for the XSLT system preferences for the staff client. This accounts for Nicole's comment #12. Signed-off-by: Mason James <mtj@kohaaloha.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Works as described, passes tests and QA script. Template change only.
Pushed to master. Thanks, Mason and Mark!
*** Bug 5768 has been marked as a duplicate of this bug. ***
Pushed to 3.14.x, will be in 3.14.10
Picked for 3.12.15!