New making | List | RSS | FrontPage | Search | Update history
[Calendar/When/Ruby/1. Practice environment/4.rails demonstration/Preference] <Prev: 4.rails demonstration| Next:List of windows> [Japanese]

Preference

Preference mode of the Date frame

The following Preference mode is displayed when you push button at the top left corner of Date frame of http://hosi.org.

At the http://hosi.org homepage, the left-side frame which has the hierarchy tree for calendars and eras is Tree frame, the top right frame with the button "to update" is Form frame, the lower right wide frame which indicates date information is Date frame.

In Preference mode, you can set operations and items to explain with this page.

Please see 'list of windows' about each individual for calendars and eras.

In 4.rails demonstration, the case of the HinduLuniSolar calendar is taken up as an example.

Operation such as buttons

①Deletion of calendars and calendar eras

To delete a calendar or calendar era, push the Delete button after checking the check box of the calendar or calendar era like ☑.

[Limitations]

②Addition of calendars and calendar eras

In the Tree frame, when you click a calendar which you want to add to the displayed calendars, the calendar is added to the displayed calendars, button of the Form frame will change to 'Has been added'.

In addition, out of Preference mode, when you click a calendar or calendar era in the Tree frame which you want to add to the displayed calendars, button of the Form frame will change to 'Add'. However, it is a time of you pushing the Add button and the Date frame being updated that the calendar or calendar era is actually added to the displayed calendars.

③Finishing of the Preference mode

Preferences are reflected and Preference mode is finished. However, the deletion is not done as for the calendar and calendar era with the check box ☑.

④Initialization of the preferences

Cookie is cleared and all setting is returned to initial condition.

Preference items

⑤Preference Button

An outline of window structure is designated.

It's a standard configuration. There is button in Date frame top left corner.

It is simple configuration. There is no button.

When you change Preference, please open up the following General Preference Window from link "Whole setting and its memory" of the window bottom line.

In this configuration, since the calendar or calendar era which is not displayed does not appear in the Tree frame, it becomes rather easy to see if you handle only some specific calendars or calendar eras.

This is the configuration for debugging. The time which processing took and the link to check cookie currently held are displayed on the window lowest line.

⑥Day Number System

An epoch date of serial day number displayed in the top-left corner of the Date frame is specified.

JDN (0.0) Julian Day Number
MJD (2400000.5) Modified Julian Day Number
CEP (2698162.0) Countdown_to_Equinoctial_Planetconjunction
The day before The day before
The day The day
The next day The next day

⑦Re-drawing when 'Update'

The redraw range of the 'Update' button of the Form frame is specified.

DateOnly the Date frame is updated.
*All frames of Tree/Form/Date are updated.

However, when the name of the button has been changed to 'Add' or 'Has been added', all frames of Tree/Form/Date are updated regardless of this designation.

⑧Date frame year and month link

The behavior when you click on a date in the Date frame is specified.

If the figure at the beginning, if you click on the '22' of the day, you can always update only the Form frame. However, if you click the red underlined '2015' or '02', it usually performs the following behavior.

FormOnly the Form frame is updated like '22'
DateOnly the Date frame is updated. It's indicated for one year in case of '2015' and for one month in case of '02'.
*All frames of Tree/Form/Date are updated.

⑨Beginning of week

The display method of a day of week in the one-month display or one-year display of the Date frame is specified.

Default for each calendarThe days of the week are arranged with default for each calendar.
Continuous Without being concerned with the first day of week, dates are continuously arranged.
others The tabular form of the seven days of week which made the specified day of week the left end is indicated.

⑩Linked Data

The behavior of the button that takes out RDF for Linked Data dated the day of the Form frame is specified.

txt(IRI) Object's IRI is returned in a text as it is.
ttl(Turtle) RDF for Linked Data is taken out in Turtle form.
rdf(RDF/XML) RDF for Linked Data is taken out in RDF/XML form.
nt(N-Triples) RDF for Linked Data is taken out in N-Triples form.
n3(Notation3) RDF for Linked Data is taken out in Notation3 form.
jsonld(JSON-LD) RDF for Linked Data is taken out in JSON-LD form.
html(RDFa) RDF for Linked Data is taken out in RDFa form that can interpret RDF as HTML.

⑪Round Event Time

How to round the time of the sunrise, the sunset (and etc.) time is specified.

Minute rounded to the nearest minute
Second rounded to the nearest second
Non cut off less than second

The time in the HinduLuniSolar calendar and the Japanese calendar are also interlocked with this specification.

⑫Location

The observation location used for calculation of date and time is specified.

The calendar notes affected by this setting are 'Sunrise', 'Sunset', 'Moonrise', 'Moonset', 'Tides' and eclipse information.

⑬Timezone

The timezone used for calculation of date and time is specified.

The calendar notes affected by this setting are 'Sunrise', 'Sunset', 'Moon_Age', 'Moonrise', 'Moonset' and 'Tides'.

As for ⑤~⑬ the convenient choice is not necessarily default. This is constraint to as automatic crawling robots such as google bot does not unnecessarily request expensive operation .

General Preference Window

You can enter this General Preference Window from [Whole setting and its memory] link arranged bottom line of window.

You can also be used to update the settings that you are managing in Preference mode as well as Cookie in this window.

The explanation which overlaps with Preference mode is omitted and only the point which should be mentioned specially shows it below.

ⒶBasic Information

In addition to a copyright, the followings are displayed.

Gem Ver. Version of when_exe Gem using as the engine
Server started at The start date and time of this Ruby on Rails demonstration program

These information is displayed in the the lower of the Date frame when ⑤'Preference button' is set to 'Activate'.

ⒷLink banner to related documents

Homepage
RubyGems
Wiki
ResourceDictionary
this page

ⒸDetailed Preference for each calendar and eras

The calendars and calendar eras with ☑ are displayed.

When a calendar or calendar era has detailed Preference, you can transfer in the Detailed Preference Window by pushing the button. Please see List of windows about the example of Detailed Preference Windows.

In addition, please refer to blog article 'Japan calendar Note specific calculation condition' for more details on setting of Japanese calendar and refer to blog article 'Setting of HinduLuniSolar calendar' for more details on setting of HinduLuniSolar&Solar calendar.

[Limitation]

Buttons

The behavior of 'OK' and 'Apply' button is the same also on the Detailed Preference Window of each calendar.

ⒹOK

The setting is reflected and returns to the parents window.

Parent window is as follows:

childparent
General Preference Windowhomepage
Detailed Preference Window started from General Preference Window General Preference Window
Detailed Preference Window started from Preference modeDisplay windows dated an original date

ⒺApply

The setting is reflected and remains in a current window.