Keeping activities "checked" until location is switched.

24 views
Skip to first unread message

gordonl

unread,
Jul 6, 2017, 12:48:52 PM7/6/17
to Suma: mobile library assessment toolkit
Hi Bret and Team,

I've been asked by our operations team if there is a way to keep the current activities active until the location is changed. The reason is that they hope that data entry will be faster if they are able to just change a few activities check elements between adding counts.

Maybe this would be a two-step process. First remove the code that clears the checked elements when a count is added to a locations. Second add new code that clears those elements when the location is changed.

1.

I think that this is the code in sum/web/js/spaceassess.js within the CountPeople function that clears the checked activities:

        $("input.check:checked", countForm).each(function() {
            countObj
.activities.add(currentActivities[$(this).val()]);
       
}).prop("checked", false).button("refresh");

In particular the 

.prop("checked", false).button("refresh"

part.


2. Not sure, I'll have to test, I might have to add check clearing code to this function:

$("div#loc_lists").on("click", "li.loc_item a", function() {

Anyway, I welcome any thought you have on the best way to go about this. Thanks much!

Bret Davidson

unread,
Jul 11, 2017, 8:18:32 AM7/11/17
to suma-mobile-library...@googlegroups.com
Hi Gordon,

Apologies for the delay in responding, I was out of the office last week. The ability to keep activities active across multiple counts has been requested many times and we've intentionally left this feature off over concerns that it would make it too easy to collect erroneous data (especially if used in tandem with the multi count feature). If you still want to add this feature to your local install, your approach sounds reasonable to me. I think you are correct, it would be a two step process that changes how the checked elements in the activity groups are cleared relative to the count button as well as adding check clearing behavior to the location tree. It might be worth considering if there is a way to give users an option to select the desired behavior, but this would certainly add a layer of complexity.

I'm currently working with Jason Casden and Nick Cappadona on developing an updated Suma client that is still some months away. Our initial focus is to implement an improved data layer with broader browser support while preserving the current functionality of the Suma client. The ability to keep activities active across multiple counts is something that we can revisit in the future as part of this updated client, but for now we don't have any plans to add this capability to the current official client. 

Hope this helps, let me know how it goes!

Best,

Bret



--
You received this message because you are subscribed to the Google Groups "Suma: mobile library assessment toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to suma-mobile-library-assessment-toolkit+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gordon Leacock

unread,
Jul 11, 2017, 9:59:51 AM7/11/17
to suma-mobile-library...@googlegroups.com, Denise Foley
Hi Bret,

Thanks for the informative reply. It is great to know that Suma development continues and that you may add this feature in the future.

Also good that my approach seems sound to you. I'll let you know if we go ahead locally.

Regards,

Gordon

To unsubscribe from this group and stop receiving emails from it, send an email to suma-mobile-library-assessment-toolkit+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ian Dean

unread,
Aug 4, 2021, 2:06:09 PM8/4/21
to Suma: mobile library assessment toolkit
Gordon,

Did you ever implement this code? If so how did it go?

Thanks,

Ian

To unsubscribe from this group and stop receiving emails from it, send an email to suma-mobile-library-asses...@googlegroups.com.

Gordon Leacock

unread,
Aug 10, 2021, 1:21:33 PM8/10/21
to suma-mobile-library...@googlegroups.com, Denise Leyton

Regards,
Gordon

Gordon Leacock, Application Programmer, UM Library Information Technology 
(Pronouns: he, him, his; cisgendered white. Schedule M-Th with Fridays off.)


Denise Leyton

unread,
Aug 10, 2021, 1:45:36 PM8/10/21
to Gordon Leacock, suma-mobile-library...@googlegroups.com
From the use side, it went well. Gordon's code helped us accomplish what we wanted. We haven't been using this funtionality lately but it worked well when we were using it.
--
Denise Leyton
Strategic Projects Coordinator in Library Environments
She/Her/Hers
University of Michigan Library


Ian Dean

unread,
Aug 10, 2021, 1:54:09 PM8/10/21
to Suma: mobile library assessment toolkit
Thanks, and now that I looked at it I see that your branch got merged into the master branch.
Reply all
Reply to author
Forward
0 new messages