[Koha-bugs] [Bug 39027] News are ordered with oldest on top

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

[email protected] changed:

   What|Removed |Added

 Status|Needs Signoff   |Signed Off

-- 
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 39027] News are ordered with oldest on top

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

[email protected] changed:

   What|Removed |Added

 Attachment #191251|0   |1
is obsolete||

--- Comment #14 from [email protected] ---
Created attachment 191823
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191823&action=edit
Bug 39027: Order news on opac-main.pl by publication date instead of ID

On the OPAC, news should rather be ordered by the publication date than
by the creation date (~ id): a user want to see last published news
first and not last created news, regardless of their publication date

TEST PLAN:
1 - Create 3 news, have the 3 news published in an order different from
  their id (for example news 1 => 2020, news 2 => 2025, news 3 => 2023)
2 - Go on http://youropac/cgi-bin/koha/opac-main.pl -> news are ordered
  by ID
APPLY PATCH
3 - Repeat 2 -> news are ordered by Date

Signed-off-by: Mercury 

-- 
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 39027] News are ordered with oldest on top

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

Aleisha Amohia  changed:

   What|Removed |Added

 CC||[email protected]
   Keywords||Academy

-- 
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 39027] News are ordered with oldest on top

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

Baptiste Wojtkowski (bwoj)  changed:

   What|Removed |Added

 Status|Failed QA   |Needs Signoff

-- 
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 39027] News are ordered with oldest on top

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

Baptiste Wojtkowski (bwoj)  changed:

   What|Removed |Added

 Attachment #177588|0   |1
is obsolete||

--- Comment #13 from Baptiste Wojtkowski (bwoj) 
 ---
Created attachment 191251
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191251&action=edit
Bug 39027: Order news on opac-main.pl by publication date instead of ID

On the OPAC, news should rather be ordered by the publication date than
by the creation date (~ id): a user want to see last published news
first and not last created news, regardless of their publication date

TEST PLAN:
1 - Create 3 news, have the 3 news published in an order different from
  their id (for example news 1 => 2020, news 2 => 2025, news 3 => 2023)
2 - Go on http://youropac/cgi-bin/koha/opac-main.pl -> news are ordered
  by ID
APPLY PATCH
3 - Repeat 2 -> news are ordered by Date

-- 
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 39027] News are ordered with oldest on top

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

Owen Leonard  changed:

   What|Removed |Added

 Status|Needs Signoff   |Failed QA

--- Comment #12 from Owen Leonard  ---
In my test, without the patch news items are sorted by ID. With the patch items
are sorted by publication date ascending, so the oldest items are on top.

-- 
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 39027] News are ordered with oldest on top

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

--- Comment #11 from David Nind  ---
Created attachment 190788
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=190788&action=edit
Before and after screenshots

I tested again.

Currently, for both the OPAC and staff interface, the news appear to be ordered
by the latest published news item at the top, which is what I'd expect.

With the patch, which still applies, it is now ordering the other way for me.
That is, the earliest news item first.

-- 
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 39027] News are ordered with oldest on top

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

--- Comment #10 from Baptiste Wojtkowski (bwoj) 
 ---
I set the patch back to NSO then

-- 
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 39027] News are ordered with oldest on top

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

Baptiste Wojtkowski (bwoj)  changed:

   What|Removed |Added

 Status|In Discussion   |Needs Signoff

-- 
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 39027] News are ordered with oldest on top

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

--- Comment #9 from Oliver Behnke  ---
To summarize: sort by publication date decending by default.

-- 
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 39027] News are ordered with oldest on top

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

--- Comment #8 from Oliver Behnke  ---
That's an option.

But most importantly the current default needs to be reversed and we should
probably focus on that first to get this issue resolved. It seems we all agree
that the default order should be decending. 

Cheers

-- 
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 39027] News are ordered with oldest on top

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

--- Comment #7 from Baptiste Wojtkowski (bwoj) 
 ---
Tbh I don't see any use case for an order from oldest to newest, as well as our
product owner, and I feel like this will be an unused syspref.

Atm, the sorting by number works if there is a number, right ?

Maybe I can propose a patch that adds the syspref and we push it only if some
customers need it ?

-- 
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 39027] News are ordered with oldest on top

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

--- Comment #6 from Oliver Behnke  ---
I think I'd prefer a syspref to define the default order (publish data
asc/desc). If there's an override via "Appear in position" then respect that.

What I don't like is a link/button to change the order interactively, *if*
users have to click it every time - i.e. due to a lacking desired default.

-- 
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 39027] News are ordered with oldest on top

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

David Cook  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 39027] News are ordered with oldest on top

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

David Nind  changed:

   What|Removed |Added

 Status|Needs Signoff   |In Discussion
 CC||[email protected]

--- Comment #5 from David Nind  ---
Normally, for a news site, you would want to see the latest news item at the
top (well, I would anyway).

But I also understand that this may not suit everyone, and how different
libraries use the news feature.

How about a link/button to sort by latest or earliest? Not sure how to do this
and make it look nice.

But then this would muck up the numbered option that you can set, which is also
used for HTML customisations.

If sorting by "Appear in position" is not used, then it shouldn't be shown on
the form.

I guess "we" will have to choose!

So maybe the logic would be:
1. If there is an "Appear in position" value, show in the order specified. 
2. If some "Appear in position" values, show in the specified order then by
date published with the latest first.
3. If there is no "Appear in position" values, sort with the latest item first
(published date).
4. Have a link to sort by latest/oldest.
5. Something else?
6. Give up and leave 

Current behavour for news:
1. If no "Appear in position", news is displayed by the creation date, with the
earliest date first (?).
2. Use "Appear in position" to sort in your preferred order.
3. If "Appear in position" is only used on some items, sorts in descending
order (2, 1, ...) with ones without after this in the date created order.

Behavour after the patch for both OPAC and staff interface:
1. Displayed by published date, with the oldest at the top and the latest at
the bottom.

Changing status to in discussion.

-- 
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 39027] News are ordered with oldest on top

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

Oliver Behnke  changed:

   What|Removed |Added

 CC||[email protected]

--- Comment #4 from Oliver Behnke  ---
Can we expand this issue to cover the staff interface as well? News can be
displayed in both places and it suffers from that problem as well.

Honestly, sorting by publish date ascending doesn't make any sense to me, so
one could even think about changing the default to descending :) If not, then a
syspref would be much appreciated.

Cheers

-- 
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 39027] News are ordered with oldest on top

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

Baptiste Wojtkowski (bwoj)  changed:

   What|Removed |Added

Summary|News are order with older   |News are ordered with
   |on top  |oldest on top

-- 
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/