[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to 'editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Jonathan Druart changed: What|Removed |Added Blocks||26119 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26119 [Bug 26119] Patron Attribute Option to Display in OPAC Not Compatible with PatronSelfRegistrationVerifyByEmail -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org 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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Katrin Fischerchanged: What|Removed |Added CC||apurbajy...@gmail.com --- Comment #130 from Katrin Fischer --- *** Bug 18679 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Jonathan Druartchanged: What|Removed |Added Blocks||18461 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18461 [Bug 18461] Internal server error while approving OPAC-edited patron attributes containing umlauts (äöü) -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Katrin Fischerchanged: What|Removed |Added Resolution|--- |FIXED Status|Pushed to Master|RESOLVED -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #129 from Katrin Fischer--- This won't get ported back to 16.11.x as it is an enhancement. But congrats, Tomas! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Bug 13757 depends on bug 17792, which changed state. Bug 17792 Summary: Introduce Koha::Patron::Attribute(s) https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17792 What|Removed |Added Status|Pushed to Master|RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Kyle M Hallchanged: What|Removed |Added CC||k...@bywatersolutions.com Status|Passed QA |Pushed to Master --- Comment #128 from Kyle M Hall --- Pushed to master for 17.05, thanks Tomas! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Jonathan Druartchanged: What|Removed |Added Blocks||17828 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17828 [Bug 17828] Koha::Patron::Attribute->store should raise an exception if unique_id is being broken -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #118 from Jonathan Druart--- Created attachment 61566 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61566=edit Bug 13757: (regression tests) Empty attributes should delete existing This patch introduces tests for the required functionality. To test: - Run: $ prove t/db_dependent/Koha/Patron/Modifications.t => FAIL: The current code doesn't work like that Signed-off-by: Tomas Cohen Arazi https://bugs.koha-community.org/show_bug.cgi?id=13737 Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #127 from Jonathan Druart--- Created attachment 61575 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61575=edit Bug 13757: (QA followup) Filter out non-editable params before storing Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #122 from Jonathan Druart--- Created attachment 61570 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61570=edit Bug 13757: Make K::P::Modifications->pending return K::P::Attribute This patch makes Koha::Patron::Modifications->pending return Koha::Patron:Attribute objects. They are not stored on the DB but only live in memory on runtime. members-update.pl is the only place this is used, and this way we have all we need for better rendering the UI. Tests are added for the changed API. Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #125 from Jonathan Druart--- Created attachment 61573 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61573=edit Bug 13757: Attribute with value 0 should be stored Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #126 from Jonathan Druart--- Created attachment 61574 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61574=edit Bug 13757: (QA followup) Exclude empty attributes from rendering if non-editable In self registration opac displayable (and not editable) attributes are displayed as empty. This an empty value is passed to the template for creating an empty input and it shouldn't when the attribute is not editable. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #124 from Jonathan Druart--- Created attachment 61572 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61572=edit Bug 13757: (regression test) Attribute with value 0 should be stored Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #123 from Jonathan Druart--- Created attachment 61571 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61571=edit Bug 13757: Better display for attr changes in members-update.pl This patch changes the way changed attributes are displayed for the staff user to make the decision to approve (or not) the changes. Regards Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #121 from Jonathan Druart--- Created attachment 61569 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61569=edit Bug 13757: (QA followup) Fix non-editable attrs on failed save When a field is not editable but displayable in the OPAC, and you submit an incomplete/wrong update, those attributes are displayed as empty. This patch fixes that. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #120 from Jonathan Druart--- Created attachment 61568 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61568=edit Bug 13757: (QA followup) Make opac-memberentry.pl handle attrs deletion The original code on this bug skipped empty-valued attributes. But emptying attributes is the only way to tell the controller script that the user wants to delete them. This patch makes opac-memberentry.pl check the existence of attributes sharing the code of the empty for the given patron, and it stores the deletion on the Koha::Patron::Modification as needed. Otherwise deletions got skipped. To test: - Verify setting/deleting attributes that are opac-editable and verify the results are sound. https://bugs.koha-community.org/show_bug.cgi?id=13737 Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #116 from Jonathan Druart--- Created attachment 61564 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61564=edit Bug 13757: (followup) Fix authorized value display when opac_display & not opac_editable Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #119 from Jonathan Druart--- Created attachment 61567 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61567=edit Bug 13757: Make Koha::Patron::Modification->store del empty attrs This patch makes Koha::Patron::Modification->store delete the passed attributes that contain empty values. This is the way it currently works, as all opac-editable attributes are presented to the end-user and they are allowed to delete them, and the best way I found to represent the deletion on the modification request is by setting it to the empty string. I chose this way because it is how the staff interface handles it, so it is consistent. To test: - Apply this patch - Run: $ prove t/db_dependent/Koha/Patron/Modifications.t => SUCCESS: This time tests pass! - Verify comment #70 on the bug is fixed now - Sign off :-D Signed-off-by: Tomas Cohen Arazi https://bugs.koha-community.org/show_bug.cgi?id=13737 Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #117 from Jonathan Druart--- Created attachment 61565 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61565=edit Bug 13757: (QA followup) Check DB structure before altering table Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #110 from Jonathan Druart--- Created attachment 61558 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61558=edit Bug 13757: DBIC update Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #115 from Jonathan Druart--- Created attachment 61563 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61563=edit Bug 13757: (followup) Regression tests for ->approve changes Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #111 from Jonathan Druart--- Created attachment 61559 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61559=edit Bug 13757: Add extended attributes to the patron modification Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #113 from Jonathan Druart--- Created attachment 61561 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61561=edit Bug 13757: (followup) Staff interface changes This patch adds proper extended attributes display and handling on the patron modifications moderation page (members-update.pl). It also adds changes checking to the opac-memberentry.pl page so it only saves a modification request if there are changes (it only checked regular fields and not the extended ones). Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #109 from Jonathan Druart--- Created attachment 61557 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61557=edit Bug 13757: OPAC changes Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #114 from Jonathan Druart--- Created attachment 61562 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61562=edit Bug 13757: (followup) Only touch opac_editable attributes As reported by Owen, the members-update.pl was showing every attributes the patron has (display issue) instead of showing only those affected by the changes. This patch fixes this by filtering the patron's attributes by opac editability. It also fixes Koha::Patron::Modification->approve so it only clears the attributes with the updating 'code' and leaves the others untouched. As its been coded so far (until someone refactors it all) the Koha::Patron::Modification object needs to contain all the attributes for a specific code. And it comes from parsing the UI's input. Tests for Koha::Patron::Modification->approve to come. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #112 from Jonathan Druart--- Created attachment 61560 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61560=edit Bug 13757: (followup) Remove warnings Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #108 from Jonathan Druart--- Created attachment 61556 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61556=edit Bug 13757: DB update Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Jonathan Druartchanged: What|Removed |Added Attachment #61132|0 |1 is obsolete|| Attachment #61133|0 |1 is obsolete|| Attachment #61134|0 |1 is obsolete|| Attachment #61135|0 |1 is obsolete|| Attachment #61136|0 |1 is obsolete|| Attachment #61137|0 |1 is obsolete|| Attachment #61138|0 |1 is obsolete|| Attachment #61139|0 |1 is obsolete|| Attachment #61140|0 |1 is obsolete|| Attachment #61141|0 |1 is obsolete|| Attachment #61142|0 |1 is obsolete|| Attachment #61143|0 |1 is obsolete|| Attachment #61144|0 |1 is obsolete|| Attachment #61145|0 |1 is obsolete|| Attachment #61146|0 |1 is obsolete|| Attachment #61147|0 |1 is obsolete|| Attachment #61148|0 |1 is obsolete|| Attachment #61149|0 |1 is obsolete|| Attachment #61150|0 |1 is obsolete|| Attachment #61492|0 |1 is obsolete|| Attachment #61493|0 |1 is obsolete|| --- Comment #107 from Jonathan Druart --- Created attachment 61555 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61555=edit Bug 13757: Add the option to set patron attributes editable in the OPAC Note: this is a squashed version of the original patchset, because it was needed This patch adds an opac_editable property of borrower attribute types that can be set in the interface. I'm removing work on OPAC and will refactor it, keeping the author attribution. Test plan: 1. Repeat the following with a new and existing borrower attribute type: 2. Verify that "Editable in OPAC" can only be checked if "Display in OPAC" is checked. 3. Verify that this new property is correctly saved. Signed-off-by: Aleisha Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Jonathan Druartchanged: What|Removed |Added Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Status|Failed QA |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #106 from Tomás Cohen Arazi--- Created attachment 61493 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61493=edit Bug 13757: (QA followup) Filter out non-editable params before storing Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Jonathan Druartchanged: What|Removed |Added Status|Signed Off |Failed QA --- Comment #105 from Jonathan Druart --- Tomas, please do not hate me! I manage to edit a non opac editable field hijacking the value of one of the "patron_attribute_value" hidden input at the OPAC. I then see the requested changes in the "Patron modification" list at the staff interface. You should check if the attribute is editable before storing it (server-side check). -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #104 from Tomás Cohen Arazi--- Created attachment 61492 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61492=edit Bug 13757: (QA followup) Exclude empty attributes from rendering if non-editable In self registration opac displayable (and not editable) attributes are displayed as empty. This an empty value is passed to the template for creating an empty input and it shouldn't when the attribute is not editable. Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #103 from Jonathan Druart--- Just small things: 1. I think we should not display the attributes at the opac if they are empty and not editable (it's especially weird for self registration) 2. [% IF !pm.extended_attributes and pm.size > 3 or pm.extended_attributes and pm.size > 4 %] I am sure you can make it more readable :D 3. Typo 'FilterUnchagedAttributes' Please fix ASAP and I PQA it! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #100 from Nick Clemens--- Created attachment 61148 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61148=edit Bug 13757: Better display for attr changes in members-update.pl This patch changes the way changed attributes are displayed for the staff user to make the decision to approve (or not) the changes. Regards Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #101 from Nick Clemens--- Created attachment 61149 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61149=edit Bug 13757: (regression test) Attribute with value 0 should be stored Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #102 from Nick Clemens--- Created attachment 61150 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61150=edit Bug 13757: Attribute with value 0 should be stored Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #98 from Nick Clemens--- Created attachment 61146 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61146=edit Bug 13757: (QA followup) Fix non-editable attrs on failed save When a field is not editable but displayable in the OPAC, and you submit an incomplete/wrong update, those attributes are displayed as empty. This patch fixes that. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #97 from Nick Clemens--- Created attachment 61145 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61145=edit Bug 13757: (QA followup) Make opac-memberentry.pl handle attrs deletion The original code on this bug skipped empty-valued attributes. But emptying attributes is the only way to tell the controller script that the user wants to delete them. This patch makes opac-memberentry.pl check the existence of attributes sharing the code of the empty for the given patron, and it stores the deletion on the Koha::Patron::Modification as needed. Otherwise deletions got skipped. To test: - Verify setting/deleting attributes that are opac-editable and verify the results are sound. https://bugs.koha-community.org/show_bug.cgi?id=13737 Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #99 from Nick Clemens--- Created attachment 61147 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61147=edit Bug 13757: Make K::P::Modifications->pending return K::P::Attribute This patch makes Koha::Patron::Modifications->pending return Koha::Patron:Attribute objects. They are not stored on the DB but only live in memory on runtime. members-update.pl is the only place this is used, and this way we have all we need for better rendering the UI. Tests are added for the changed API. Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #95 from Nick Clemens--- Created attachment 61143 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61143=edit Bug 13757: (regression tests) Empty attributes should delete existing This patch introduces tests for the required functionality. To test: - Run: $ prove t/db_dependent/Koha/Patron/Modifications.t => FAIL: The current code doesn't work like that Signed-off-by: Tomas Cohen Arazi https://bugs.koha-community.org/show_bug.cgi?id=13737 Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #96 from Nick Clemens--- Created attachment 61144 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61144=edit Bug 13757: Make Koha::Patron::Modification->store del empty attrs This patch makes Koha::Patron::Modification->store delete the passed attributes that contain empty values. This is the way it currently works, as all opac-editable attributes are presented to the end-user and they are allowed to delete them, and the best way I found to represent the deletion on the modification request is by setting it to the empty string. I chose this way because it is how the staff interface handles it, so it is consistent. To test: - Apply this patch - Run: $ prove t/db_dependent/Koha/Patron/Modifications.t => SUCCESS: This time tests pass! - Verify comment #70 on the bug is fixed now - Sign off :-D Signed-off-by: Tomas Cohen Arazi https://bugs.koha-community.org/show_bug.cgi?id=13737 Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #94 from Nick Clemens--- Created attachment 61142 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61142=edit Bug 13757: (QA followup) Check DB structure before altering table Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #93 from Nick Clemens--- Created attachment 61141 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61141=edit Bug 13757: (followup) Fix authorized value display when opac_display & not opac_editable Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #90 from Nick Clemens--- Created attachment 61138 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61138=edit Bug 13757: (followup) Staff interface changes This patch adds proper extended attributes display and handling on the patron modifications moderation page (members-update.pl). It also adds changes checking to the opac-memberentry.pl page so it only saves a modification request if there are changes (it only checked regular fields and not the extended ones). Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #92 from Nick Clemens--- Created attachment 61140 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61140=edit Bug 13757: (followup) Regression tests for ->approve changes Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #91 from Nick Clemens--- Created attachment 61139 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61139=edit Bug 13757: (followup) Only touch opac_editable attributes As reported by Owen, the members-update.pl was showing every attributes the patron has (display issue) instead of showing only those affected by the changes. This patch fixes this by filtering the patron's attributes by opac editability. It also fixes Koha::Patron::Modification->approve so it only clears the attributes with the updating 'code' and leaves the others untouched. As its been coded so far (until someone refactors it all) the Koha::Patron::Modification object needs to contain all the attributes for a specific code. And it comes from parsing the UI's input. Tests for Koha::Patron::Modification->approve to come. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #89 from Nick Clemens--- Created attachment 61137 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61137=edit Bug 13757: (followup) Remove warnings Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #87 from Nick Clemens--- Created attachment 61135 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61135=edit Bug 13757: DBIC update Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #86 from Nick Clemens--- Created attachment 61134 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61134=edit Bug 13757: OPAC changes Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #88 from Nick Clemens--- Created attachment 61136 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61136=edit Bug 13757: Add extended attributes to the patron modification Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #85 from Nick Clemens--- Created attachment 61133 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61133=edit Bug 13757: DB update Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Nick Clemenschanged: What|Removed |Added Attachment #58706|0 |1 is obsolete|| Attachment #58707|0 |1 is obsolete|| Attachment #58708|0 |1 is obsolete|| Attachment #58709|0 |1 is obsolete|| Attachment #58710|0 |1 is obsolete|| Attachment #58711|0 |1 is obsolete|| Attachment #58712|0 |1 is obsolete|| Attachment #58713|0 |1 is obsolete|| Attachment #58714|0 |1 is obsolete|| Attachment #58715|0 |1 is obsolete|| Attachment #59376|0 |1 is obsolete|| Attachment #59737|0 |1 is obsolete|| Attachment #59738|0 |1 is obsolete|| Attachment #59739|0 |1 is obsolete|| Attachment #59896|0 |1 is obsolete|| Attachment #59897|0 |1 is obsolete|| Attachment #59898|0 |1 is obsolete|| Attachment #60359|0 |1 is obsolete|| Attachment #60360|0 |1 is obsolete|| --- Comment #84 from Nick Clemens --- Created attachment 61132 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61132=edit Bug 13757: Add the option to set patron attributes editable in the OPAC Note: this is a squashed version of the original patchset, because it was needed This patch adds an opac_editable property of borrower attribute types that can be set in the interface. I'm removing work on OPAC and will refactor it, keeping the author attribution. Test plan: 1. Repeat the following with a new and existing borrower attribute type: 2. Verify that "Editable in OPAC" can only be checked if "Display in OPAC" is checked. 3. Verify that this new property is correctly saved. Signed-off-by: Aleisha Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Nick Clemenschanged: What|Removed |Added Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #83 from Tomás Cohen Arazi--- Created attachment 60360 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=60360=edit Bug 13757: Attribute with value 0 should be stored Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #82 from Tomás Cohen Arazi--- Created attachment 60359 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=60359=edit Bug 13757: (regression test) Attribute with value 0 should be stored Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #81 from Jonathan Druart--- It would be awesome to get a quick signoff on this one! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Jonathan Druartchanged: What|Removed |Added Status|Signed Off |Needs Signoff --- Comment #80 from Jonathan Druart --- Tomas, there are too many patches without a signoff, we need a signoff on the whole stack. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Status|Failed QA |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #79 from Tomás Cohen Arazi--- Created attachment 59898 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59898=edit Bug 13757: Better display for attr changes in members-update.pl This patch changes the way changed attributes are displayed for the staff user to make the decision to approve (or not) the changes. Regards -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Attachment #59813|0 |1 is obsolete|| --- Comment #77 from Tomás Cohen Arazi --- Created attachment 59896 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59896=edit Bug 13757: (QA followup) Fix non-editable attrs on failed save When a field is not editable but displayable in the OPAC, and you submit an incomplete/wrong update, those attributes are displayed as empty. This patch fixes that. Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #78 from Tomás Cohen Arazi--- Created attachment 59897 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59897=edit Bug 13757: Make K::P::Modifications->pending return K::P::Attribute This patch makes Koha::Patron::Modifications->pending return Koha::Patron:Attribute objects. They are not stored on the DB but only live in memory on runtime. members-update.pl is the only place this is used, and this way we have all we need for better rendering the UI. Tests are added for the changed API. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #76 from Tomás Cohen Arazi--- Created attachment 59813 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59813=edit Bug 13757: (QA followup) Fix non-editable attrs on failed save When a field is not editable but displayable in the OPAC, and you submit an incomplete/wrong update, those attributes are displayed as empty. This patch fixes that. Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #75 from Jonathan Druart--- Another one: 1/ Set an attr as displayed at the OPAC but not editable 2/ At the OPAC, fill the edit patron form but miss a mandatory field, submit 3/ You get the form again but the attr is not displayed. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Jonathan Druartchanged: What|Removed |Added Status|Signed Off |Failed QA --- Comment #74 from Jonathan Druart --- I do not know if it comes from the last patches but I found something else. if I do not make any changes to the editable attrs, they will appear as modified anyway (entry in borrower_modifications). -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #71 from Tomás Cohen Arazi--- Created attachment 59737 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59737=edit Bug 13757: (regression tests) Empty attributes should delete existing This patch introduces tests for the required functionality. To test: - Run: $ prove t/db_dependent/Koha/Patron/Modifications.t => FAIL: The current code doesn't work like that Signed-off-by: Tomas Cohen Arazi https://bugs.koha-community.org/show_bug.cgi?id=13737 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #72 from Tomás Cohen Arazi--- Created attachment 59738 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59738=edit Bug 13757: Make Koha::Patron::Modification->store del empty attrs This patch makes Koha::Patron::Modification->store delete the passed attributes that contain empty values. This is the way it currently works, as all opac-editable attributes are presented to the end-user and they are allowed to delete them, and the best way I found to represent the deletion on the modification request is by setting it to the empty string. I chose this way because it is how the staff interface handles it, so it is consistent. To test: - Apply this patch - Run: $ prove t/db_dependent/Koha/Patron/Modifications.t => SUCCESS: This time tests pass! - Verify comment #70 on the bug is fixed now - Sign off :-D Signed-off-by: Tomas Cohen Arazi https://bugs.koha-community.org/show_bug.cgi?id=13737 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #73 from Tomás Cohen Arazi--- Created attachment 59739 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59739=edit Bug 13757: (QA followup) Make opac-memberentry.pl handle attrs deletion The original code on this bug skipped empty-valued attributes. But emptying attributes is the only way to tell the controller script that the user wants to delete them. This patch makes opac-memberentry.pl check the existence of attributes sharing the code of the empty for the given patron, and it stores the deletion on the Koha::Patron::Modification as needed. Otherwise deletions got skipped. To test: - Verify setting/deleting attributes that are opac-editable and verify the results are sound. https://bugs.koha-community.org/show_bug.cgi?id=13737 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Status|Failed QA |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Jonathan Druartchanged: What|Removed |Added Status|Signed Off |Failed QA --- Comment #70 from Jonathan Druart --- Found a bug: If a attr is editable at the opac and the patron clear the field, it appears in the patron modifications to approve/deny. But if you approve it, it's not cleared. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #69 from Tomás Cohen Arazi--- (In reply to Jonathan Druart from comment #68) > I was expecting to find some calls to > Koha::Object::Limit::Library->library_limits in this patchset, but I > actually do not see any. > Is it unused code or I missed a bug report? It is unused code. The idea was to introduce the new code and then migrate page by page to using the new class. On separate bug reports -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #68 from Jonathan Druart--- I was expecting to find some calls to Koha::Object::Limit::Library->library_limits in this patchset, but I actually do not see any. Is it unused code or I missed a bug report? -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #67 from Tomás Cohen Arazi--- (In reply to Jonathan Druart from comment #65) > Please use column_exists in the update DB entry. Last patch? -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #66 from Jonathan Druart--- (In reply to Jonathan Druart from comment #65) > Please use column_exists in the update DB entry. Done later, sorry! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #65 from Jonathan Druart--- Please use column_exists in the update DB entry. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #64 from Tomás Cohen Arazi--- Created attachment 59376 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59376=edit Bug 13757: (QA followup) Check DB structure before altering table Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Hugo Agudchanged: What|Removed |Added Status|Needs Signoff |Signed Off CC||ha...@orex.es --- Comment #63 from Hugo Agud --- I have tested the patch and it works, BUT I am still learning and I do not know how to create the signed patch, sorry -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Attachment #58429|0 |1 is obsolete|| --- Comment #61 from Tomás Cohen Arazi --- Created attachment 58714 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58714=edit Bug 13757: (followup) Regression tests for ->approve changes Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Attachment #58703|0 |1 is obsolete|| --- Comment #59 from Tomás Cohen Arazi --- Created attachment 58712 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58712=edit Bug 13757: (followup) Staff interface changes This patch adds proper extended attributes display and handling on the patron modifications moderation page (members-update.pl). It also adds changes checking to the opac-memberentry.pl page so it only saves a modification request if there are changes (it only checked regular fields and not the extended ones). Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Attachment #58581|0 |1 is obsolete|| --- Comment #62 from Tomás Cohen Arazi --- Created attachment 58715 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58715=edit Bug 13757: (followup) Fix authorized value display when opac_display & not opac_editable Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Attachment #58428|0 |1 is obsolete|| --- Comment #60 from Tomás Cohen Arazi --- Created attachment 58713 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58713=edit Bug 13757: (followup) Only touch opac_editable attributes As reported by Owen, the members-update.pl was showing every attributes the patron has (display issue) instead of showing only those affected by the changes. This patch fixes this by filtering the patron's attributes by opac editability. It also fixes Koha::Patron::Modification->approve so it only clears the attributes with the updating 'code' and leaves the others untouched. As its been coded so far (until someone refactors it all) the Koha::Patron::Modification object needs to contain all the attributes for a specific code. And it comes from parsing the UI's input. Tests for Koha::Patron::Modification->approve to come. Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Attachment #58356|0 |1 is obsolete|| --- Comment #58 from Tomás Cohen Arazi --- Created attachment 58711 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58711=edit Bug 13757: (followup) Remove warnings Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Attachment #58355|0 |1 is obsolete|| --- Comment #57 from Tomás Cohen Arazi --- Created attachment 58710 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58710=edit Bug 13757: Add extended attributes to the patron modification Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Attachment #58354|0 |1 is obsolete|| --- Comment #56 from Tomás Cohen Arazi --- Created attachment 58709 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58709=edit Bug 13757: DBIC update Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Attachment #58353|0 |1 is obsolete|| --- Comment #55 from Tomás Cohen Arazi --- Created attachment 58708 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58708=edit Bug 13757: OPAC changes Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Attachment #58352|0 |1 is obsolete|| --- Comment #54 from Tomás Cohen Arazi --- Created attachment 58707 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58707=edit Bug 13757: DB update Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Attachment #58351|0 |1 is obsolete|| --- Comment #53 from Tomás Cohen Arazi --- Created attachment 58706 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58706=edit Bug 13757: Add the option to set patron attributes editable in the OPAC Note: this is a squashed version of the original patchset, because it was needed This patch adds an opac_editable property of borrower attribute types that can be set in the interface. I'm removing work on OPAC and will refactor it, keeping the author attribution. Test plan: 1. Repeat the following with a new and existing borrower attribute type: 2. Verify that "Editable in OPAC" can only be checked if "Display in OPAC" is checked. 3. Verify that this new property is correctly saved. Signed-off-by: Aleisha Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Attachment #58357|0 |1 is obsolete|| --- Comment #52 from Tomás Cohen Arazi --- Created attachment 58703 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58703=edit Bug 13757: (followup) Staff interface changes This patch adds proper extended attributes display and handling on the patron modifications moderation page (members-update.pl). It also adds changes checking to the opac-memberentry.pl page so it only saves a modification request if there are changes (it only checked regular fields and not the extended ones). Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Bug 13757 depends on bug 17767, which changed state. Bug 17767 Summary: Let Koha::Patron::Modification handle extended attributes https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17767 What|Removed |Added Status|Pushed to Master|RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #51 from Tomás Cohen Arazi--- Created attachment 58581 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58581=edit Bug 13757: (followup) Fix authorized value display when opac_display & not opac_editable -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Owen Leonardchanged: What|Removed |Added Status|Needs Signoff |Failed QA --- Comment #50 from Owen Leonard --- (In reply to Owen Leonard from comment #46) > I tested this with a patron record which had two attributes with data > already stored: One editable in the OPAC, the other not. Editing is working correctly now, but now I don't see the value for my non-editable attribute. It only shows the label. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #49 from Tomás Cohen Arazi--- Created attachment 58429 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58429=edit Bug 13757: (followup) Regression tests for ->approve changes -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #48 from Tomás Cohen Arazi--- Created attachment 58428 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58428=edit Bug 13757: (followup) Only touch opac_editable attributes As reported by Owen, the members-update.pl was showing every attributes the patron has (display issue) instead of showing only those affected by the changes. This patch fixes this by filtering the patron's attributes by opac editability. It also fixes Koha::Patron::Modification->approve so it only clears the attributes with the updating 'code' and leaves the others untouched. As its been coded so far (until someone refactors it all) the Koha::Patron::Modification object needs to contain all the attributes for a specific code. And it comes from parsing the UI's input. Tests for Koha::Patron::Modification->approve to come. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 --- Comment #47 from Tomás Cohen Arazi--- Thanks for testing! I'll fix it tomorrow! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Aleisha Amohiachanged: What|Removed |Added CC|aleishaamo...@hotmail.com | -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Owen Leonardchanged: What|Removed |Added Status|Needs Signoff |Failed QA --- Comment #46 from Owen Leonard --- I tested this with a patron record which had two attributes with data already stored: One editable in the OPAC, the other not. When I edited the one, it cleared out the other. So the patron modification request in the staff client looked like this: Old value Attr1: OldValue1 <-- not editable in OPAC Attr2: OldValue2 <-- editable in OPAC New value Attr2: NewValue2 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/
[Koha-bugs] [Bug 13757] Make patron attributes editable in the opac if set to ' editable in OPAC'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13757 Tomás Cohen Arazichanged: What|Removed |Added Attachment #58254|0 |1 is obsolete|| --- Comment #41 from Tomás Cohen Arazi --- Created attachment 58353 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58353=edit Bug 13757: OPAC changes -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/