Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6927586B2 - Web construction support device and web construction support program - Google Patents
[go: Go Back, main page]

JP6927586B2 - Web construction support device and web construction support program - Google Patents

Web construction support device and web construction support program Download PDF

Info

Publication number
JP6927586B2
JP6927586B2 JP2018225271A JP2018225271A JP6927586B2 JP 6927586 B2 JP6927586 B2 JP 6927586B2 JP 2018225271 A JP2018225271 A JP 2018225271A JP 2018225271 A JP2018225271 A JP 2018225271A JP 6927586 B2 JP6927586 B2 JP 6927586B2
Authority
JP
Japan
Prior art keywords
html code
web
construction support
web page
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018225271A
Other languages
Japanese (ja)
Other versions
JP2020087299A (en
Inventor
相揮 金本
相揮 金本
慶太 宮本
慶太 宮本
和生 ▲高▼松
和生 ▲高▼松
Original Assignee
株式会社ユニソンプラネット
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社ユニソンプラネット filed Critical 株式会社ユニソンプラネット
Priority to JP2018225271A priority Critical patent/JP6927586B2/en
Publication of JP2020087299A publication Critical patent/JP2020087299A/en
Application granted granted Critical
Publication of JP6927586B2 publication Critical patent/JP6927586B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Description

本発明は、移行先においても編集可能な状態で、かつ移行前と同様のウェブページを表示できるウェブ構築支援装置およびウェブ構築支援プログラムに関する。 The present invention relates to a web construction support device and a web construction support program that can display the same web page as before the migration while being editable even at the migration destination.

一般的に、ウェブページは、HTTP(Hypertext Transfer Protocol)を通信プロトコルとして、HTML(HyperText Markup Language)などのハイパーテキストなどにより構築される。 Generally, a web page is constructed by hypertext such as HTML (HyperText Markup Language) using HTTP (Hypertext Transfer Protocol) as a communication protocol.

また、テキストだけでなく、予め所定の記憶媒体に画像データや動画データなどを記憶しておき、その記憶されたパスを指定したコードをHTMLファイルに埋め込むことでテキスト以外の様々なコンテンツをウェブ上で表示させることができる。 In addition to text, image data, video data, etc. are stored in advance in a predetermined storage medium, and various contents other than text can be stored on the web by embedding a code that specifies the stored path in an HTML file. It can be displayed with.

同様に、HTMLファイルは、主にウェブページのスタイルを指定するためのCSS(Cascading Style Sheets)ファイルや、プログラムが記述されたJavaScript(登録商標)ファイルなどを読み込みことにより、高度な装飾や機能を実現させることもできる。 Similarly, HTML files can be used for advanced decoration and functions by mainly reading CSS (Cascading Style Sheets) files for specifying web page styles and Javascript (registered trademark) files in which programs are written. It can also be realized.

このようなウェブページは、作成された後においても画面デザインの変更や機能の変更など、様々な変更が加えられる場合が多いので、ウェブページの編集機能のニーズは高い。 Since such web pages are often subject to various changes such as screen design changes and function changes even after they are created, there is a great need for web page editing functions.

そこで、特許文献1には、HTMLデータに含まれるHTMLエレメントに対してエレメントIDを付与したHTMLデータに変換し、プログラムコードにエレメントIDを付加したプログラムデータを生成し、HTMLデータに対し、エレメントIDに基づいてプログラムデータを組み込み、HTMLデータ生成プログラムを生成するHTMLデータ生成プログラム編集支援装置に関する技術が開示されている。 Therefore, in Patent Document 1, the HTML element included in the HTML data is converted into HTML data in which an element ID is assigned, program data in which the element ID is added to the program code is generated, and the element ID is obtained with respect to the HTML data. Discloses a technique relating to an HTML data generation program editing support device that incorporates program data based on the above and generates an HTML data generation program.

また、特許文献2には、ホームページがリンク先の情報を持つ場合に、そのリンク先のアドレスおよびそのアドレスにあるページを構成するオブジェクトの内少なくとも1つのリンク情報を特定し、その特定されたリンク情報を、オブジェクト管理IDを割り当てるために、オブジェクト管理ID割り当て手段に向けて送るリンク情報処理手段と、編集フォームと共に、リンク情報を表示するリンク情報表示処理手段とを備えるホームページ編集用サーバに関する技術が開示されている。 Further, in Patent Document 2, when the homepage has the information of the link destination, at least one link information among the address of the link destination and the object constituting the page at the link destination is specified, and the specified link is specified. A technology related to a homepage editing server including a link information processing means for sending information to an object management ID assigning means for assigning an object management ID, and a link information display processing means for displaying link information together with an edit form. It is disclosed.

特開2007−108978号公報JP-A-2007-108978 特開2004−240635号公報Japanese Unexamined Patent Publication No. 2004-240635

ここで、ウェブページは運用されているサーバ内で編集されるだけでなく、他のサーバに移行する場合もある。 Here, the web page is not only edited in the server in which it is operated, but may also be migrated to another server.

このとき、単にHTMLファイルを他のサーバに保存しただけでは、上述のようにHTMLファイルにリンクされた画像データやファイルがある場合、適切に画像データやファイルなどが読み込めず、ウェブページを適切に表示できない場合がある。 At this time, if the HTML file is simply saved in another server and there is image data or file linked to the HTML file as described above, the image data or file cannot be read properly and the web page can be properly read. It may not be displayed.

そのため、移行時にパスを変更する必要があるが、移行前のウェブページをウェブ制作会社などに委託して構築した場合、ウェブページの構造についてのドキュメント類が不足しており、移行する際にHTMLファイルのどの箇所をどのように変更する必要があるのかが分かり難く、移行作業に膨大な時間を要する場合があった。 Therefore, it is necessary to change the path at the time of migration, but if the web page before migration is outsourced to a web production company etc., the documents about the structure of the web page are insufficient, and HTML is required when migrating. It was difficult to understand which part of the file needed to be changed and how, and the migration work sometimes took an enormous amount of time.

そのため、ウェブページの運用会社は、ウェブページを他のサーバに容易に移行すると共に、移行先において容易に編集できるツールを切望していた。 Therefore, the web page management company has longed for a tool that can easily migrate the web page to another server and easily edit it at the migration destination.

しかしながら、特許文献1や特許文献2に記載の技術では、ウェブページを移行した場合については考慮されていない。そのため、いずれの技術においても移行先においても編集可能な状態で、かつ移行前と同様のウェブページを表示できるとは限らなかった。 However, in the techniques described in Patent Document 1 and Patent Document 2, the case where the web page is transferred is not considered. Therefore, it is not always possible to display the same web page as before the migration in an editable state at the migration destination with any of the technologies.

本発明は、上記問題点に鑑みてなされたものであり、移行先においても編集可能な状態で、かつ移行前と同様のウェブページを表示できるウェブ構築支援装置およびウェブ構築支援プログラムを提供することを目的とする。 The present invention has been made in view of the above problems, and provides a web construction support device and a web construction support program that can display the same web page as before the migration in an editable state even at the migration destination. With the goal.

上記目的を解決するため、本発明に係るウェブ構築支援装置の第1の特徴は、
ウェブページが記憶された移行元ウェブサーバと、前記ウェブページの移行先である移行先ウェブサーバとにネットワークを介して接続されたウェブ構築支援装置であって、
前記移行元ウェブサーバから前記ウェブページのHTMLコードを取得する取得手段と、
前記取得手段により取得されたHTMLコード内に外部リンク情報がある場合、前記外部リンク情報に基づいて外部リンクされたオブジェクトを取得し、前記移行先ウェブサーバの所定の記憶領域に記憶させると共に、前記記憶させる位置情報に基づいて前記HTMLコード内の前記外部リンク情報を変更する変更手段と、
前記変更手段により変更された変更HTMLコードの階層構造を示す階層情報を抽出すると共に、前記変更HTMLコードに対してタグ毎にエレメントIDを割り当てるエレメントID割当手段と、
前記割り当てられたエレメントIDと、タグ毎に分割した変更HTMLコードと、前記階層情報とを関連付けてID割当変更HTMLデータとしてデータベースに記憶させる記憶制御手段と、
を備えたことにある。
In order to solve the above object, the first feature of the web construction support device according to the present invention is
A web construction support device connected to a migration source web server in which a web page is stored and a migration destination web server to which the web page is migrated via a network.
An acquisition means for acquiring the HTML code of the web page from the migration source web server, and
When there is external link information in the HTML code acquired by the acquisition means, the externally linked object is acquired based on the external link information, stored in a predetermined storage area of the migration destination web server, and described as described above. A changing means for changing the external link information in the HTML code based on the stored position information, and
An element ID assigning means for extracting the hierarchical information indicating the hierarchical structure of the modified HTML code changed by the changing means and assigning an element ID for each tag to the modified HTML code.
A storage control means for associating the assigned element ID, the modified HTML code divided for each tag, and the hierarchical information and storing the ID allocation modified HTML data in the database.
It is to have.

本発明に係るウェブ構築支援装置の第2の特徴は、
前記データベースに記憶されたID割当変更HTMLデータに基づいて、ID割当変更HTMLコードを生成し、前記生成したID割当変更HTMLコードを独立したフレームの編集画面内で前記エレメントIDごとに読み出し、前記読み出したエレメントID単位で編集可能に表示する表示制御手段と、
ユーザ操作に基づいて前記編集画面上で編集された場合に、前記データベースに記憶された前記編集されたエレメントIDに対応するID割当変更HTMLデータを編集する編集手段と、
を備えたことにある。
The second feature of the web construction support device according to the present invention is
An ID allocation change HTML code is generated based on the ID allocation change HTML data stored in the database, and the generated ID allocation change HTML code is read for each element ID in the edit screen of an independent frame, and the read is performed. Display control means that can be edited and displayed in units of element IDs
An editing means for editing the ID assignment change HTML data corresponding to the edited element ID stored in the database when the data is edited on the edit screen based on the user operation.
It is to have.

本発明に係るウェブ構築支援装置の第3の特徴は、
前記エレメントID割当手段は、
前記編集手段により編集された回数に基づいて、前記エレメントIDを割り当てる
ことにある。
The third feature of the web construction support device according to the present invention is
The element ID assigning means
The element ID is assigned based on the number of times edited by the editing means.

本発明に係るウェブ構築支援装置の第4の特徴は、
前記エレメントID割当手段は、
前記階層情報に基づいて、前記変更HTMLコードに対してタグ毎にエレメントIDを割り当てる
ことにある。
The fourth feature of the web construction support device according to the present invention is
The element ID assigning means
Based on the hierarchical information, an element ID is assigned to each tag for the modified HTML code.

本発明に係るウェブ構築支援装置の第5の特徴は、
前記編集手段は、
前記編集画面上でオブジェクトの追加が要求された場合に、追加されたオブジェクトのHTMLコードを生成すると共に、前記エレメントID割当手段に、前記生成されたHTMLコードに対してタグ毎に、前記階層情報に基づいて新たにエレメントIDを割り当てさせ、前記新たに割り当てられたエレメントIDに対応する前記生成されたHTMLコードとを、前記データベースに記憶されたID割当変更HTMLデータに追加する
ことにある。
The fifth feature of the web construction support device according to the present invention is
The editing means
When the addition of an object is requested on the edit screen, the HTML code of the added object is generated, and the element ID assigning means is provided with the hierarchical information for each tag with respect to the generated HTML code. A new element ID is assigned based on the above, and the generated HTML code corresponding to the newly assigned element ID is added to the ID assignment change HTML data stored in the database.

上記目的を解決するため、本発明に係るウェブ構築支援プログラムの第1の特徴は、
ウェブページが記憶された移行元ウェブサーバと、前記ウェブページの移行先である移行先ウェブサーバとにネットワークを介して接続されたコンピュータが実行するウェブ構築支援プログラムであって、
コンピュータに、
前記移行元ウェブサーバから前記ウェブページのHTMLコードを取得する取得ステップと、
前記取得ステップにより取得されたHTMLコード内に外部リンク情報がある場合、前記外部リンク情報に基づいて外部リンクされたオブジェクトを取得し、前記移行先ウェブサーバの所定の記憶領域に記憶させると共に、前記記憶させる位置情報に基づいて前記HTMLコード内の前記外部リンク情報を変更する変更ステップと、
前記変更ステップにより変更された変更HTMLコードの階層構造を示す階層情報を抽出すると共に、前記変更HTMLコードに対してタグ毎にエレメントIDを割り当てるエレメントID割当ステップと、
前記割り当てられたエレメントIDと、タグ毎に分割した変更HTMLコードと、前記階層情報とを関連付けてID割当変更HTMLデータとしてデータベースに記憶させる記憶制御ステップと、
を実行させることにある。
In order to solve the above object, the first feature of the web construction support program according to the present invention is
A web construction support program executed by a computer connected to the migration source web server in which the web page is stored and the migration destination web server to which the web page is migrated via a network.
On the computer
The acquisition step of acquiring the HTML code of the web page from the migration source web server, and
When there is external link information in the HTML code acquired by the acquisition step, the externally linked object is acquired based on the external link information, stored in a predetermined storage area of the migration destination web server, and described above. A change step of changing the external link information in the HTML code based on the stored position information, and
An element ID assignment step that extracts the hierarchical information indicating the hierarchical structure of the modified HTML code changed by the modification step and assigns an element ID for each tag to the modified HTML code.
A storage control step in which the assigned element ID, the modified HTML code divided for each tag, and the hierarchical information are associated and stored in the database as ID assigned modified HTML data.
Is to be executed.

本発明に係るウェブ構築支援装置およびウェブ構築支援プログラムによれば、移設先においても編集可能な状態で、かつ移行前と同様のウェブページを表示できる。 According to the web construction support device and the web construction support program according to the present invention, it is possible to display the same web page as before the migration in an editable state even at the relocation destination.

本発明の一実施形態であるウェブ構築支援装置の概略構成を示した概略構成図である。It is a schematic block diagram which showed the schematic structure of the web construction support device which is one Embodiment of this invention. 本発明の一実施形態であるウェブ構築支援装置におけるHTML読み込み処理の処理内容を示したフローチャートである。It is a flowchart which showed the processing content of the HTML reading process in the web construction support apparatus which is one Embodiment of this invention. 図2に示したHTML読み込み処理におけるステップS103のローカライズ処理の処理内容を示したフローチャートである。It is a flowchart which showed the processing content of the localization processing of step S103 in the HTML reading processing shown in FIG. 図2に示したHTML読み込み処理におけるステップS105〜S107の処理を示した説明図である。(a)は、変更HTMLコードの一例を示した図であり、(b)は、変更HTMLコードの要素ごとに階層構造を示した図であり、(c)は、ウェブページ記憶部のデータベースに記憶されたID割当変更HTMLデータを示した図である。It is explanatory drawing which showed the process of steps S105-S107 in the HTML reading process shown in FIG. (A) is a diagram showing an example of the modified HTML code, (b) is a diagram showing a hierarchical structure for each element of the modified HTML code, and (c) is a diagram in the database of the web page storage unit. It is a figure which showed the stored ID allocation change HTML data. 本発明の一実施形態であるウェブ構築支援装置における編集画面表示処理の処理内容を示したフローチャートである。It is a flowchart which showed the processing content of the edit screen display processing in the web construction support apparatus which is one Embodiment of this invention. (a)は、選択画面の一例を示した図であり、(b)は、選択された編集対象のウェブページのID割当変更HTMLコードの一例を示した図である。(A) is a diagram showing an example of a selection screen, and (b) is a diagram showing an example of an HTML code for changing the ID assignment of the selected web page to be edited. 本発明の一実施形態であるウェブ構築支援装置における変更処理の処理内容を示したフローチャートである。It is a flowchart which showed the processing content of the change processing in the web construction support apparatus which is one Embodiment of this invention. 本発明の一実施形態であるウェブ構築支援装置における編集画面の一例を示した図である。It is a figure which showed an example of the editing screen in the web construction support apparatus which is one Embodiment of this invention. 本発明の一実施形態であるウェブ構築支援装置における追加処理の処理内容を示したフローチャートである。It is a flowchart which showed the processing content of the additional processing in the web construction support apparatus which is one Embodiment of this invention. (a)は、要素を追加した場合のID割当変更HTMLコードの階層構造を示した図であり、(b)は、ウェブページ記憶部のデータベースに記憶されたID割当変更HTMLデータを示した図である。(A) is a diagram showing the hierarchical structure of the ID allocation change HTML code when an element is added, and (b) is a diagram showing the ID assignment change HTML data stored in the database of the web page storage unit. Is.

以下、本発明の実施の形態について、図面を参照して説明する。各図面を通じて同一若しくは同等の部位や構成要素には、同一若しくは同等の符号を付している。ただし、図面は模式的なものであり、現実のものとは異なることに留意すべきである。また、図面相互間においても互いの寸法の関係や比率が異なる部分が含まれている。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. The same or equivalent parts and components are designated by the same or equivalent reference numerals throughout the drawings. However, it should be noted that the drawings are schematic and differ from the actual ones. In addition, there are parts in which the relations and ratios of the dimensions of the drawings are different from each other.

また、以下に示す実施の形態は、この発明の技術的思想を具体化するための装置等を例示するものであって、この発明の技術的思想は、各構成部品の配置等を下記のものに特定するものでない。この発明の技術的思想は、特許請求の範囲において、種々の変更を加えることができる。 Further, the embodiments shown below exemplify an apparatus or the like for embodying the technical idea of the present invention, and the technical idea of the present invention describes the arrangement of each component and the like as follows. It is not specific to. The technical idea of the present invention can be modified in various ways within the scope of claims.

<ウェブ構築支援装置の概略構成>
図1は、本発明の一実施形態であるウェブ構築支援装置の概略構成を示した概略構成図である。本実施形態では、移行元移行元ウェブサーバ2に記憶されているウェブページを、編集可能な状態で、かつ移行前と同様のウェブページを表示できる状態で移行先ウェブサーバ4へ移行するウェブ構築支援装置1を例に挙げて説明する。
<Outline configuration of web construction support device>
FIG. 1 is a schematic configuration diagram showing a schematic configuration of a web construction support device according to an embodiment of the present invention. In the present embodiment, a web construction that migrates the web page stored in the migration source migration source web server 2 to the migration destination web server 4 in a state in which the web page can be edited and the same web page as before the migration can be displayed. The support device 1 will be described as an example.

図1に示すように、ウェブ構築支援装置1は、ネットワーク5を介して、移行元ウェブサーバ2と接続されている。移行元ウェブサーバ2は、HTML(HyperText Markup Language)で記述されたウェブページを記憶しており、この記憶したウェブページに基づいて、HTTP(Hypertext Transfer Protocol)を通信プロトコルとして、ウェブ表示を提供する。 As shown in FIG. 1, the web construction support device 1 is connected to the migration source web server 2 via the network 5. The migration source web server 2 stores a web page described in HTML (HyperText Markup Language), and based on the stored web page, provides a web display using HTTP (Hypertext Transfer Protocol) as a communication protocol. ..

また、ウェブ構築支援装置1は、移行先ウェブサーバ4とも接続されている。移行先ウェブサーバ4とは、インターネットを介して接続してもよいし、直接ネットワーク接続してもよい。 The web construction support device 1 is also connected to the migration destination web server 4. The migration destination web server 4 may be connected via the Internet or may be directly connected to the network.

移行先ウェブサーバ4は、ウェブページ記憶部41を有している。ウェブ構築支援装置1により、移行元ウェブサーバ2に記憶されていたウェブページが、編集可能な状態で、かつ移行前と同様のウェブページを表示できる状態でウェブページ記憶部41に記憶される。ウェブページ記憶部41は、データベース形式でウェブページを記憶する。 The migration destination web server 4 has a web page storage unit 41. The web construction support device 1 stores the web page stored in the migration source web server 2 in the web page storage unit 41 in an editable state and in a state in which the same web page as before the migration can be displayed. The web page storage unit 41 stores web pages in a database format.

ウェブページ記憶部41にウェブページが記憶されると、移行先ウェブサーバ4は、ウェブページ記憶部41に記憶されたウェブページに基づいて、HTTP(Hypertext Transfer Protocol)を通信プロトコルとして、ウェブ表示を提供する。 When the web page is stored in the web page storage unit 41, the migration destination web server 4 displays the web using HTTP (Hypertext Transfer Protocol) as a communication protocol based on the web page stored in the web page storage unit 41. offer.

ウェブ構築支援装置1には、キーボードやマウス等から構成された入力部7と、液晶ディスプレイ等から構成された表示部8が接続されている。 The web construction support device 1 is connected to an input unit 7 composed of a keyboard, a mouse, or the like, and a display unit 8 composed of a liquid crystal display or the like.

表示部8は、後述するように、ウェブページの選択画面や編集画面などを表示する。 The display unit 8 displays a web page selection screen, an edit screen, and the like, as will be described later.

入力部7は、表示部8により表示された選択画面に対するウェブページの選択操作を受け付けたり、表示された編集画面からウェブページ編集・追加を指示する操作を受け付けたりする。 The input unit 7 accepts a web page selection operation for the selection screen displayed by the display unit 8, or accepts an operation for instructing a web page edit / addition from the displayed edit screen.

ウェブ構築支援装置1は、コンピュータであり、CPU10と、RAM11と、ROM12と、ハードディスク13とを備えている。 The web construction support device 1 is a computer, and includes a CPU 10, a RAM 11, a ROM 12, and a hard disk 13.

RAM11は、揮発性半導体等で構成され、CPU10が各種処理を実行する上で必要な各種データを一時的に記憶する。 The RAM 11 is composed of a volatile semiconductor or the like, and temporarily stores various data necessary for the CPU 10 to execute various processes.

ROM12は、不揮発性半導体等で構成され、CPU10が実行する各種プログラム等を記憶している。 The ROM 12 is composed of a non-volatile semiconductor or the like, and stores various programs or the like executed by the CPU 10.

ハードディスク13は、ウェブ構築支援処理を実行するためのウェブ構築支援プログラムや、その他各種アプリケーションプログラムの格納領域が確保されている。 The hard disk 13 secures a storage area for a web construction support program for executing the web construction support process and other various application programs.

CPU10は、プロセッサやメモリその他の周辺装置によって構成される演算装置であり、入力部7から入力される起動要求に従ってハードディスク13に記憶されたウェブ構築支援プログラムやその他のアプリケーションプログラムを起動させる。 The CPU 10 is an arithmetic unit composed of a processor, a memory, and other peripheral devices, and activates a web construction support program and other application programs stored in the hard disk 13 in accordance with a startup request input from the input unit 7.

また、CPU10は、その機能上、ウェブ構築支援装置1の中枢的な制御を行う。また、ウェブ構築支援プログラムを実行することにより、取得部101と、変更部103と、エレメントID割当部104と、記憶制御部105と、表示制御部106と、編集部107とを実装する。 Further, the CPU 10 centrally controls the web construction support device 1 in terms of its function. Further, by executing the web construction support program, the acquisition unit 101, the change unit 103, the element ID allocation unit 104, the storage control unit 105, the display control unit 106, and the editorial unit 107 are implemented.

取得部101は、移行元ウェブサーバ2に記憶されたウェブページのHTMLコードを取得する。 The acquisition unit 101 acquires the HTML code of the web page stored in the migration source web server 2.

変更部103は、取得部101により取得されたHTMLコード内に外部リンク情報がある場合、外部リンク情報に基づいて外部リンクされたオブジェクトを取得する。ここで、外部リンク情報とは、例えば、URLなどのパスである。 When the HTML code acquired by the acquisition unit 101 contains the external link information, the change unit 103 acquires the externally linked object based on the external link information. Here, the external link information is, for example, a path such as a URL.

ウェブページは、HTMLで記述されている。そのため、主にウェブページのスタイルを指定するためのCSS(Cascading Style Sheets)ファイルや、プログラムが記述されたJavaScript(登録商標)ファイルなどを読み込みことにより、高度な装飾や機能を実現させることができる。また、JPEGなどの画像ファイルや、MPEGなどの動画ファイルを読み込むこともできる。ここでは、CSSファイル、JavaScript(登録商標)ファイル、画像ファイル、動画ファイルなどを総称してオブジェクト(オブジェクトファイル)という。 Web pages are written in HTML. Therefore, advanced decoration and functions can be realized mainly by reading a CSS (Cascading Style Sheets) file for specifying the style of a web page or a Javascript (registered trademark) file in which a program is described. .. It is also possible to read an image file such as JPEG or a moving image file such as MPEG. Here, CSS files, Javascript (registered trademark) files, image files, moving image files, etc. are collectively referred to as objects (object files).

例えば、移行元ウェブサーバ2内や他のウェブサーバ(図示しない)内に、オブジェクトを記憶しておき、ウェブページ内に読み込む先のパスを外部リンク情報として埋め込むことにより、移行元ウェブサーバ2は、高度な装飾や機能を実現したウェブページを提供する。ここでは、移行元ウェブサーバ2内にオブジェクトが記憶されているとする。 For example, by storing an object in the migration source web server 2 or another web server (not shown) and embedding the path to be read in the web page as external link information, the migration source web server 2 can be used. , Providing web pages with advanced decoration and functions. Here, it is assumed that the object is stored in the migration source web server 2.

そこで、変更部103は、取得部101により取得されたHTMLコード内に外部リンク情報がある場合、外部リンク情報に基づいて移行元ウェブサーバ2内に記憶されたオブジェクトを取得する。 Therefore, when the HTML code acquired by the acquisition unit 101 contains the external link information, the change unit 103 acquires the object stored in the migration source web server 2 based on the external link information.

そして、変更部103は、取得したオブジェクトを移行先ウェブサーバ4のウェブページ記憶部41内の所定の記憶領域に記憶させると共に、記憶させる位置情報に基づいてHTMLコード内の外部リンク情報を変更する。具体的には、変更部103は、HTMLコード内の外部リンク情報を、それぞれウェブページ記憶部41内に記憶させたパスへ変更する。 Then, the changing unit 103 stores the acquired object in a predetermined storage area in the web page storage unit 41 of the migration destination web server 4, and changes the external link information in the HTML code based on the stored position information. .. Specifically, the change unit 103 changes the external link information in the HTML code to the path stored in the web page storage unit 41, respectively.

エレメントID割当部104は、変更部103により変更された変更HTMLコードの階層構造を示す階層情報を抽出すると共に、変更HTMLコードに対してタグ毎にエレメントIDを割り当てる。ここでは、エレメントIDは、英数字を用いてユニークな番号として付与される。また、階層情報は、タグ毎にその親のエレメントIDを示すペアレントIDと、階層を示す世代番号と、同一世代(同一階層)での表示順を示す兄弟番号とを含んでいる。 The element ID assigning unit 104 extracts the hierarchical information indicating the hierarchical structure of the modified HTML code changed by the changing unit 103, and assigns the element ID to the modified HTML code for each tag. Here, the element ID is assigned as a unique number using alphanumeric characters. Further, the hierarchy information includes a parent ID indicating the element ID of the parent for each tag, a generation number indicating the hierarchy, and a sibling number indicating the display order in the same generation (same hierarchy).

記憶制御部105は、エレメントID割当部104により割り当てられたエレメントIDと、タグ毎に分割した変更HTMLコードと、階層情報とを関連付けてID割当変更HTMLデータとしてウェブページ記憶部41のデータベースに記憶させる。後述するように、ID割当変更HTMLデータはテーブル形式で記憶されるので、タグ毎に割り当てられたエレメントIDと、エレメントIDに対応するタグ毎に分割された変更HTMLコード、すなわちタグで囲まれた部分的な変更HTMLコードと、階層情報とが関連づけられて記憶される。このように関連付けられて記憶されることにより、ウェブページ記憶部41に記憶されたID割当変更HTMLデータに基づいて、ID割当変更HTMLコードを生成することができる。 The storage control unit 105 stores the element ID assigned by the element ID allocation unit 104, the change HTML code divided for each tag, and the hierarchical information in association with each other and stores the ID allocation change HTML data in the database of the web page storage unit 41. Let me. As will be described later, since the ID assignment change HTML data is stored in the table format, the element ID assigned to each tag and the change HTML code divided for each tag corresponding to the element ID, that is, surrounded by tags. The partially modified HTML code and the hierarchical information are associated and stored. By being associated and stored in this way, the ID allocation change HTML code can be generated based on the ID assignment change HTML data stored in the web page storage unit 41.

表示制御部106は、ウェブページ記憶部41のデータベースに記憶されたID割当変更HTMLデータに基づいて、ID割当変更HTMLコードを生成する。そして、表示制御部106は、生成した変更HTMLコードを独立したフレームの編集画面内でエレメントIDごとに読み出し、読み出したエレメントID単位で編集可能に表示部8に表示する。ここで、独立したフレームとは、フレーム内の処理とフレーム外の処理とが干渉しないように設けられたフレームをいう。例えば、ウェブ構築支援プログラムを実行することにより、表示部8に表示させる際に用いられるCSSファイルの機能と、変更HTMLコードに含まれるCSSファイルの機能とが干渉しないように、i−Frameの機能を用いている。 The display control unit 106 generates an ID allocation change HTML code based on the ID assignment change HTML data stored in the database of the web page storage unit 41. Then, the display control unit 106 reads the generated modified HTML code for each element ID in the editing screen of the independent frame, and displays it on the display unit 8 so that it can be edited in the read element ID unit. Here, the independent frame means a frame provided so that the processing inside the frame and the processing outside the frame do not interfere with each other. For example, the function of the i-frame so that the function of the CSS file used when displaying on the display unit 8 and the function of the CSS file included in the modified HTML code do not interfere with each other by executing the web construction support program. Is used.

編集部107は、入力部7へのユーザ操作に基づいて表示部8に表示された編集画面上で編集された場合に、ウェブページ記憶部41のデータベースに記憶された編集されたエレメントIDに対応するID割当変更HTMLデータを編集する。 The editorial unit 107 corresponds to the edited element ID stored in the database of the web page storage unit 41 when edited on the edit screen displayed on the display unit 8 based on the user operation to the input unit 7. Edit the ID assignment change HTML data to be performed.

<ウェブ構築支援装置の作用>
次に、本発明の一実施形態であるウェブ構築支援装置1の作用について説明する。ウェブ構築支援装置1は、主に、HTML読み込み処理と、編集画面表示処理と、変更処理と、追加処理を実行する。そのため、それぞれの処理について具体的に説明する。なお、変更処理と追加処理とを総称して編集処理という。
<Action of web construction support device>
Next, the operation of the web construction support device 1 according to the embodiment of the present invention will be described. The web construction support device 1 mainly executes HTML reading processing, editing screen display processing, change processing, and additional processing. Therefore, each process will be described in detail. The change process and the add process are collectively called an edit process.

<HTML読み込み処理>
図2は、本発明の一実施形態であるウェブ構築支援装置1におけるHTML読み込み処理の処理内容を示したフローチャートである。
<HTML reading process>
FIG. 2 is a flowchart showing the processing content of the HTML reading process in the web construction support device 1 according to the embodiment of the present invention.

図2に示すように、まず、取得部101は、移行元ウェブサーバ2に記憶されたウェブページのHTMLコードを取得する(ステップS101)。 As shown in FIG. 2, first, the acquisition unit 101 acquires the HTML code of the web page stored in the migration source web server 2 (step S101).

次に、変更部103は、パスを変更しながらローカライズ処理を実行する(ステップS103)。このローカライズ処理により、移行先ウェブサーバ4においてリンク切れなどの不具合を生じさせることなく、適切にウェブページを記憶させることができる。ローカライズ処理は図3に示しており、詳細は後述する。 Next, the change unit 103 executes the localization process while changing the path (step S103). By this localization process, the web page can be appropriately stored without causing a problem such as a broken link in the migration destination web server 4. The localization process is shown in FIG. 3, and the details will be described later.

次に、エレメントID割当部104は、変更部103により変更された変更HTMLコードの階層構造を示す階層情報を抽出すると共に、変更HTMLコードに対してタグ毎にエレメントIDを割り当てる(ステップS105)。 Next, the element ID assigning unit 104 extracts the hierarchical information indicating the hierarchical structure of the changed HTML code changed by the changing unit 103, and assigns the element ID to the changed HTML code for each tag (step S105).

そして、記憶制御部105は、エレメントID割当部104により割り当てられたエレメントIDと、タグ毎に分割した変更HTMLコードと、階層情報とを関連付けてID割当変更HTMLデータとしてウェブページ記憶部41のデータベースに記憶させる(ステップS107)。 Then, the storage control unit 105 associates the element ID assigned by the element ID allocation unit 104, the modified HTML code divided for each tag, and the hierarchical information with the ID allocation modified HTML data as the database of the web page storage unit 41. Is stored in (step S107).

図4は、ステップS105〜S107の処理を示した説明図である。図4(a)は、変更HTMLコードの一例を示した図であり、図4(b)は、変更HTMLコードの要素ごとに階層構造を示した図であり、図4(c)は、ウェブページ記憶部41のデータベースに記憶されたID割当変更HTMLデータを示した図である。 FIG. 4 is an explanatory diagram showing the processing of steps S105 to S107. FIG. 4A is a diagram showing an example of the modified HTML code, FIG. 4B is a diagram showing a hierarchical structure for each element of the modified HTML code, and FIG. 4C is a web. It is a figure which showed the ID allocation change HTML data stored in the database of a page storage part 41.

図4(a)に示すように、変更HTMLコードには、タグごとにエレメントIDが付与される。図4(a)に示した例では、説明のため、エレメントIDを、(1)〜(21)で示している。例えば、<body>のタグ(符号401)には、エレメントIDとして1番が割り当てられている。 As shown in FIG. 4A, an element ID is assigned to each tag in the modified HTML code. In the example shown in FIG. 4 (a), the element IDs are shown by (1) to (21) for the sake of explanation. For example, the <body> tag (reference numeral 401) is assigned the first element ID.

図4(b)に示すように、変更HTMLコードは階層構造を有している。その階層に応じて世代番号G1〜G9が割り当てられている。例えば、<body>タグは、世代番号G1が割り当てられており、<header>タグは、<body>タグの子要素となるので、世代番号G2が割り当てられている。 As shown in FIG. 4B, the modified HTML code has a hierarchical structure. Generation numbers G1 to G9 are assigned according to the hierarchy. For example, the <body> tag is assigned the generation number G1, and the <header> tag is a child element of the <body> tag, so that the generation number G2 is assigned.

なお、世代番号G9の(12)、(15)、(18)、(21)は、説明上、「text」と記述しているが、それぞれ「トップページ」などのコンテンツ自体が位置づけられる。 The generation numbers G9 (12), (15), (18), and (21) are described as "text" for the sake of explanation, but the contents themselves such as the "top page" are positioned respectively.

図4(c)に示すように、ウェブページ記憶部41のデータベースには、変更HTMLコードがテーブル形式でID割当変更HTMLデータとして記憶されている。具体的には、エレメントIDと、ペアレントIDと、世代IDと、兄弟IDと、コンテンツとが関連付けられて記憶されている。 As shown in FIG. 4C, the modified HTML code is stored in the database of the web page storage unit 41 as ID allocation modified HTML data in a table format. Specifically, the element ID, the parent ID, the generation ID, the sibling ID, and the content are associated and stored.

なお、<div#main−logo>タグと、<div#header−menu>タグには、世代番号G5が割り当てられている。このような世代番号が同一である同世代(同階層)に複数のタグがある場合には、表示順に兄弟番号が割り当てられる。 A generation number G5 is assigned to the <div # main-logo> tag and the <div # header-menu> tag. When there are a plurality of tags in the same generation (same layer) having the same generation number, sibling numbers are assigned in the display order.

例えば、<div#main−logo>タグには、兄弟番号S1が割り当てられており、<div#header−menu>タグには、兄弟番号S2が割り当てられている。 For example, the <div # header-logo> tag is assigned the sibling number S1, and the <div # header-menu> tag is assigned the sibling number S2.

このように、パスを変更しながらローカライズする処理と、エレメントIDを付与する処理とを実行するので、移行先ウェブサーバの適切な位置にエレメントIDが付与された状態でウェブページが記憶される。そのため、移行先ウェブサーバにおいても移行前と同様のウェブページを表示できる。また、エレメントIDにより要素単位で編集可能な状態で記憶されているので、元のウェブページと同様の状態で、かつ要素ごとに編集可能な状態で表示される。そのため、ユーザにとって元のウェブページと見た目が同様の状態でウェブページの編集が可能となるので、編集が容易となる。 In this way, since the process of localizing while changing the path and the process of assigning the element ID are executed, the web page is stored in a state where the element ID is assigned at an appropriate position of the migration destination web server. Therefore, the same web page as before the migration can be displayed on the migration destination web server. Further, since it is stored in an editable state for each element by the element ID, it is displayed in the same state as the original web page and in an editable state for each element. Therefore, the user can edit the web page in the same state as the original web page, which facilitates editing.

<ローカライズ処理>
図3は、図2に示したHTML読み込み処理におけるステップS103のローカライズ処理の処理内容を示したフローチャートである。
<Localization process>
FIG. 3 is a flowchart showing the processing content of the localization process in step S103 in the HTML reading process shown in FIG.

図3に示すように、変更部103は、取得部101により取得されたHTMLコードをタグごとにピックアップする(ステップS501)。 As shown in FIG. 3, the change unit 103 picks up the HTML code acquired by the acquisition unit 101 for each tag (step S501).

そして、変更部103は、タグごとにピックアップしたHTMLコードにパス変換対象があるか否かを判定する(ステップS503)。ここで、HTMLコード内に外部リンク情報(パス)がある場合、パス変換対象があると判定する。 Then, the changing unit 103 determines whether or not the HTML code picked up for each tag has a path conversion target (step S503). Here, if there is external link information (path) in the HTML code, it is determined that there is a path conversion target.

タグごとにピックアップしたHTMLコード内にパス変換対象があると判定した場合(ステップS503;YES)、変更部103は、パスにより示されたオブジェクトを取得した後(ステップS505)、HTMLコード内の外部リンク情報(パス)を変換する(ステップS507)。具体的には、変更部103は、HTMLコード内の外部リンク情報を、それぞれウェブページ記憶部41内に記憶させるパスへ変更する。 When it is determined that there is a path conversion target in the HTML code picked up for each tag (step S503; YES), the changing unit 103 obtains the object indicated by the path (step S505) and then externally in the HTML code. Convert the link information (path) (step S507). Specifically, the change unit 103 changes the external link information in the HTML code to a path to be stored in the web page storage unit 41, respectively.

次に、変更部103は、取得したオブジェクト内にパス変換対象があるか否かを判定する(ステップS509)。例えば、CSSファイルやJavaScript(登録商標)ファイルは、さらに別のCSSファイルやJavaScript(登録商標)ファイル等を読み込むようにコーディングされていることがある。そこで、変更部103は、ステップS509においてパス変換対象がなくなるまでステップS505〜S509の処理を繰り返し実行する。 Next, the change unit 103 determines whether or not there is a path conversion target in the acquired object (step S509). For example, a CSS file or a Javascript® file may be coded to read yet another CSS file, a Javascript® file, or the like. Therefore, the changing unit 103 repeatedly executes the processes of steps S505 to S509 until there are no path conversion targets in step S509.

そして、全タグのピックアップが終了するまで(ステップS511;YES)、変更部103は、ステップS501〜S511の処理を繰り返し実行する。 Then, the change unit 103 repeatedly executes the processes of steps S501 to S511 until the pickup of all tags is completed (step S511; YES).

このローカライズ処理により、移行先ウェブサーバ4においてリンク切れなどの不具合を生じさせることなく、適切にウェブページを記憶させることができる。 By this localization process, the web page can be appropriately stored without causing a problem such as a broken link in the migration destination web server 4.

なお、本実施形態では、図2の示したフローチャートにおけるパスを変更しながらローカライズする処理(ステップS103)を実行した後に、エレメントIDを付与する処理(ステップS105)を実行したが、これに限らず、ステップS103の処理を実行しながら、ステップS105を実行するようにしてもよい。具体的には、図3に示したフローチャートにおけるステップS503;NOの後であって、ステップS509の後に、タグごとに、ステップS105の処理を実行するようにしてもよい。 In the present embodiment, after executing the process of localizing while changing the path in the flowchart shown in FIG. 2 (step S103), the process of assigning the element ID (step S105) is executed, but the present invention is not limited to this. , Step S105 may be executed while executing the process of step S103. Specifically, the process of step S105 may be executed for each tag after step S503; NO in the flowchart shown in FIG. 3 and after step S509.

<編集画面表示処理>
図5は、本発明の一実施形態であるウェブ構築支援装置1における編集画面表示処理の処理内容を示したフローチャートである。
<Edit screen display processing>
FIG. 5 is a flowchart showing the processing content of the editing screen display processing in the web construction support device 1 according to the embodiment of the present invention.

図5に示すように、ユーザ操作により選択画面から編集対象のウェブページが選択されると(ステップS201;YES)、編集部107は、選択されたウェブページの要素と、選択された要素の子要素とをウェブページ記憶部41のデータベースから取得する(ステップS203)。 As shown in FIG. 5, when the web page to be edited is selected from the selection screen by the user operation (step S201; YES), the editorial unit 107 has an element of the selected web page and a child of the selected element. The elements and the elements are acquired from the database of the web page storage unit 41 (step S203).

そして、編集部107は、取得した要素のタグにエレメントIDを記述して、ID割当変更HTMLコードを生成する(ステップS205)。 Then, the editorial unit 107 describes the element ID in the tag of the acquired element and generates the ID allocation change HTML code (step S205).

そして、編集部107は、ウェブページ記憶部41のデータベースから、エレメントID、ペアレントID、世代番号、兄弟番号に基づいて、変更HTMLコードを生成し、生成したID割当変更HTMLコードに基づいて、i−Frameの編集画面上に選択された編集対象のウェブページを表示させる(ステップS207)。 Then, the editorial unit 107 generates a change HTML code from the database of the web page storage unit 41 based on the element ID, the parent ID, the generation number, and the sibling number, and based on the generated ID assignment change HTML code, i -Display the selected web page to be edited on the frame edit screen (step S207).

図6(a)は、選択画面の一例を示した図であり、図6(b)は、選択された編集対象のウェブページのID割当変更HTMLコードの一例を示した図である。 FIG. 6A is a diagram showing an example of a selection screen, and FIG. 6B is a diagram showing an example of an HTML code for changing the ID assignment of the selected web page to be edited.

図6(a)に示すように、階層的に関係つけられているウェブページが選択可能に表示部8に表示されている。ユーザは、入力部7を用いて編集対象のウェブページを選択する操作を行うと、編集部107は、図6(b)に示すようなID割当変更HTMLコードを生成する。ここでは、図6(a)に示した選択画面から、ウェブページ201が選択された場合において、生成されたID割当変更HTMLコードの一例を図6(b)に示している。 As shown in FIG. 6A, the hierarchically related web pages are displayed on the display unit 8 so as to be selectable. When the user performs an operation of selecting a web page to be edited using the input unit 7, the editorial unit 107 generates an ID assignment change HTML code as shown in FIG. 6 (b). Here, an example of the generated ID assignment change HTML code when the web page 201 is selected from the selection screen shown in FIG. 6 (a) is shown in FIG. 6 (b).

図6(b)に示すように、各タグには、エレメントIDがID割当変更HTMLコードに記述されている。例えば、<body>のタグには、data element id=‘1’ が記述され、<body data element id=‘1’>となっている。 As shown in FIG. 6B, an element ID is described in the ID assignment change HTML code in each tag. For example, in the tag of <body>, data element id = '1' is described, and <body data element id = '1'>.

このように、編集部107は、取得した要素のタグにエレメントIDを記述する。 In this way, the editorial unit 107 describes the element ID in the tag of the acquired element.

これにより、ID割当変更HTMLコードに記述されたエレメントIDに基づいて、ユーザが編集可能な要素を色枠で表示させることもできる。例えば、ユーザが入力部7の一つであるマウスを操作することで、表示部8に表示されたカーソルが編集可能な要素に基づいて表示された編集可能領域を横断した場合(マウスオーバーした場合)、編集部107は、要素に基づいて表示された編集可能領域を緑色の枠で表示させる。これにより、ユーザは、編集画面のうち、どの部分が編集可能であるかを視覚的に把握することができる。 As a result, the elements that can be edited by the user can be displayed in a color frame based on the element ID described in the ID assignment change HTML code. For example, when the user operates a mouse, which is one of the input units 7, the cursor displayed on the display unit 8 crosses the editable area displayed based on the editable element (when the mouse is over). ), The editorial unit 107 displays the editable area displayed based on the element with a green frame. As a result, the user can visually grasp which part of the edit screen can be edited.

<変更処理>
図7は、本発明の一実施形態であるウェブ構築支援装置1における変更処理の処理内容を示したフローチャートである。
<Change process>
FIG. 7 is a flowchart showing the processing content of the change processing in the web construction support device 1 according to the embodiment of the present invention.

図7に示すように、編集部107は、表示部8に表示された編集画面に表示された要素が編集対象として選択されたか否かを判定する(ステップS301)。具体的には、ユーザは、緑色の枠で表示された編集可能領域をクリック操作すると、編集部107は、編集対象として選択されたと判定する。 As shown in FIG. 7, the editing unit 107 determines whether or not the element displayed on the editing screen displayed on the display unit 8 has been selected as the editing target (step S301). Specifically, when the user clicks the editable area displayed in the green frame, the editorial unit 107 determines that the editable area has been selected as the edit target.

要素が編集対象として選択された場合(ステップS301;YES)、編集部107は、選択された編集可能領域を赤色の枠で表示させる(ステップS303)。 When the element is selected as an edit target (step S301; YES), the editorial unit 107 displays the selected editable area in a red frame (step S303).

編集可能領域が赤色の枠で表示されると編集可能な状態に遷移したことを示しているので、ユーザは入力部7から編集可能領域内の変更操作を行う。 When the editable area is displayed in the red frame, it indicates that the editable state has been entered, so that the user performs a change operation in the editable area from the input unit 7.

そして、ユーザが変更した要素の保存が要求されると(ステップS305;YES)、編集部107は、選択された要素について変更内容を、ウェブページ記憶部41のデータベースに保存する(ステップS307)。 Then, when the user is requested to save the changed element (step S305; YES), the editorial unit 107 saves the changed content of the selected element in the database of the web page storage unit 41 (step S307).

図8は、編集画面の一例を示した図である。 FIG. 8 is a diagram showing an example of an editing screen.

図8に示すように、編集可能な要素に基づいて表示された編集可能領域302は、マウスオーバーされると、緑色の枠で表示され、選択操作されると赤色の枠で表示される。 As shown in FIG. 8, the editable area 302 displayed based on the editable element is displayed in a green frame when the mouse is over, and is displayed in a red frame when the selection operation is performed.

さらに、編集可能領域302が選択操作されると赤色の枠で表示されると、編集可能領域302の近傍にサブウィンドウ301が表示される。 Further, when the editable area 302 is selected and displayed in a red frame, the sub-window 301 is displayed in the vicinity of the editable area 302.

サブウィンドウ301は様々なコマンドを命じるためのボタンが複数配置されている。例えば、ボタン301aが押下操作されると、編集部107は、変更内容をウェブページ記憶部41のデータベースに保存するコマンドを要求する。 A plurality of buttons for commanding various commands are arranged in the sub window 301. For example, when the button 301a is pressed, the editorial unit 107 requests a command to save the changed contents in the database of the web page storage unit 41.

このように、i−Frameの編集画面上に選択された編集対象のウェブページがエレメントID単位で編集可能に表示されているので、i−Frame外の処理がi−Frame内の処理に影響を及ぼすことないため、ユーザはウェブページの見たままの状態で要素ごとに編集することが可能となる。 In this way, since the selected web page to be edited is displayed editably in the element ID unit on the edit screen of the i-frame, the processing outside the i-frame affects the processing inside the i-frame. Since it has no effect, the user can edit each element as it is on the web page.

<追加処理>
図9は、本発明の一実施形態であるウェブ構築支援装置1における追加処理の処理内容を示したフローチャートである。図9に示すステップS301、S303の処理は、図7に示したステップS301、S303の処理と同一であるので、説明を省略する。
<Additional processing>
FIG. 9 is a flowchart showing the processing content of the additional processing in the web construction support device 1 according to the embodiment of the present invention. Since the processing of steps S301 and S303 shown in FIG. 9 is the same as the processing of steps S301 and S303 shown in FIG. 7, description thereof will be omitted.

ステップS303において編集可能領域が赤色の枠で表示されると、編集可能な状態に遷移したことを示しているので、ユーザは入力部7から編集可能領域に対して要素の追加操作を行う。ユーザは、サブウィンドウ301のボタン操作により、追加位置(選択している編集可能領域の前に追加するのか、後ろに追加するのか)を指定し、追加する内容を入力する。 When the editable area is displayed in the red frame in step S303, it indicates that the editable state has been entered. Therefore, the user performs an operation of adding an element to the editable area from the input unit 7. The user specifies the addition position (whether to add before or after the selected editable area) by operating the button of the sub window 301, and inputs the content to be added.

ユーザ入力により、追加位置と追加内容とが指定されると(ステップS401;YES)、編集部107は、追加した要素の基準となる要素(基準要素)のエレメントIDと、追加した要素の基準要素からの位置(追加位置)と、追加内容とを取得する(ステップS403)。 When the additional position and the additional content are specified by the user input (step S401; YES), the editorial unit 107 determines the element ID of the element (reference element) that is the reference of the added element and the reference element of the added element. The position from (additional position) and the additional content are acquired (step S403).

編集部107は、取得した情報に基づいて、追加した要素に、新たにエレメントID、ペアレントID、世代番号、兄弟番号を付与する(ステップS405)。 The editorial unit 107 newly assigns an element ID, a parent ID, a generation number, and a sibling number to the added element based on the acquired information (step S405).

そして、編集部107は、エレメントID、ペアレントID、世代番号、兄弟番号、および追加内容を関連付けて、ウェブページ記憶部41のデータベースに保存する(ステップS407)。 Then, the editorial unit 107 associates the element ID, the parent ID, the generation number, the sibling number, and the additional contents, and saves them in the database of the web page storage unit 41 (step S407).

次に、編集部107は、ウェブページ記憶部41のデータベースから、追加された要素を読み込み、ID割当変更HTMLコードを生成し、生成したID割当変更HTMLコードに基づいて、i−Frameの編集画面上に追加された要素のウェブページを表示させる(ステップS409)。 Next, the editorial unit 107 reads the added element from the database of the web page storage unit 41, generates an ID allocation change HTML code, and based on the generated ID allocation change HTML code, the i-frame edit screen. Display the web page of the element added above (step S409).

図10(a)は、要素を追加した場合のID割当変更HTMLコードの階層構造を示した図であり、図10(b)は、ウェブページ記憶部41のデータベースに記憶されたID割当変更HTMLデータを示した図である。 FIG. 10A is a diagram showing a hierarchical structure of the ID assignment change HTML code when an element is added, and FIG. 10B is an ID assignment change HTML stored in the database of the web page storage unit 41. It is a figure which showed the data.

図10(a)では、世代番号がG7で兄弟番号がS4でエレメントIDが(19)である<li>タグを基準要素として、基準要素からの位置(追加位置)を「後ろ」、追加するテキストを「ブログ」とする要素が追加された例を挙げて説明する。 In FIG. 10A, the position (additional position) from the reference element is added “behind” with the <li> tag having the generation number G7, the sibling number S4, and the element ID (19) as the reference element. An example will be given with the addition of an element that makes the text a "blog".

このとき、世代番号G7に、エレメントIDが(19)である<li>タグの兄弟番号S4の後ろを示す兄弟番号S5の位置に、エレメントIDを(22)として、<li>タグが追加されている。 At this time, the <li> tag is added to the generation number G7 with the element ID set to (22) at the position of the sibling number S5 indicating the back of the sibling number S4 of the <li> tag having the element ID (19). ing.

そして、追加内容に基づいて、世代番号G8、兄弟番号S1、エレメントIDを(23)として、<a href=‘/blog’>タグが追加され、世代番号G9、兄弟番号S1、エレメントIDを(24)として、表示するテキスト自体となる「ブログ」が追加されている。 Then, based on the added contents, the <a ref ='/ blog'> tag is added with the generation number G8, the sibling number S1, and the element ID as (23), and the generation number G9, the sibling number S1, and the element ID are set as (23). As 24), a "blog" that is the text itself to be displayed has been added.

ウェブページ記憶部41のデータベースには、図10(b)に示すように、エレメントIDが、(22)、(23)、(24)として割り当てられて、それぞれペアレントID、世代番号、兄弟番号、およびコンテンツ(追加内容)が関連付けられて記憶される。 As shown in FIG. 10B, element IDs are assigned as (22), (23), and (24) in the database of the web page storage unit 41, and the parent ID, generation number, and sibling number, respectively. And the content (additional content) are associated and stored.

ウェブページ記憶部41への記憶が完了すると、編集部107は、ウェブページ記憶部41のデータベースから、追加された要素を読み込み、下記のようなID割当変更HTMLコードを生成する。 When the storage in the web page storage unit 41 is completed, the editorial unit 107 reads the added element from the database of the web page storage unit 41 and generates the following ID assignment change HTML code.

target Element ID :19
position: after
src:
<li data-element-id=‘22’><a href=‘blog’ data-element-id=’23’>ブログ</a></li>
そして、編集部107は、生成したID割当変更HTMLコードに基づいて、i−Frameの編集画面上に追加された要素のウェブページを表示させる。
target Element ID: 19
position: after
src:
<li data-element-id = '22'><ahref='blog'data-element-id='23'> Blog </a></li>
Then, the editorial unit 107 displays the web page of the added element on the edit screen of the i-Frame based on the generated ID assignment change HTML code.

このように、追加処理においても、変更処理と同様に、i−Frameの編集画面上に選択された編集対象のウェブページがエレメントID単位で編集可能に表示されているので、ユーザはウェブページの見たままの状態で要素を追加することが可能となる。 In this way, in the addition process as well as the change process, the selected web page to be edited is displayed editably on the i-Frame edit screen for each element ID, so that the user can edit the web page. It is possible to add elements as they are seen.

以上のように、本発明の一実施形態であるウェブ構築支援装置1によれば、移行元ウェブサーバ2からウェブページのHTMLコードを取得する取得部101と、取得部101により取得されたHTMLコード内に外部リンク情報がある場合、外部リンク情報に基づいて外部リンクされたオブジェクトを取得し、移行先ウェブサーバ4のウェブページ記憶部41に記憶させると共に、記憶させる位置情報に基づいてHTMLコード内の外部リンク情報を変更する変更部103と、変更部103により変更された変更HTMLコードの階層構造を示す階層情報を抽出すると共に、変更HTMLコードに対してタグ毎にエレメントIDを割り当てるエレメントID割当部104と、割り当てられたエレメントIDと、タグ毎に分割した変更HTMLコードと、階層情報とを関連付けてID割当変更HTMLデータとしてデータベースに記憶させる記憶制御部105とを備える。 As described above, according to the web construction support device 1 according to the embodiment of the present invention, the acquisition unit 101 that acquires the HTML code of the web page from the migration source web server 2 and the HTML code acquired by the acquisition unit 101. If there is external link information inside, the externally linked object is acquired based on the external link information, stored in the web page storage unit 41 of the migration destination web server 4, and in the HTML code based on the stored position information. Element ID assignment that extracts the hierarchical information indicating the hierarchical structure of the modified HTML code changed by the modified unit 103 and the modified HTML code that changes the external link information of the above, and assigns the element ID to each tag to the modified HTML code. The unit 104 includes a storage control unit 105 that associates the assigned element ID, the modified HTML code divided for each tag, and the hierarchical information and stores the ID allocation modified HTML data in the database.

これにより、移行先ウェブサーバにおいても、移行前のウェブページと同様の状態で、かつ要素ごとに編集可能な状態で表示される。そのため、ユーザにとって元のウェブページと見た目が同様の状態でウェブページの編集が可能となるので、編集が容易となる。 As a result, even on the migration destination web server, it is displayed in the same state as the web page before migration and in a state where each element can be edited. Therefore, the user can edit the web page in the same state as the original web page, which facilitates editing.

<変形例>
本発明の一実施形態であるウェブ構築支援装置1では、エレメントIDは、英数字を用いてユニークな番号として付与したが、これに限らない。
<Modification example>
In the web construction support device 1 according to the embodiment of the present invention, the element ID is assigned as a unique number using alphanumeric characters, but the element ID is not limited to this.

エレメントID割当部104は、編集部107により変更および追加などの編集された回数に基づいて、エレメントIDを変更するようにしてもよい。具体的には、ユニークな番号と、下3桁を編集回数として組み合わせた数字をエレメントIDとする。例えば、ユニークな番号が“1234567”であり、5回編集された場合、編集回数を“5”として、エレメントIDを、“1234567005”とする。 The element ID assigning unit 104 may change the element ID based on the number of times of editing such as change and addition by the editorial unit 107. Specifically, the element ID is a number that combines a unique number and the last three digits as the number of edits. For example, if the unique number is "1234567" and it is edited 5 times, the number of edits is "5" and the element ID is "123456705".

これにより、エレメントID自体が編集された回数を表すので、このエレメントIDを表示させることにより、ユーザはエレメントIDにより過去の編集された箇所を特定することができる。 As a result, since the element ID itself represents the number of times edited, by displaying this element ID, the user can specify the past edited part by the element ID.

また、エレメントID割当部104は、ペアレントIDと、世代番号と、兄弟番号のうち少なくともいずれか1つを含む階層情報に基づいて、変更HTMLコードに対してタグ毎にエレメントIDを割り当てるようにしてもよい。 Further, the element ID assigning unit 104 assigns an element ID for each tag to the changed HTML code based on the hierarchical information including at least one of the parent ID, the generation number, and the sibling number. May be good.

具体的には、ユニークな番号に、ペアレントID、世代番号(2桁)、兄弟番号(2桁)として、組み合わせた数字をエレメントIDとする。例えば、ユニークな番号が“1234567”であり、ペアレントIDが、“987654”で、世代番号が、“2”で、兄弟番号が“4”の場合、エレメントIDを、“12345679876540204”とする。 Specifically, the element ID is a combination of a unique number, a parent ID, a generation number (2 digits), and a sibling number (2 digits). For example, when the unique number is "1234567", the parent ID is "987654", the generation number is "2", and the sibling number is "4", the element ID is "123456798876540204".

これにより、エレメントID自体が階層構造、すなわち親のエレメントID、世代番号、兄弟番号などを表すので、エレメントIDにより位置を特定することができる。 As a result, since the element ID itself represents a hierarchical structure, that is, the parent element ID, generation number, sibling number, and the like, the position can be specified by the element ID.

さらに、編集部107が、編集画面上でオブジェクトの追加が要求された場合に、追加されたオブジェクトのHTMLコードを生成すると共に、エレメントID割当部104に、生成されたHTMLコードに対してタグ毎に、階層情報に基づいて新たにエレメントIDを割り当てさせ、新たに割り当てられたエレメントIDに対応する生成されたHTMLコードとを、データベースに記憶されたID割当変更HTMLデータに追加するようにしてもよい。 Further, when the editorial unit 107 is requested to add an object on the edit screen, the HTML code of the added object is generated, and the element ID assigning unit 104 generates the HTML code for each tag for the generated HTML code. Even if a new element ID is assigned based on the hierarchical information and the generated HTML code corresponding to the newly assigned element ID is added to the ID assignment change HTML data stored in the database. good.

これにより、要素を追加した場合においても、エレメントID自体が階層構造、すなわち親のエレメントID、世代番号、兄弟番号などを表すので、エレメントIDにより位置を特定することができる。 As a result, even when an element is added, the element ID itself represents a hierarchical structure, that is, a parent element ID, a generation number, a sibling number, and the like, so that the position can be specified by the element ID.

なお、上述した実施形態では、移行元ウェブサーバ2に記憶されているウェブページを、編集可能な状態で、かつ移行前と同様のウェブページを表示できる状態で移行先ウェブサーバ4へ移行するウェブ構築支援装置1を例に挙げて説明したが、ウェブ構築支援装置1が移行先ウェブサーバ4の機能を有するようにしてもよい。 In the above-described embodiment, the web page stored in the migration source web server 2 is migrated to the migration destination web server 4 in a state in which the web page can be edited and the same web page as before the migration can be displayed. Although the construction support device 1 has been described as an example, the web construction support device 1 may have the function of the migration destination web server 4.

すなわち、ウェブ構築支援装置1がウェブページ記憶部41を備え、ウェブページ記憶部41に記憶されたウェブページに基づいて、HTTP(Hypertext Transfer Protocol)を通信プロトコルとして、ウェブ表示を提供する機能を有するようにしてもよい。 That is, the web construction support device 1 includes a web page storage unit 41, and has a function of providing a web display using HTTP (Hypertext Transfer Protocol) as a communication protocol based on the web page stored in the web page storage unit 41. You may do so.

また、上述した実施形態は、コンピュータにインストールしたウェブ構築支援プログラムを実行させることにより実現することができる。 Further, the above-described embodiment can be realized by executing a web construction support program installed on a computer.

1 ウェブ構築支援装置
2 移行元ウェブサーバ
4 移行先ウェブサーバ
5 ネットワーク
7 入力部
8 表示部
11 RAM
12 ROM
13 ハードディスク
41 ウェブページ記憶部
101 取得部
103 変更部
104 エレメントID割当部
105 記憶制御部
106 表示制御部
107 編集部
1 Web construction support device 2 Migration source web server 4 Migration destination web server 5 Network 7 Input unit 8 Display unit 11 RAM
12 ROM
13 Hard disk 41 Web page storage unit 101 Acquisition unit 103 Change unit 104 Element ID allocation unit 105 Storage control unit 106 Display control unit 107 Editorial unit

Claims (6)

ウェブページが記憶された移行元ウェブサーバと、前記ウェブページの移行先である移行先ウェブサーバとにネットワークを介して接続されたウェブ構築支援装置であって、
前記移行元ウェブサーバから前記ウェブページのHTMLコードを取得する取得手段と、
前記取得手段により取得されたHTMLコード内に外部リンク情報がある場合、前記外部リンク情報に基づいて外部リンクされたオブジェクトを取得し、前記移行先ウェブサーバの所定の記憶領域に記憶させると共に、前記記憶させる位置情報に基づいて前記HTMLコード内の前記外部リンク情報を変更する変更手段と、
前記変更手段により変更された変更HTMLコードの階層構造を示す階層情報を抽出すると共に、前記変更HTMLコードに対してタグ毎にエレメントIDを割り当てるエレメントID割当手段と、
前記割り当てられたエレメントIDと、タグ毎に分割した変更HTMLコードと、前記階層情報とを関連付けてID割当変更HTMLデータとしてデータベースに記憶させる記憶制御手段と、
を備えたことを特徴とするウェブ構築支援装置。
A web construction support device connected to a migration source web server in which a web page is stored and a migration destination web server to which the web page is migrated via a network.
An acquisition means for acquiring the HTML code of the web page from the migration source web server, and
When there is external link information in the HTML code acquired by the acquisition means, the externally linked object is acquired based on the external link information, stored in a predetermined storage area of the migration destination web server, and described as described above. A changing means for changing the external link information in the HTML code based on the stored position information, and
An element ID assigning means for extracting the hierarchical information indicating the hierarchical structure of the modified HTML code changed by the changing means and assigning an element ID for each tag to the modified HTML code.
A storage control means for associating the assigned element ID, the modified HTML code divided for each tag, and the hierarchical information and storing the ID allocation modified HTML data in the database.
A web construction support device characterized by being equipped with.
前記データベースに記憶されたID割当変更HTMLデータに基づいて、ID割当変更HTMLコードを生成し、前記生成したID割当変更HTMLコードを独立したフレームの編集画面内で前記エレメントIDごとに読み出し、前記読み出したエレメントID単位で編集可能に表示する表示制御手段と、
ユーザ操作に基づいて前記編集画面上で編集された場合に、前記データベースに記憶された前記編集されたエレメントIDに対応するID割当変更HTMLデータを編集する編集手段と、
を備えたことを特徴とする請求項1記載のウェブ構築支援装置。
An ID allocation change HTML code is generated based on the ID allocation change HTML data stored in the database, and the generated ID allocation change HTML code is read for each element ID in the edit screen of an independent frame, and the read is performed. Display control means that can be edited and displayed in units of element IDs
An editing means for editing the ID assignment change HTML data corresponding to the edited element ID stored in the database when the data is edited on the edit screen based on the user operation.
The web construction support device according to claim 1, wherein the web construction support device is provided.
前記エレメントID割当手段は、
前記編集手段により編集された回数に基づいて、前記エレメントIDを割り当てる
ことを特徴とする請求項2記載のウェブ構築支援装置。
The element ID assigning means
The web construction support device according to claim 2, wherein the element ID is assigned based on the number of times edited by the editing means.
前記エレメントID割当手段は、
前記階層情報に基づいて、前記変更HTMLコードに対してタグ毎にエレメントIDを割り当てる
ことを特徴とする請求項1〜3のいずれか1項記載のウェブ構築支援装置。
The element ID assigning means
The web construction support device according to any one of claims 1 to 3, wherein an element ID is assigned to each tag for the modified HTML code based on the hierarchical information.
前記編集手段は、
前記編集画面上でオブジェクトの追加が要求された場合に、追加されたオブジェクトのHTMLコードを生成すると共に、前記エレメントID割当手段に、前記生成されたHTMLコードに対してタグ毎に、前記階層情報に基づいて新たにエレメントIDを割り当てさせ、前記新たに割り当てられたエレメントIDに対応する前記生成されたHTMLコードとを、前記データベースに記憶されたID割当変更HTMLデータに追加する
ことを特徴とする請求項記載のウェブ構築支援装置。
The editing means
When the addition of an object is requested on the edit screen, the HTML code of the added object is generated, and the element ID assigning means is provided with the hierarchical information for each tag with respect to the generated HTML code. A new element ID is assigned based on the above, and the generated HTML code corresponding to the newly assigned element ID is added to the ID assignment change HTML data stored in the database. The web construction support device according to claim 2.
ウェブページが記憶された移行元ウェブサーバと、前記ウェブページの移行先である移行先ウェブサーバとにネットワークを介して接続されたコンピュータが実行するウェブ構築支援プログラムであって、
コンピュータに、
前記移行元ウェブサーバから前記ウェブページのHTMLコードを取得する取得ステップと、
前記取得ステップにより取得されたHTMLコード内に外部リンク情報がある場合、前記外部リンク情報に基づいて外部リンクされたオブジェクトを取得し、前記移行先ウェブサーバの所定の記憶領域に記憶させると共に、前記記憶させる位置情報に基づいて前記HTMLコード内の前記外部リンク情報を変更する変更ステップと、
前記変更ステップにより変更された変更HTMLコードの階層構造を示す階層情報を抽出すると共に、前記変更HTMLコードに対してタグ毎にエレメントIDを割り当てるエレメントID割当ステップと、
前記割り当てられたエレメントIDと、タグ毎に分割した変更HTMLコードと、前記階層情報とを関連付けてID割当変更HTMLデータとしてデータベースに記憶させる記憶制御ステップと、
を実行させるためのウェブ構築支援プログラム。
A web construction support program executed by a computer connected to the migration source web server in which the web page is stored and the migration destination web server to which the web page is migrated via a network.
On the computer
The acquisition step of acquiring the HTML code of the web page from the migration source web server, and
When there is external link information in the HTML code acquired by the acquisition step, the externally linked object is acquired based on the external link information, stored in a predetermined storage area of the migration destination web server, and described above. A change step of changing the external link information in the HTML code based on the stored position information, and
An element ID assignment step that extracts the hierarchical information indicating the hierarchical structure of the modified HTML code changed by the modification step and assigns an element ID for each tag to the modified HTML code.
A storage control step of associating the assigned element ID, the modified HTML code divided for each tag, and the hierarchical information and storing the ID allocation modified HTML data in the database.
Web construction support program to execute.
JP2018225271A 2018-11-30 2018-11-30 Web construction support device and web construction support program Active JP6927586B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018225271A JP6927586B2 (en) 2018-11-30 2018-11-30 Web construction support device and web construction support program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018225271A JP6927586B2 (en) 2018-11-30 2018-11-30 Web construction support device and web construction support program

Publications (2)

Publication Number Publication Date
JP2020087299A JP2020087299A (en) 2020-06-04
JP6927586B2 true JP6927586B2 (en) 2021-09-01

Family

ID=70908433

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018225271A Active JP6927586B2 (en) 2018-11-30 2018-11-30 Web construction support device and web construction support program

Country Status (1)

Country Link
JP (1) JP6927586B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7157484B1 (en) * 2021-05-21 2022-10-20 株式会社リセ Document editing program, document editing device and document editing method
CN115048132A (en) * 2022-05-19 2022-09-13 北京远舢智能科技有限公司 Dynamic code loading method, system, intelligent terminal and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4299934B2 (en) * 1999-11-30 2009-07-22 株式会社リコー Electronic information disclosure certification method and system, and storage medium storing electronic information disclosure certification program
JP2007108978A (en) * 2005-10-13 2007-04-26 Hitachi Software Eng Co Ltd Html data generation program edit support method, edit support device and edit support program
JP2015052821A (en) * 2013-09-05 2015-03-19 株式会社東芝 Communication device and communication method
US9984051B2 (en) * 2016-02-25 2018-05-29 Ca, Inc. Hierarchical identifiers for HTML elements
JP2017219954A (en) * 2016-06-06 2017-12-14 岡田 泰成 Method, program, recording medium, and device for assisting creation of web pages

Also Published As

Publication number Publication date
JP2020087299A (en) 2020-06-04

Similar Documents

Publication Publication Date Title
US7124398B2 (en) Rapid GUI refacing of a legacy application
US20100131869A1 (en) Technology for generating service program
US10049095B2 (en) In-context editing of output presentations via automatic pattern detection
KR101275871B1 (en) System and method for producing homepage in SaaS ENVIRONMENT, A computer-readable storage medium therefor
US20190147028A1 (en) System and method for designing and editing computerized electronic data-entry forms
JP6927586B2 (en) Web construction support device and web construction support program
US10037234B2 (en) Electronic-manual browsing apparatus and system
JPH1040236A (en) Hypertext document processor with comments
JP5322403B2 (en) Homepage creation device, homepage creation program and homepage creation method
US20030154462A1 (en) Software maintenance material generation apparatus and generation program therefor
JP6828277B2 (en) Client devices, information information systems and programs
JP2000076228A (en) Automatic correction of document format
JP2003196264A (en) Web page creation method, web page creation program and web page creation device
JP6331307B2 (en) Information processing apparatus, information processing apparatus control method, and program
JP5614924B2 (en) Digital content creation method, digital content creation program, and digital content creation apparatus
US20100077295A1 (en) Document processing device and document processing module
JP5603467B1 (en) System flow diagram creation apparatus and system flow diagram creation program
JP2020009169A (en) Information processing system and program for supporting attachment of note
US20080005154A1 (en) Document Processing Device and Document Processing Method
JP5301907B2 (en) Information processing device
CN118627475A (en) A method, device, equipment and medium for displaying special characters
CN119883058A (en) Information display method, information display device, electronic device, storage medium, and program product
KR101353853B1 (en) A web page generation scheme for the efficient content management
JP2022091142A (en) Document creation assisting device, document creation assisting method and document creation assisting program
JP5741219B2 (en) CONTENT GENERATION DEVICE, CONTENT GENERATION METHOD, AND PROGRAM

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200401

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20210105

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20210310

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210316

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210317

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210409

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210713

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210729

R150 Certificate of patent or registration of utility model

Ref document number: 6927586

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250