GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Report Generator: Narrative_2014.04.10: Sources/Citations target frame...

Click to view RSS...
Author Frames and subframes not good for mobile viewing
Posted Thursday, August 7, 2014 - Post #33783
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers

Last Login: Saturday, September 10, 2016
Posts: 19, Visits: 70
When Source/Citation links are clicked the narrative report, the right frame is split to show the requested info (see image).

Report Generator: Narrative_2014.04.10: Request for Sources/Citations

http://support.genopro.com/Uploads/Images/7fb6051f-0bd1-43f5-aade-ef29.jpg


Increasingly, I and my family access my site from mobile devices where this makes viewing far more difficult.

Request: Can the target frame for Sources/Citations target frame be changed to _blank.

OR, if this is not supported, can some-one tell me where I can change the code for this ??

Tags:
Posted Friday, August 8, 2014 - Post #33788
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 6:33 AM
Posts: 3,339, Visits: 25,600
I jumped in with my first response (now deleted) and then realized I hadn't read the post carefully.

The short answer is no it is not supported at present.  However I consider the requested change has merit and I believe I have a solution that will provide this feature as (yet another) option.  I should hopefully be able to deliver a revised skin in a 'few' days, depending on whether or not events occur beyond my control (e.g. grandchildren are on school holiday and may demand time w00t).

If you want to 'go it alone' then search for lines containing target='popup' in the skin file Code\Util.vbs and change the last two occurences.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Saturday, August 9, 2014 - Post #33789
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers

Last Login: Saturday, September 10, 2016
Posts: 19, Visits: 70
Thanks for the quick reply and the hint !!!

Fixed it (for me):

Code/util.vbs  Line 1135/1146  changed popup to _blank - Causes all Source/Citation links to open in a new page !!!

         IfcollSources.Count > 0 Then ' write details of remaining source/citations

              If NotSession("NestSourceRefs") Then Report.WriteBrDic.Plurial("SourceCitation" & Util.IfElse(g_collFootnotes.Count> 0, "_Other",""), collSources.Count)

              strSep =""

              For EachoFootnote in collSources

                 strTitle = StrPlainText(oFootnote,Util.FirstNonEmpty(oFootnote.Subtitle, oFootnote.Description,oFootnote.QuotedText, Dic("SourceInformation")))

                  If (strTitle <> "") Then

                     strTitle = Util.FormatString(" title='{}'", strTitle)

                  EndIf

                 Report.WriteFormatted strSep & " <ahref='source-{&t}.htm'onclick='showPopUpFrame("""");' target='_blank'{}><i>{}</i></a>", oFootnote.ID, strTitle,JoinSourceCitationNames(oFootnote, StrFormatText(oFootnote,StrParseText(oFootnote.title, True)), true)

                 strSep = Util.IfElse(Session("NestSourceRefs"), "<br/>", ",")

              Next

          End If
Posted Saturday, August 9, 2014 - Post #33791
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers

Last Login: Saturday, September 10, 2016
Posts: 19, Visits: 70
Tiny residual problem 
My small code change doesn't stop the display of the Source/Citation subframe which just appears blank....
Hints ?? Suggestions ??

Happy to help experiment..... or wait....
Posted Saturday, August 9, 2014 - Post #33792
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 6:33 AM
Posts: 3,339, Visits: 25,600
Try removing the onclick attribute Smile


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Wednesday, August 13, 2014 - Post #33796
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers

Last Login: Saturday, September 10, 2016
Posts: 19, Visits: 70
Thanks again !!! it did exactly what I wanted:

Summary: 
To stop Source/Citation links from opening in a sub-frame on the right hand side, change:

Code/util.vbs  Lines 1135/1146

         IfcollSources.Count > 0 Then ' write details of remaining source/citations

              If NotSession("NestSourceRefs") Then Report.WriteBrDic.Plurial("SourceCitation" & Util.IfElse(g_collFootnotes.Count> 0, "_Other",""), collSources.Count)

              strSep =""

              For EachoFootnote in collSources

                 strTitle = StrPlainText(oFootnote,Util.FirstNonEmpty(oFootnote.Subtitle, oFootnote.Description,oFootnote.QuotedText, Dic("SourceInformation")))

                  If(strTitle <> "") Then

                     strTitle = Util.FormatString(" title='{}'", strTitle)

                  EndIf

                 Report.WriteFormatted strSep & " <ahref='source-{&t}.htm' onclick='showPopUpFrame("""");'target='_blank'{}><i>{}</i></a>", oFootnote.ID, strTitle,JoinSourceCitationNames(oFootnote, StrFormatText(oFootnote,StrParseText(oFootnote.title, True)), true)

                 strSep = Util.IfElse(Session("NestSourceRefs"), "<br />","<br >")

              Next

          End If


i.e. remove the aonclick showpopup behaviour AND change target to _blank.

This makes Source/Citation pages open in a new window.

Posted Thursday, August 14, 2014 - Post #33800
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 6:33 AM
Posts: 3,339, Visits: 25,600
I decided to adopt a more generic approach to this issue in release 2014.08.14 (now available).  

This version provides an option via Config Params to open all 'popup' content in a maximised frame. This also avoids proliferation of tabs/windows that would have occurred if links in 'popup'  frames were followed.

I am looking to implement automatic detection of tablet/smartphone platform and switch according.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Tuesday, October 28, 2014 - Post #34120
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers

Last Login: Saturday, September 10, 2016
Posts: 19, Visits: 70
Even after selecting the "presentation" option to "Open popup frame to maximum size....", i don't get citations in a new window.

Still needed to change 

Code/ Utils.vbs Line 1145:  

Report.WriteFormattedstrSep & " <a href='source-{&t}.htm' target='_blank'{}><i>{}</i></a>", oFootnote.ID, strTitle,JoinSourceCitationNames(oFootnote, StrFormatText(oFootnote,StrParseText(oFootnote.title, True)), true)



Tags:


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse