►
Description
Yes, we're locking things down. But never fear! We're also giving you the keys...the keys to customizing access in Koha. That's right! You can decide who has access to what, even if Koha doesn't give you that specific option. In this episode, we'll show you the basics by locking the the switch library feature. No switching for you!
Contents:
0:00 - Title
0:33 - Intro
4:50 - Locking down library settings
14:49 - Testing Demo
15:46 - Summary
Referenced code:
https://wiki.koha-community.org/wiki/JQuery_Library#Lockdown_Library_Settings
Music: https://www.bensound.com
A
Tab
under
video,
playlists
and
you'll
find
our
latest
episode,
always
at
the
top
and
all
of
our
seasons
prior
or
excuse
me
episodes
prior
under
each
season,
and
we
also
have
some
other
great
video
references
on
this
page
as
well
as
other
fantastic
resources
that
you
can
find
through
our
learn
page
and
this
week
we
are
going
to
be
talking
about
locking
down
quahog,
specifically
locking
it
down
to
where
only
specific
people
can
change
the
library
in
koha.
A
When
we
first
got
into
koha
everybody
had
the
ability
to
change
what
library
was
set
in
koha,
not
only
when
you
log
in,
but
as
you're
working
and
for
us.
This
caused
some
issues
with
information,
because
some
people
would
change
libraries
if
they
were
if
they
were
a
person
that
was
working
with
multiple
branches.
A
They
could
change
their
library
as
needed,
but
they
forget
to
change
it
back,
and
so
if
they
did
something
for
one
branch
and
was
in
the
wrong
branch,
that
would
start
to
cause
some
problems
for
their
data
and
for
their
materials.
So
this
can
cause
a
material
routing
issue.
If
you
don't
pay
attention
to
it.
So
that's
why
we
decided
to
lock
this
particular
setting
down.
I
don't
know
about
you,
george,
do
you
have
anything.
B
B
So
and
that's
just
one
example:
I've
had
dozens
of
examples
like
that.
A
Yeah-
and
you
know
you
know,
as
I
mentioned,
there
may
be
some
libraries
that
handle
multiple
branches
and
there
there
are
going
to
be
ways
that
you
can
isolate
specific
users
and
exclude
them
from
this.
So
if
you
have
a
branch
manager
or
or
somebody
a
staff
member
at
a
particular
group
of
libraries
that
handles
more
than
one
branch
you
can
exclude
them
from
being
able
to,
you
can
exclude
them
from
not.
How
do
I
say
this.
A
So
we're
not
gonna
show
that
portion
right
now.
We're
just
gonna
show
the
very
basic
how
to
prevent
people
from
changing
libraries
with
one
exception.
If
you're
a
super
librarian,
then
you'll
be
able
to
switch
librarians
libraries
so
we'll
go
ahead
and
show
that
today,
so
to
start
off,
I'm
going
to
go
ahead
and
log
out
of
our
demo
site
for
a
moment
and
show
just
what
people
see
when
when
they
log
in
and
what
they
can
do
now.
B
B
I
have
libraries,
we
have
a
school
district
and
the
people
at
the
school
district
need
to
be
able
to
act,
need
to
be
able
to
log
in
to
each
individual
library
and
they
need
to
be
able
to
change
libraries,
and
I
have
another
library,
that's
a
district
that
has
four
branches
and
the
people
at
those
four
different
branches
need
to
be
able
to
log
in
and
change
libraries
to
any
of
those
libraries
in
that
district.
But
there
is
a
way
that
you
can
just
tell
coho.
B
With
the
system
preference
nobody's
allowed
to
change
libraries
you're
you
log
in
that's
your
library
and
you
can
never
change
it.
We
needed
something
more
flexible
and
that's
why
you
wrote
that's
the
same
reason.
You
wrote
this
code
if
you're
at
a,
if
you're
at
a
single
branch-
and
you
don't
need
to
change
libraries
that
works
if
you're
at
a
multi-branch
system
and
nobody
needs
to
ever
change
libraries,
then
you
can
just
use
the
system
preference.
This
is
kind
of
an
intermediate
step
that
gives
you
the
best
of
both
worlds.
B
A
And
one
thing
that
you're
not
seeing
here-
I
have
this
in
my
code,
but
I'm
not
seeing
it
on
this
page,
so
we
may
not
have
this
particular
feature
set
in
our
demo
page.
Apparently
there
could
be
a
setting
for
the
desk
as
well
on
this
login
page.
I
don't
think
we
have
desks
set
up
on
the
demo.
B
A
By
default,
so
so
you
have
lots
of
options
just
as
you're
logging
in
and
when,
when
you're
logging
in
we're
treating
the
login
a
little
bit
differently
with
with
our
code.
A
So
we're
gonna
have
a
little
bit
of
css
here
too,
and
we're
just
gonna
knock
out
the
the
library
and
the
register
register,
and
if
you
have
a
desk,
knock
that
out
as
well,
because
we're
just
gonna
make
this
a
simple
login
page,
because
you
can
change
all
these
things
from
within
quahog,
and
it
just
made
it
simpler
just
to
to
not
give
this
option
because
we're
not
going
to
determine
we're
not
going
to
make
it
so
complex
that
we
determine
if
you've
typed
in
this
name
then
go
ahead
and
show
all
of
these
options.
A
It
just
didn't
make
any
sense,
because
you
could
do
it
from
within
after
you've
logged
in.
So
we
just
made
it
simple
for
for
that,
but
I'm
going
to
go
ahead
and
log
in
and
there's
a
couple
places
that
we're
going
to
to
address.
The
first
is
this
drop
down.
Here
we
have
a
a
a
menu
item
up
in
the
upper
right
hand,
menu
that
says
set
library
and
cash
register.
A
So
that's
one
item
that
we're
going
to
remove
with
this
code
today
and
the
other
one
is
in
the
circulation
page
again:
you'll
you'll
have
that
there,
but
also
they've
added
a
button
for
set
library
and
so
we're
gonna
we're
gonna
address
both
of
these
with
today's
hack.
A
So
I'm
gonna
start
off
by
first
of
all,
I'm
gonna
add
some
css
to
take
care
of
that
login
page,
as
I
said,
we're
just
gonna
we're
just
gonna.
Remove
that
and
css
is
the
easiest
way
to
do
it,
because
we
don't
have
to
put
any
logic
in
here,
so
we're
just
basically
looking
for
the
branch
and
its
label,
so
the
branch
drop
down
and
its
label
and
then
the
same
for
the
other
elements.
A
We've
got
a
the
desk
that
we're
taking
care
of
so
it's
taking
care
of
the
the
label
and
the
desk
drop
down,
and
then
we've
got
the
cash
register.
So
it's
the
register
underscore
id
and
then
the
label
for
that
and
we're
just
telling
it
to
not
display
so
I'll.
Save
that
I'm
going
to.
A
Wipe
out
the
menu
setting
in
the
upper
right
hand
corner
for
setting
libraries,
so
I
could
leave
it
just
as
this
and
this
would
take
care
of
it.
But
there
are
a
couple
other
things
that
we
want
to
address
here.
First
of
all,
on
the
circulation
page.
If
you
look
at
the
circulation
page,
there's
also
that
set
library
button.
A
We
need
to
get
rid
of
that
and
I
can't
just
wipe
out
a
button
that
has
set
library
in
it
on
that
page,
because
if
I
do,
I
might
end
up
wiping
out
the
entire
menu
I've
learned
that
from
past
experience,
so
what
we're
going
to
do
is
add.
B
A
And
this
looks
for
specifically
that
page
and
again
you
know
it
looks
like
it's.
It's
doing
the
exact
same
thing,
but
in
this
case
I
have
to
specify
to
look
in
just
the
unordered
list
buttons
on
there.
So
I'm
actually,
if
I
right
click
on
this
inspect
so
here's
this
list
item
that
has
that
contains
set
library.
A
A
So
it's
looking
just
for
that
button
in
this
case
and
wiping
that
out
so
that
works.
This
is
in
its
simplest
form,
but
there
are
cases
where
we
don't
want
to
wipe
out
the
super
librarians.
You
know
we
want
to
be
able
to
give
some
people
that
ability-
and
this
will
be
a
good
example
if
you
wanted
to
be
able
to
set
it
up
for
other
people.
You
can
make
this
a
little
bit
more
complex,
but
we're
going
to
add
some
logic
to
this.
A
A
B
A
A
A
But
the
problem
with
this
particular
logic
is:
if
I
leave
it,
as
is
it's
going
to
remove
it
only
for
the
super
librarian,
which
is
the
opposite
of
what
I
want
to
do.
So,
if
I
put
in
front
of
this
inside
my
parentheses
for
the,
if
statement
an
exclamation
point,
it's
going
to
do
the
opposite,
and
it's
going
to
if
it
if
it
finds
the
this
element,
the
logged
in
username-
and
it
has
the
class
of-
is
super
librarian
as
well.
A
B
Okay,
so
I'm
gonna
log
in-
and
you
know
you
can't
see
the
drop
downs
that
that
should
be
there,
the
library
desk
and
cash
register.
Those
are
all
gone,
and
so
let
me
log
in.
B
A
A
As
I
mentioned
in
the
beginning,
you
can
do
a
more
complex
logic
with
this.
You
can
look
for
specific
users
and
also
exclude
them
from
this.
I've
got
not.
A
I
I've
got
some
different
setups
in
ours
because,
prior
to
that
that
element
having
the
his
super
librarian
class,
I
had
to
distinguish
specific
people
as
super
librarians.
So,
prior
to
that
I
was,
I
was
having
to
go
about
it
a
slightly
different
way.
So,
just
prior
to
this
episode,
we
were
reinventing
the
code
a
little
bit
to
simplify
it.
A
So
there
you
have
it
a
nice,
a
simple
way
of
locking
that
feature
down
to
improve
the
the
workflow
within
koha,
even
though
it
seems
like
we're
we're
stripping
down
a
feature:
we're
improving
the
workflow
by
eliminating
mistakes
within
quahog.
B
A
All
right,
so
as
always,
this
this
code
will
be
available
on
the
wiki
I'll
put
the
css
and
the
jquery
together
on
the
jquery
library
and
just
as
a
reminder
to
everybody.
You
can
always
find
our
videos
on
our
website,
but
you
can
also
find
us
in
youtube
for
cohort
us
and
we
encourage
you
to
subscribe
to
like
and
to
comment
on
our
videos.
We
always
love
to
hear
back
from
everyone
about
our
our
videos
and
what
you
think,
and
that
is
it
for
this
week,
all
right.