Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add start day option in Primo scheduler date picker #21

Open
AxelDorian opened this issue Apr 9, 2021 · 10 comments
Open

Add start day option in Primo scheduler date picker #21

AxelDorian opened this issue Apr 9, 2021 · 10 comments
Labels
enhancement New feature or request

Comments

@AxelDorian
Copy link

How can I change the day the calendar starts on? Currently the default start of the week is Sunday for the calendar view and I'd like to set it to Monday.
Is there a way to set both Saturday and Sunday as closed day to prevent Patron from placing reservation on these days?

Best Regards
Bruce

@jweisman
Copy link
Contributor

Hi @AxelDorian . Thanks for your suggestion. We do have a request open to link the scheduler to the opening hours in Alma (#12), and that seems like it would cover this as well. Do you agree?

@AxelDorian
Copy link
Author

Hi @jweisman , Thanks. I guess request #12 will indeed cover the 2nd part of my question.

@jweisman
Copy link
Contributor

Thanks @AxelDorian . Regarding the start day, are you referring to the calendar widget in the scheduling interface?

Screen Shot 2021-04-12 at 13 14 29

@AxelDorian
Copy link
Author

AxelDorian commented Apr 12, 2021

@jweisman I'm referring to the calendar widget in the Primo VE add-on:

2021-04-12_12-17-30

@jweisman jweisman changed the title App Scheduler Calendar Add start day option in Primo scheduler date picker Apr 12, 2021
@jweisman jweisman added the enhancement New feature or request label Apr 12, 2021
@jweisman
Copy link
Contributor

Understood- thanks! Updated the issue title.

@jweisman
Copy link
Contributor

jweisman commented Jun 7, 2021

Hi @AxelDorian - we've added this option to the Primo add-on in version 0.1.0. If you're using the stand-alone add-on, you can follow the directions in the readme. If you're using the Primo Studio version, it will be available shortly in Primo Studio.

Let us know how it goes!

@AxelDorian
Copy link
Author

Hi, I tried to add the "first-day-of-week" as parameter in my stand-alone add-on but it does not work. Can you give me the correct syntax I have to use within the app.component?

/** Appointment Scheduler in Library Card */
app.component('prmAccountOverviewAfter', {
bindings: {parentCtrl: '<'},
template: `<primo-studio-appointment-scheduler
parent-ctrl="$ctrl.parentCtrl"

`
});
/** END Appointment Scheduler in Library Card */

Thanks

@jweisman
Copy link
Contributor

jweisman commented Jul 20, 2021

Hi @AxelDorian - first, please be sure you follow the upgrading instructions in this link. And do an npm install to get the latest version (0.1.0).

Please let me know if it's still not working after following those instructions. Or if the instructions are not clear.... Thanks!

@AxelDorian
Copy link
Author

Hi, I followed the instructions to get the last version but still I'm not sure where to add the first-day-of-week as parameter.
I tried also unsuccesfully to add it through Primo Studio.

Thanks, Bruce

@jweisman
Copy link
Contributor

Hi @AxelDorian - I believe it should look as follows:

/** Appointment Scheduler in Library Card */
app.component('prmAccountOverviewAfter', {
bindings: {parentCtrl: '<'},
template: `<primo-studio-appointment-scheduler
parent-ctrl="$ctrl.parentCtrl"
first-day-of-week="1"
`
});
/** END Appointment Scheduler in Library Card */

If that doesn't work for you please let me know. Appreciate your patience in getting this to work : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants