[Koha-bugs] [Bug 38706] Replace UserJS system preference with snippets

2026-01-11 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

David Cook  changed:

   What|Removed |Added

   See Also||https://bugs.koha-community
   ||.org/bugzilla3/show_bug.cgi
   ||?id=31934

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-10-20 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Koha collecto  changed:

   What|Removed |Added

 CC||[email protected]

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-09-03 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Arturo  changed:

   What|Removed |Added

 CC||[email protected]

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-07-02 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Lisette Scheer  changed:

   What|Removed |Added

 Blocks||39538


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39538
[Bug 39538] Replace UserCSS system preference with snippets
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-07-02 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Lisette Scheer  changed:

   What|Removed |Added

   Keywords||roadmap_25_11

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-07-02 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Lisette Scheer  changed:

   What|Removed |Added

 Depends on||40293


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40293
[Bug 40293] Additional content codemirror mode initializes as xml
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-06-16 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Lisette Scheer  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-06-10 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Sally  changed:

   What|Removed |Added

 CC||sally.healey@cheshireshared
   ||services.gov.uk

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-06-10 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

--- Comment #20 from Mathieu Saby  ---
This is the practice of our service provider Biblibre ;-)
I suppose we could do things differently, so I'll ask them.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-06-06 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

--- Comment #18 from Lisette Scheer  ---
(In reply to Mathieu Saby from comment #17)
> In my library we have just 1 line in the UserJS, a call to a _big_ js file
> (with  $.getScript) located in public/js
> We are happy with that because it allows us to version the js code outside
> Koha.
> Same thing with the CSS...
> 
> I am not sure to understand well what you're planning, but would our way of
> doing things still be possible?

That should still work, you'd just have one snippet with the current line.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-06-06 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Mathieu Saby  changed:

   What|Removed |Added

 CC||[email protected]

--- Comment #17 from Mathieu Saby  ---
In my library we have just 1 line in the UserJS, a call to a _big_ js file
(with  $.getScript) located in public/js
We are happy with that because it allows us to version the js code outside
Koha.
Same thing with the CSS...

I am not sure to understand well what you're planning, but would our way of
doing things still be possible?

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-06-03 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Lisette Scheer  changed:

   What|Removed |Added

   Assignee|[email protected] |[email protected]
   |ity.org |m

--- Comment #16 from Lisette Scheer  ---
A few notes about the scope of this bug + some things I'd like to do as
followups after:

-New table (or as part of additional contents, unsure at this point) for
snippets
-Interface for editing, including codemirror (subset of additional contents
interface)
-Initial upgrade will make one big snippet
-Set up a delimter-based snippet splitter so users can define where they want
snippets split and run it on demand.
-Confirm global variables work/document how to make them work if anything
special is needed
- Permissions
- Move the branch js into this
-Separate try/catch for each snippet so one breaking doesn't break all
-- Log in console which snippet is failing for troubleshooting


My plan was not to have a "Both" locations option because there's too many
different names/structure, but we could set it up and possibly note that
there's differences in the names/classes of things sometimes. 


Later to do:
- Multiselect for libraries/select library groups (probably for all additional
contents)
- Define module/specific pages for code to load on (example: lots of label
renaming on patron edit screens, being able to define to only those specific
ones or at least modules for those could be helpful)
- Show on branches which snippets are all branches/specific to that branch? Not
sure if this would be helpful, but large systems might find it helpful to be
able to see all additional contents that are shown on a particular branch?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-05-14 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

--- Comment #15 from Steve, OSLRI, USA  ---
We use snippets in Aspen and have 50+ individual Aspen sites in our instances. 
Some snippets apply to all and some apply to one site or even one page on one
site.  We use naming conventions to clearly indicate what applies to what. 
That same could apply here, e.g., 

1. opac - advanced search
2. staff - custom facets
3. both - custom footer
4. both - custom batman sound effects
...

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-05-14 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

--- Comment #14 from Christopher Brannon  ---
I could see some potential pitfalls if IDs and classes are not consistent
between the two.  Not everything has been consistent.  It's getting better, I
think, but I've seen enough differences where I've had to target things
differently from one side to the other.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-05-14 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

--- Comment #12 from David Cook  ---
With snippets, I wonder if we'd want a way to specify "type" so that we could
make it a ES6 module or not. 

Of course, with inline Javascript, there's limited utility with an anonymous
module, since you can't import/export it. The main benefit would be importing
other ES modules and having a stricter context (ie not polluting the global
context).

it could be interesting trying to implement the snippets as .js files, so
rather than displaying it as an inline 

[Koha-bugs] [Bug 38706] Replace UserJS system preference with snippets

2025-05-14 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

--- Comment #13 from David Cook  ---
(In reply to Magnus Enger from comment #3)
> +1 I think it would make sense to do the same for UserCSS? And have one
> smippet go to either the OPAC or staff, or both?

Magnus way ahead of me there in terms of the locations hehe

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-05-14 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

--- Comment #11 from David Cook  ---
(In reply to Christopher Brannon from comment #10)
> I'm wondering how this would affect those of us that reuse functions and
> gathered content in multiple parts.  Would something that is defined in one
> snippet be able to be called from another, or should we have a global
> snippet?

It'll depend a bit on how the feature is implemented and how you implement your
Javascript, but overall it'll probably be doable.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-05-14 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Steve, OSLRI, USA  changed:

   What|Removed |Added

 CC||[email protected],
   ||[email protected]

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-05-14 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Christopher Brannon  changed:

   What|Removed |Added

 CC||[email protected]

--- Comment #10 from Christopher Brannon  ---
I'm wondering how this would affect those of us that reuse functions and
gathered content in multiple parts.  Would something that is defined in one
snippet be able to be called from another, or should we have a global snippet?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-04-21 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

[email protected] changed:

   What|Removed |Added

 CC||[email protected]

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-04-10 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Paul Derscheid  changed:

   What|Removed |Added

 CC||[email protected]

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-04-10 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Brendan Lawlor  changed:

   What|Removed |Added

 CC||[email protected]

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-04-10 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Michaela Sieber  changed:

   What|Removed |Added

 CC||michael.skarupianski@gmail.
   ||com,
   ||[email protected]

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-04-09 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Katie Bliss  changed:

   What|Removed |Added

 CC||[email protected]

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-04-03 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Marion Durand  changed:

   What|Removed |Added

 CC||[email protected]

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2025-04-03 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Lisette Scheer  changed:

   What|Removed |Added

   See Also||https://bugs.koha-community
   ||.org/bugzilla3/show_bug.cgi
   ||?id=39538

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2024-12-17 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

--- Comment #9 from David Cook  ---
(In reply to Andrew Fuerste-Henry from comment #8)
> True! I forgot that OPAC CSS and JS had been added to branches. In the
> structure we're ideating here it would make sense to pull that out of the
> branches setup and instead let each snippet be limited to one or more
> branches.

Yep, I'd agree.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2024-12-17 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

--- Comment #8 from Andrew Fuerste-Henry  ---
(In reply to David Cook from comment #7)
> (In reply to Andrew Fuerste-Henry from comment #4)
> > I also like the idea of giving the user the choice of where to apply those
> > snippets. I suppose we'd want to cover all the varieties of those sysprefs,
> 
> There's also the question of branch-level CSS and Javascript and how that
> fits into this...

True! I forgot that OPAC CSS and JS had been added to branches. In the
structure we're ideating here it would make sense to pull that out of the
branches setup and instead let each snippet be limited to one or more branches.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2024-12-16 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

--- Comment #7 from David Cook  ---
(In reply to Andrew Fuerste-Henry from comment #4)
> I also like the idea of giving the user the choice of where to apply those
> snippets. I suppose we'd want to cover all the varieties of those sysprefs,

There's also the question of branch-level CSS and Javascript and how that fits
into this...

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2024-12-16 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

--- Comment #6 from David Cook  ---
(In reply to David Cook from comment #5)
> (In reply to Magnus Enger from comment #3)
> > +1 I think it would make sense to do the same for UserCSS? And have one
> > smippet go to either the OPAC or staff, or both?
> 
> This would be a problem when we implement Content-Security-Policy. Each
> individual snippet will need its own type indicated.

I might be misinterpreting what you're saying though.

Overall, yes for doing it for UserCSS as well. Just so long as the snippets are
clearly marked as CSS or Javascript.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2024-12-16 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

--- Comment #5 from David Cook  ---
(In reply to Magnus Enger from comment #3)
> +1 I think it would make sense to do the same for UserCSS? And have one
> smippet go to either the OPAC or staff, or both?

This would be a problem when we implement Content-Security-Policy. Each
individual snippet will need its own type indicated.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2024-12-16 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Lisette Scheer  changed:

   What|Removed |Added

 CC||[email protected]
   ||m

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2024-12-16 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

--- Comment #4 from Andrew Fuerste-Henry  ---
(In reply to Magnus Enger from comment #3)
> +1 I think it would make sense to do the same for UserCSS? And have one
> smippet go to either the OPAC or staff, or both?

I like the idea of doing the same to UserCSS.

I also like the idea of giving the user the choice of where to apply those
snippets. I suppose we'd want to cover all the varieties of those sysprefs,
though:
SelfCheckInUserCSS
SCOUserCSS
OPACUserCSS
IntranetUserCSS

SelfCheckInUserJS
SCOUserJS
OPACUserJS
IntranetSlipPrinterJS
IntranetUserJS

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2024-12-15 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Magnus Enger  changed:

   What|Removed |Added

 CC||[email protected]

--- Comment #3 from Magnus Enger  ---
+1 I think it would make sense to do the same for UserCSS? And have one smippet
go to either the OPAC or staff, or both?

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2024-12-15 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

--- Comment #2 from David Cook  ---
(Aside: Of course, today is the day I learn that you can actually use dynamic
imports in regular Javascript code...so even less utility for making the
snippets appear as modules...)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2024-12-15 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

--- Comment #1 from David Cook  ---
+1

--

It could be interesting to have enabled/disabled options as well. Sure, in
theory, you can always just comment out the code you want to disable, but
depending on how you've done your code comments this can actually be a bit of a
pain. Having an easy way to turn these on/off could potentially be handy.

--

This is a bit of a tangent, but this could also allow us to enhance the UserJS
feature. For instance, if we could toggle on 'type="module"', then we'd be able
to add support for user-defined ES6 modules. 

(I'm curious how ES6 module imports from external URLs work with
Content-Security-Policy...)

That said, I don't know how much of a value add this really would be. It just
popped into my mind, as I was writing some ES6 modules last week, which made it
easy to share code around my codebase without interfering/polluting the global
namespace. 

Anyway, just food for thought.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2024-12-13 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Lucas Gass (lukeg)  changed:

   What|Removed |Added

 CC||martin.renvoize@ptfs-europe
   ||.com

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2024-12-13 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Lucas Gass (lukeg)  changed:

   What|Removed |Added

 CC||[email protected]

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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 38706] Replace UserJS system preference with snippets

2024-12-13 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706

Andrew Fuerste-Henry  changed:

   What|Removed |Added

 CC||[email protected]

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
[email protected]
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/