[Koha-bugs] [Bug 23246] Record detail page jumps into the 'images' tab if no holdings

2019-12-20 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Lucas Gass  changed:

   What|Removed |Added

 Status|Pushed to stable|Pushed to oldstable
 CC||lu...@bywatersolutions.com

--- Comment #28 from Lucas Gass  ---
backported to 19.05.x for 19.05.06

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-12-16 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Joy Nelson  changed:

   What|Removed |Added

 Status|Pushed to master|Pushed to stable
 Version(s)|20.05.00|20.05.00, 19.11.01
released in||
 CC||j...@bywatersolutions.com

--- Comment #27 from Joy Nelson  ---
Pushed to 19.11.01

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-12-10 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Martin Renvoize  changed:

   What|Removed |Added

 CC||martin.renvoize@ptfs-europe
   ||.com
 Version(s)|19.05.00|20.05.00
released in||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-12-10 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

--- Comment #26 from Martin Renvoize  ---
Nice work everyone!

Pushed to master for 20.05

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-12-10 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Martin Renvoize  changed:

   What|Removed |Added

 Status|Passed QA   |Pushed to master
 Version(s)||19.05.00
released in||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-11-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

--- Comment #25 from Tomás Cohen Arazi  ---
Thank you, Marcel.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-11-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Marcel de Rooy  changed:

   What|Removed |Added

 QA Contact|testo...@bugs.koha-communit |m.de.r...@rijksmuseum.nl
   |y.org   |

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-11-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Marcel de Rooy  changed:

   What|Removed |Added

  Attachment #95802|0   |1
is obsolete||

--- Comment #24 from Marcel de Rooy  ---
Created attachment 95873
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95873=edit
Bug 23246: (follow-up) Hardcoding tab position is not enough

There are many conditions that determine the tab number for 'media'.
Translated into variables that hold the tabs count on each condition, it
is clear that '3' was not good enough:
[%- holdings  = (SeparateHoldings)   ? 2 : 1
notes = (MARCNOTES || notes) ? 1 : 0
acq   = (Koha.Preference('AcquisitionDetails')) ? 1 : 0
frbr  = (FRBRizeEditions  && XISBNS) ? 1 : 0
local_covers  = (LocalCoverImages && (localimages ||
CAN_user_tools_upload_local_cover_images)) ? 1 : 0
media_tab = holdings + notes + acq + frbr + local_covers
-%]

This patch gets rid of the hardcoded value, adds an id to the 'media'
tab (i.e. 'media_tab') and uses JS to get the right index.

To test:
- Play with the different options governing those variables
=> FAIL: 3 is not always the 'media' tab
- Apply this patch
- Repeat your tests
=> SUCCESS: It always picks the 'media' tab
- Sign off :-D

Sponsored-by: American Numismatics Society
Signed-off-by: Maryse Simard 

Signed-off-by: Marcel de Rooy 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-11-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Marcel de Rooy  changed:

   What|Removed |Added

  Attachment #95801|0   |1
is obsolete||

--- Comment #23 from Marcel de Rooy  ---
Created attachment 95872
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95872=edit
Bug 23246: Only jump into the 'images' tab HTML5MediaEnabled is set to

This patch makes jumping into the third tab happen only if
HTML5MediaEnabled is set to 'both' or 'staff'.

To test:
- Have HTML5MediaEnabled set to 'opac' or 'not at all'
- Open the detail page of a record with no holdings
=> FAIL: The 'images' tab is selected
- Apply this patch
- Reload
=> SUCCESS: The 'holdings' tab is selected as it should be.
- Sign off :-D

Sponsored-by: America Numismatic Society
Signed-off-by: Maryse Simard 

Signed-off-by: Marcel de Rooy 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-11-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Marcel de Rooy  changed:

   What|Removed |Added

 Status|Signed Off  |Passed QA

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-11-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

--- Comment #22 from Marcel de Rooy  ---
Great. Will check later this week.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-11-25 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Tomás Cohen Arazi  changed:

   What|Removed |Added

   Patch complexity|--- |Trivial patch
  Change sponsored?|--- |Sponsored

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-11-25 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

--- Comment #21 from Tomás Cohen Arazi  ---
(In reply to Marcel de Rooy from comment #14)
>  FAIL   koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
>FAIL   forbidden patterns
> forbidden pattern: Do not use line breaks inside template
> tags (bug 18675) (line 899)

Fixed this one!

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-11-25 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

--- Comment #20 from Tomás Cohen Arazi  ---
Created attachment 95802
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95802=edit
Bug 23246: (follow-up) Hardcoding tab position is not enough

There are many conditions that determine the tab number for 'media'.
Translated into variables that hold the tabs count on each condition, it
is clear that '3' was not good enough:
[%- holdings  = (SeparateHoldings)   ? 2 : 1
notes = (MARCNOTES || notes) ? 1 : 0
acq   = (Koha.Preference('AcquisitionDetails')) ? 1 : 0
frbr  = (FRBRizeEditions  && XISBNS) ? 1 : 0
local_covers  = (LocalCoverImages && (localimages ||
CAN_user_tools_upload_local_cover_images)) ? 1 : 0
media_tab = holdings + notes + acq + frbr + local_covers
-%]

This patch gets rid of the hardcoded value, adds an id to the 'media'
tab (i.e. 'media_tab') and uses JS to get the right index.

To test:
- Play with the different options governing those variables
=> FAIL: 3 is not always the 'media' tab
- Apply this patch
- Repeat your tests
=> SUCCESS: It always picks the 'media' tab
- Sign off :-D

Sponsored-by: American Numismatics Society
Signed-off-by: Maryse Simard 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-11-25 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

--- Comment #19 from Tomás Cohen Arazi  ---
Created attachment 95801
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95801=edit
Bug 23246: Only jump into the 'images' tab HTML5MediaEnabled is set to

This patch makes jumping into the third tab happen only if
HTML5MediaEnabled is set to 'both' or 'staff'.

To test:
- Have HTML5MediaEnabled set to 'opac' or 'not at all'
- Open the detail page of a record with no holdings
=> FAIL: The 'images' tab is selected
- Apply this patch
- Reload
=> SUCCESS: The 'holdings' tab is selected as it should be.
- Sign off :-D

Sponsored-by: America Numismatic Society
Signed-off-by: Maryse Simard 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-11-25 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Tomás Cohen Arazi  changed:

   What|Removed |Added

 CC||tomasco...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-11-25 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Tomás Cohen Arazi  changed:

   What|Removed |Added

  Attachment #91362|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-11-25 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Tomás Cohen Arazi  changed:

   What|Removed |Added

  Attachment #91361|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-11-25 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

--- Comment #18 from Tomás Cohen Arazi  ---
(In reply to Katrin Fischer from comment #15)
> I agree with Marcel, but I also still see an issue for a record with URL,
> but without items: Tabs visible are holdings (0) and acquisitions.
> Acquisitions is selected (I think it should not be). One reason I think we
> should not jump is that we could still be displaying alternate holding
> information that is hidden this way.

This is the problem my patches fix: don't jump if you don't need to. And if you
do, jump to the right place. You really need to have more than 3 tabs to see
it. That's why I mention EasyAnalytics.

I will explain again: the current code jumps to the 4th tab, no matter how the
HTML5* sysprefs are set, or if the media tab is the fourth or another one.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-11-25 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

--- Comment #17 from Tomás Cohen Arazi  ---
(In reply to Marcel de Rooy from comment #14)
>  FAIL   koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
>FAIL   forbidden patterns
> forbidden pattern: Do not use line breaks inside template
> tags (bug 18675) (line 899)
> 
> Please adjust your test plan too. Enabling the media pref is not enough; you
> should have stuff in 856 fields too, indicators, etc?

Done. I submitted a new plan, but beware that I'm fixing the negative case:
i.e. the one in which context for displaying the media is not met, and yet
there's a tab jump. So having 856 is not part of the requirements to test the
wrong behavior I'm fixing. 

> What I do see without your patch for a biblio without holdings, is a flash
> in staff from Acquisitions tab (==3) back to Holdings when loading detail.
> Is solving 3 for media enough?

My follow-up adds an id and makes it jump to the ID, if present. Otherwise the
current behavior is kept and I'm not dealing with it.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-11-25 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Tomás Cohen Arazi  changed:

   What|Removed |Added

 Status|Failed QA   |Signed Off

--- Comment #16 from Tomás Cohen Arazi  ---
Here again. This is the test plan I followed:

- Have a record with an 856 $uhttps://www.youtube.com/watch?v=uHav6PL_4Bo
- Have HTML5MediaYouTube and HTML5MediaEnabled disabled, and LocalCoverImages
enabled
- Load the detail page of the record
=> FAIL: you see: https://snipboard.io/Csb7HK.jpg
(i.e. The syspref is disabled, but it jumps to the 'Images' tab, the fourth
one, which is hardcoded and doesn't verify the syspref first).
- Apply this patches, restart_all and refresh the browser
=> SUCCESS: It doesn't jump to the 'Images' tab
(https://snipboard.io/4z9NTl.jpg)
- Enable HTML5MediaYouTube and HTML5MediaEnabled
- Reload the detail page
=> SUCCESS:  The embedded media is displayed! (https://snipboard.io/REZ2T6.jpg)

The fact that it jumps to the 'Images' tab is a coincidence, if you have
EasyAnalytics enabled and LocalCoverImages disabled, it will jump to the
Analytics tab. This is because it is hardcoded to jump to the tab with index of
3. It is very easy to spot the problem in the diff...

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-30 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

--- Comment #15 from Katrin Fischer  ---
I agree with Marcel, but I also still see an issue for a record with URL, but
without items: Tabs visible are holdings (0) and acquisitions. Acquisitions is
selected (I think it should not be). One reason I think we should not jump is
that we could still be displaying alternate holding information that is hidden
this way.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-19 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Marcel de Rooy  changed:

   What|Removed |Added

 CC||m.de.r...@rijksmuseum.nl
 Status|Signed Off  |Failed QA

--- Comment #14 from Marcel de Rooy  ---
 FAIL   koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
   FAIL   forbidden patterns
forbidden pattern: Do not use line breaks inside template tags
(bug 18675) (line 899)

Please adjust your test plan too. Enabling the media pref is not enough; you
should have stuff in 856 fields too, indicators, etc?
What I do see without your patch for a biblio without holdings, is a flash in
staff from Acquisitions tab (==3) back to Holdings when loading detail.
Is solving 3 for media enough?

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-08 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

--- Comment #13 from Tomás Cohen Arazi  ---
This report tries to deal with:
- The template not respecting whether the HTML5MediaEnabled syspref is set to
display the 'Media' tab, and makes the third tab to get selected

This was intended to work like this:
- You have HTML5MediaEnabled set to display the media tab
- The record has no items, then jump to the third tab

This is wrong because there are many situations that would yield to wrong tabs
being selected, see #c2. Most of them are not trivial to reproduce, probably.
But the most basic, having HTML5MediaEnabled disbaled, clearly fails.

So the patches attached:
- Check if we really have HTML5MediaEnabled set to display in the staff
interface
- Assing an identifiable ID to the 'media' tab, so instead of a hardcoded tab
index, it 'does the right thing'.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-08 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Tomás Cohen Arazi  changed:

   What|Removed |Added

 Status|Failed QA   |Signed Off

--- Comment #12 from Tomás Cohen Arazi  ---
(In reply to Katrin Fischer from comment #10)
> It appears to work for me without the follow-up.
You need to have more than 3 tabs to highlight the bug.

1) Enable 'localcover', have 'HTML5MediaEnabled' and 'HTML5MediaYouTube'
disabled
2) Search for 'a' on the staff interface
3) Pick a record with no items
=> FAIL: The detail page jumps to the 'Images' tab.
4) Apply this patches
5) Run (same command in kohadevbox and koha-testing-docker):
  $ restart_all
6) Reload the detail page
=> SUCCESS: The 'Holdings' tab is selected
7) On a separate staff interface tab, enable HTML5MediaEnabled and
HTML5MediaYouTube (for the staff interface) <- I used YouTube so it is easier
8) Edit the MARC record, put a valid Youtube link on the 856$u field. Save.
=> SUCCESS: The detail page has the 'Media' tab picked.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-06 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

--- Comment #11 from Tomás Cohen Arazi  ---
(In reply to Katrin Fischer from comment #9)
> Only... it doesn't work.
> 
> I am looking at a detail page in staff and now the acq tab is preselected.
> Patches applied, restart_all and cache deleted.

The original implementation jumped to the fourth tab in the event of no
holdings.
The fourth tab is not the media one if HTML5MediaEnabled is disabled, and there
are conditions in which even in that case it is not the fourth.

The follow-up just adds an ID to the media tab, and jumps into is by using the
ID instead.

So, if it is not working, can you check on the page sources, and see if you
have the ID, and the line that says:

$('#bibliodetails').tabs("option", "active", $('#media_tab').index() );

If it is there, then it is not working, otherwise your templates have been
cached or similar.

I will retry myself. Thanks!

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-06 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

--- Comment #10 from Katrin Fischer  ---
It appears to work for me without the follow-up.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-06 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Katrin Fischer  changed:

   What|Removed |Added

 Status|Signed Off  |Failed QA

--- Comment #9 from Katrin Fischer  ---
Only... it doesn't work.

I am looking at a detail page in staff and now the acq tab is preselected.
Patches applied, restart_all and cache deleted.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-06 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Katrin Fischer  changed:

   What|Removed |Added

 Status|Signed Off  |Failed QA
 CC||katrin.fisc...@bsz-bw.de

--- Comment #7 from Katrin Fischer  ---
I am really not sure what this is trying to fix - please include a description
of the problem and how to reproduce it in the test plan.

Should the media tab be preselected under certain conditions?

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-06 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Katrin Fischer  changed:

   What|Removed |Added

 Status|Failed QA   |Signed Off

--- Comment #8 from Katrin Fischer  ---
(In reply to Tomás Cohen Arazi from comment #0)
> This is certainly related to bug 16507. The original implementation is
> supposed to jump into the 'media tab' if there are no holdings, but it is
> not checking HTML5MediaEnabled or HTML5MediaYouTube in order to jump to that
> tab.
> 
> Steps to reproduce:
> - Have HTML5MediaYouTube and HTML5MediaEnabled disabled
> - Create a record with no items
> - Go to the detail page
> => FAIL: the 'Images' tab is selected

I think this was meant to say enabled? Because then this starts to make sense
now :)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-05 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Maryse Simard  changed:

   What|Removed |Added

 Status|Needs Signoff   |Signed Off
 CC||maryse.sim...@inlibro.com

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-05 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Maryse Simard  changed:

   What|Removed |Added

  Attachment #91155|0   |1
is obsolete||

--- Comment #6 from Maryse Simard  ---
Created attachment 91362
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91362=edit
Bug 23246: (follow-up) Hardcoding tab position is not enough

There are many conditions that determine the tab number for 'media'.
Translated into variables that hold the tabs count on each condition, it
is clear that '3' was not good enough:
[%- holdings  = (SeparateHoldings)   ? 2 : 1
notes = (MARCNOTES || notes) ? 1 : 0
acq   = (Koha.Preference('AcquisitionDetails')) ? 1 : 0
frbr  = (FRBRizeEditions  && XISBNS) ? 1 : 0
local_covers  = (LocalCoverImages && (localimages ||
CAN_user_tools_upload_local_cover_images)) ? 1 : 0
media_tab = holdings + notes + acq + frbr + local_covers
-%]

This patch gets rid of the hardcoded value, adds an id to the 'media'
tab (i.e. 'media_tab') and uses JS to get the right index.

To test:
- Play with the different options governing those variables
=> FAIL: 3 is not always the 'media' tab
- Apply this patch
- Repeat your tests
=> SUCCESS: It always picks the 'media' tab
- Sign off :-D

Sponsored-by: American Numismatics Society
Signed-off-by: Maryse Simard 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-05 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Maryse Simard  changed:

   What|Removed |Added

  Attachment #91154|0   |1
is obsolete||

--- Comment #5 from Maryse Simard  ---
Created attachment 91361
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91361=edit
Bug 23246: Only jump into the 'images' tab HTML5MediaEnabled is set to

This patch makes jumping into the third tab happen only if
HTML5MediaEnabled is set to 'both' or 'staff'.

To test:
- Have HTML5MediaEnabled set to 'opac' or 'not at all'
- Open the detail page of a record with no holdings
=> FAIL: The 'images' tab is selected
- Apply this patch
- Reload
=> SUCCESS: The 'holdings' tab is selected as it should be.
- Sign off :-D

Sponsored-by: America Numismatic Society
Signed-off-by: Maryse Simard 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

--- Comment #4 from Tomás Cohen Arazi  ---
(In reply to M. Tompsett from comment #3)
> Comment on attachment 91155 [details] [review]
> Bug 23246: (follow-up) Hardcoding tab position is not enough
> 
> Review of attachment 91155 [details] [review]:
> -
> 
> *sniff sniff* Love the fixing of the hard coding. :)

Glad to hear

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

--- Comment #3 from M. Tompsett  ---
Comment on attachment 91155
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91155
Bug 23246: (follow-up) Hardcoding tab position is not enough

Review of attachment 91155:
 --> 
(https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html=23246=91155)
-

*sniff sniff* Love the fixing of the hard coding. :)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Tomás Cohen Arazi  changed:

   What|Removed |Added

 Depends on||16507


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16507
[Bug 16507] Show play media tab first
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

--- Comment #2 from Tomás Cohen Arazi  ---
Created attachment 91155
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91155=edit
Bug 23246: (follow-up) Hardcoding tab position is not enough

There are many conditions that determine the tab number for 'media'.
Translated into variables that hold the tabs count on each condition, it
is clear that '3' was not good enough:
[%- holdings  = (SeparateHoldings)   ? 2 : 1
notes = (MARCNOTES || notes) ? 1 : 0
acq   = (Koha.Preference('AcquisitionDetails')) ? 1 : 0
frbr  = (FRBRizeEditions  && XISBNS) ? 1 : 0
local_covers  = (LocalCoverImages && (localimages ||
CAN_user_tools_upload_local_cover_images)) ? 1 : 0
media_tab = holdings + notes + acq + frbr + local_covers
-%]

This patch gets rid of the hardcoded value, adds an id to the 'media'
tab (i.e. 'media_tab') and uses JS to get the right index.

To test:
- Play with the different options governing those variables
=> FAIL: 3 is not always the 'media' tab
- Apply this patch
- Repeat your tests
=> SUCCESS: It always picks the 'media' tab
- Sign off :-D

Sponsored-by: American Numismatics Society

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

Tomás Cohen Arazi  changed:

   What|Removed |Added

 Status|NEW |Needs Signoff
   Assignee|koha-b...@lists.koha-commun |tomasco...@gmail.com
   |ity.org |

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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 23246] Record detail page jumps into the 'images' tab if no holdings

2019-07-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23246

--- Comment #1 from Tomás Cohen Arazi  ---
Created attachment 91154
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91154=edit
Bug 23246: Only jump into the 'images' tab HTML5MediaEnabled is set to

This patch makes jumping into the third tab happen only if
HTML5MediaEnabled is set to 'both' or 'staff'.

To test:
- Have HTML5MediaEnabled set to 'opac' or 'not at all'
- Open the detail page of a record with no holdings
=> FAIL: The 'images' tab is selected
- Apply this patch
- Reload
=> SUCCESS: The 'holdings' tab is selected as it should be.
- Sign off :-D

Sponsored-by: America Numismatic Society

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/