►
From YouTube: TTEOT Training Video - S1E4 - HTML: HTML Messages
Description
In this shorter, more riveting episode, George shows how to restore HTML functionality to patron messages and more. He also figures out how to stop the recording.
Referenced code:
https://wiki.koha-community.org/wiki/JQuery_Library#Render_patron_messages_as_HTML_and_in_Report_notes
Related Bug: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19852
Music: https://www.bensound.com
B
A
And
so
I'm
gonna
show
everybody
today.
This
is
not
something
that
christopher
or
I
wrote,
but
it's
something
that
I
asked
for
and
something
that
I
use
a
lot.
So
I'm
gonna
show
you
what
it
is
before
we
get
to
that,
though,
right
now
on
the
video
you
can
see,
this
is
the
quahog
us
home
page
and
if
you
go
over
to
the
link
here
that
says,
learn
from
us
and
scroll
down.
A
This
is
where
you
can
find
all
the
videos
we've
done
in
the
past,
with
the
links
to
all
the
stuff
that
we're
talking
about
in
more
detail
underneath
them.
So
that's
it
us
and
on
the
learn
from
this
page
towards
the
bottom.
B
And,
of
course,
there's
a
quick
link
up
at
the
top
to
jump
right
to
those
videos
too.
Yes,
videos
go
videos.
A
Will
pop
you
right
down
there?
So
so,
let's
get
to
this,
and
you
know
I'm
in
the
koha
us
demo
site
and
what
I'm
going
to
show
you
today.
So
this
is
something
that
happened
up
until
cohab
1705
in
the
patron
messages.
When
you
create
these
messages,
if
you
added
html
to
the
input
you're
putting
in
here,
it
would
render
in
the
message
as
html
with
1705.
A
There
were
some
changes
made
and
all
of
a
sudden,
all
of
the
you
know
for
the
hundreds
and
hundreds
and
hundreds
of
patrons
that
I
had
left
html
in
those
messages.
All
of
that
html
broke.
It
stopped
working
and
we
end
up
with
something
like
this.
Where
this
message
has
a
break
tag
and
there's
an
embedded
link,
so
there's
some
html
in
there
yeah,
that's
that
now,
all
of
a
sudden
it
doesn't
look
like
html.
It
makes
it
impossible
to
read:
well,
not
impossible.
It's
just
it's
just
a
lot
more
difficult
to
read.
A
So
when
this
happened,
I
you
know
it
was
the
day
after
we
upgraded
to
1705
and
I
contacted
bywater
and
michael
caboose,
who
is
no
longer
at
bywater,
created
a
bug
and
then
he
did
something
that
bywater
never
usually
does.
For
me,
he
said:
there's
an
h,
there's
a
jquery
workaround,
usually
yeah.
That's
usually
what
I
say
is
somebody
says,
there's
a
bug
and
I
say:
oh,
I
know
how
to
fix
that
with
jquery.
A
So
michael
came
up
with
this
jquery
workaround,
so
I'm
going
to
go
to
the
internet,
user.js
system
preference
and
the
first
part
is
this:
he
created
a
function,
so
this
is
just
a
piece
of
jquery
that
creates
a
function
that
you
can
use.
You
can
call
up
later
on
and
use
on
the
page,
so
it's
it's
really
useful
and
what
it
does
is
it
just
says
anytime,
we
have
some
text
in
a
specific
selector
that
you
want
to
show
is
html.
A
You
just
add
this
to
html
function.
To
that.
So
that's
the
first
part.
That's
what
the
function
does
it
says,
take
this
and
make
it
html,
take
this
text
and
convert
it.
So
that's
what
to
do
yes,
and
now.
The
second
part
is
where
to
do
it,
and
what
this
does
is.
If
we
look
back
at
this
message
here
and
I'm
going
to
open
up
the
inspector
and
I'm
gonna
go
up
here
and
this
whole
thing.
A
Is
in
the
it's
in
a
span
and
the
span
has
a
class
called
circ
dash
hlt,
I
don't
know
who
came
up
with
that
as
as
a
class,
but
it
works,
and
then
circulation
highlight
circulation,
highlight
that's,
probably
true,
and
it's
in
an
it's
in
a
div
with
an
id
of
messages.
A
So
if
we
go
back
and
look
at
the
selector,
it
says
anytime,
we
have
a
div
with
the
id
of
messages
and
we
find
anything
in
there
that
has
a
class
of
cert
hlt
each
time.
We
see
that
we're
going
to
take
this
and
we're
going
to
convert
it
to
html.
That's
calling
the
function
that's
up
here!
So
if
we
save
this
and
reload
this
page
I'll
get
rid
of
that,
then
all
of
that
html,
that's
rendering,
as
text
is
now
going
to
go
back
to
being
to
being
html,
see
the
breaks
yeah.
A
The
breaks
all
show
up-
and
this
is
based
on
a
report
that
I
use
where,
if
we
have
duplicate
patrons,
I
put
the
card
numbers
in
a
report,
and
then
I
get
this
get
back
this
nice
little
piece
of
html
that
I
can
plug
into
the
messages
on
both
accounts
and
then
that
way.
When
somebody
comes
across
this
account,
they
can
click
on
that
link
and
it
takes
them
to
the
other
account.
A
Yeah
you
can
embed
links,
you
can
do
whatever
you
can
do
in
html.
You
can
do
in
that
message.
Now,
that's
great!
So
the
one
of
the
reasons
I
like
this
as
a
function
is
because
you
know
this
was
what
happened
in
coho
1705,
so
in
coho,
1811.
A
It
again
yeah
exactly
so:
here's
the
saved
reports
table
and
all
of
this
stuff
here,
that's
in
the
notes,
field
for
years
and
years
and
years
as
far
as
I
know,
all
the
way
up
until
1811,
you
could
add
html
to
these
notes,
and
so
naturally
I
did
and
what
I
did
when
I
was
in
valnet.
I
did
it
when
I
started
working
at
nichols.
I
filled
you
know
all
of
those
notes
I
dumped
a
ton
of
html
into
because
I
try
to
put.
A
I
try
to
note
what
the
I
try
to
do
good
notes
for
my
reports,
because
I've
encountered
a
ton
of
reports
that
the
notes
are
terrible,
so
I
actually
have
a
little
template
that
I
can
plug
in
there
and
it
asks
you
know
basically
who
what
when,
where?
Why
and
how
you
know
we'll
accept
the
house.
You
know
what
does
this
report
do?
What's
it
for
how
how's
it
ordered
does
it
have
links
that
go
out
to
anything?
A
I
I
try
to
put
it
all
in
there,
because,
when
I
got
here
to
nichols,
I
inherited
a
whole
bunch
of
reports
that
didn't
have
good
notes
and,
of
course,
what
happened
with
1811
is
the
same
thing.
All
the
html
stopped
appearing
as
html
okay.
So,
in
order
to
get
the
the
in
order
to
add
that
function
to.
A
To
the
output
of
the
report
to
the
detail,
the
results
page
of
the
report,
the
first
thing
I'm
going
to
do
is
I'm
going
to
wrap
the
little
paragraph
where
those
notes
exist
with
this
id
and
there's
probably
another
way
to
do
that.
But
that's
what
I
do,
because
I
already
have
that
wrapped
around
there
for
something
else,
I'm
working
on
something
else
that
I've
got
my
system
doing
and
then,
when
I
put
this
there
that
will
take
those
once
I
save
it.
A
If
I
go
back
to
the
reports
out
the
table,
all
of
that
that
was
in
line
becomes
html,
and
when
I
actually
run
a
report,
the
notes
will
show
up
here
as
html,
instead
of
just
that
block
of
of
unformatted.
B
Text
very
nice,
I
I
had
noticed
to
you
know
you
talk
about
where
you
know
they
took
out
the
html
in
the
in
the
messages,
the
circ
messages
and
in
the
reports
another
place
that
I
noticed
in
the
past
few
years,
where
that
had
disappeared,
was
public
and
private
notes
for
or
at
least
the
public
notes
for
the
the
catalog.
B
So
if
you
put
public
notes
and
you
used
html
in
in
those
on
the
patreon
side
and
the
staff
side,
those
broke,
and
we
had
used
those
notes
many
times
to
like,
for
example,
when
we
added
the
digital
version
of
a
dvd
to
our
voodoo
account,
which
is
in
our
rokus,
that
that
we
check
out,
we
linked
those
movies,
the
actual
physical
movies
to
our
roku,
so
that
people
could
see.
Oh
it's
also
available
in
the
roku
and
if
you
click
on
it,
take
you
to
the
roku.
B
So
that
was
that
was
a
huge
thing
for
us
and
when
that
broke,
that
just
kind
of
chapped,
my
height
and
this
would
fix
that
yeah
yeah.
So
this
is
great.
This
is
a
great
tool
and
who
knows
where,
wherever
else
they
they
took
html
this?
This
is
going
to
be
a
fantastic
function,
for
anybody
to
to
put
that
back.
A
I
know
a
couple
of
people
that
are
already
using
it,
because
I
know
that
some
other
libraries
had
html
in
those
report
notes
and
michael
shared,
that
with
a
lot
of
people,
so
so
bywater
customers
are
at
least
aware
of
it.
I'm
not
sure
if
it's
on
the
wiki
or
not
but
I'll,
make
sure
it's
there
when
we
when,
when
this
recording
comes
out
before.
B
B
George,
before
we
wrap
this
up
for
this
week,
can
you
take
us
back
to
that
bug,
because
I
think
it's
important
that
we
you
know,
even
though
we've
got
this,
this
function
work
around.
You
know
that
is
great
in
itself.
B
I
would
like
to
stress
the
importance
of
chiming
in
on
on
bugs,
because
you
know
this
is
something
that
has
affected
many
different
areas
and
who
knows
how
many
people
it
is
affected
and
bugged
literally
so
it
looks
like
1985
if
you're
interested
in
this
being
a
something
repaired
in
coho
and
not
just
worked
around
with
jquery,
and
you
know
anytime,
that
we
add
jquery,
it's
just
more
and
more
code
for
us
to
to
swing
through
when
we're
working
on
jquery,
and
you
know,
when
we
do
upgrades,
we
have
to
make
sure
all
of
that
works.
B
If
we
could
have
this
something
permanently
fixed,
that's
always
a
bonus
over
jquery.
So
we
encourage
you
to
to
go
to
this
bug,
to
chime
in
to
add
yourself
to
the
cc
list
so
that
they
know
that
this
is
something
that
that
needs
to
be
fixed.
A
So
the
with
the
messages
I
never
heard
any
reason
why
that
shouldn't
be
fixed.
My
understanding
with
the
report
notes
is
that
that
was
done
on
purpose
to
prevent
code
from
being
put
into
those,
because
I
think
it
had
something
to
do
with
mana,
where
you
could
put
html
into
the
notes
and
then
once
those
notes
get
sent
to
the
mana
server
and
downloaded
by
somebody
else.
It
was
a
way
that
people
could
introduce
bad
code
into
somebody
else's
system
by
hiding
it
in
the
html
and
the
report
notes.
A
B
B
A
B
A
All
right
well
have
a
good
weekend,
we'll
see
you
in
a
couple
of
thursdays,
bye.